fix: Split CNP operator from CNP cluster to fix CRD dependency
All checks were successful
Deploy Cluster / Terraform (push) Successful in 35s
Deploy Cluster / Ansible (push) Successful in 5m0s

- Move CNP operator HelmRelease to cnpg-operator folder
- Create addon-cnpg-operator kustomization (deploys operator first)
- Update addon-cnpg to dependOn addon-cnpg-operator
- Add addon-cnpg as dependency for addon-rancher (needs database)
This commit is contained in:
2026-03-26 00:06:34 +00:00
parent ef3fb2489a
commit 13627bf81f
8 changed files with 25 additions and 3 deletions

View File

@@ -0,0 +1,27 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: cnpg
namespace: flux-system
spec:
interval: 10m
targetNamespace: cnpg-system
chart:
spec:
chart: cloudnative-pg
version: 1.27.0
sourceRef:
kind: HelmRepository
name: cnpg
namespace: flux-system
install:
createNamespace: true
remediation:
retries: 3
upgrade:
remediation:
retries: 3
values:
image:
repository: ghcr.io/cloudnative-pg/postgresql
clusterImage: ghcr.io/cloudnative-pg/postgresql:17.4

View File

@@ -0,0 +1,8 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: HelmRepository
metadata:
name: cnpg
namespace: flux-system
spec:
interval: 1h
url: https://cloudnative-pg.github.io/charts

View File

@@ -0,0 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- helmrepository-cnpg.yaml
- helmrelease-cnpg.yaml