From 427fd00b30fdd385b0aee2d56b1e72e0ed9536bd Mon Sep 17 00:00:00 2001 From: jnobrega Date: Wed, 1 May 2024 12:36:13 +0100 Subject: [PATCH] fix: specify namespace for cnpg --- k8s/apps/storage/cloudnative-pg/app/helm-release.yaml | 1 - k8s/apps/storage/cloudnative-pg/cluster/cluster.yaml | 1 - k8s/apps/storage/cloudnative-pg/cluster/scheduledbackup.yaml | 1 - k8s/apps/storage/cloudnative-pg/ks.yaml | 2 ++ 4 files changed, 2 insertions(+), 3 deletions(-) diff --git a/k8s/apps/storage/cloudnative-pg/app/helm-release.yaml b/k8s/apps/storage/cloudnative-pg/app/helm-release.yaml index 7ea0f103..60378d82 100644 --- a/k8s/apps/storage/cloudnative-pg/app/helm-release.yaml +++ b/k8s/apps/storage/cloudnative-pg/app/helm-release.yaml @@ -2,7 +2,6 @@ apiVersion: helm.toolkit.fluxcd.io/v2beta1 kind: HelmRelease metadata: name: postgres - namespace: storage spec: interval: 15m chart: diff --git a/k8s/apps/storage/cloudnative-pg/cluster/cluster.yaml b/k8s/apps/storage/cloudnative-pg/cluster/cluster.yaml index 6ddec6a3..c2cdfd51 100644 --- a/k8s/apps/storage/cloudnative-pg/cluster/cluster.yaml +++ b/k8s/apps/storage/cloudnative-pg/cluster/cluster.yaml @@ -2,7 +2,6 @@ apiVersion: postgresql.cnpg.io/v1 kind: Cluster metadata: name: pg-cluster - namespace: storage spec: instances: 3 primaryUpdateStrategy: unsupervised diff --git a/k8s/apps/storage/cloudnative-pg/cluster/scheduledbackup.yaml b/k8s/apps/storage/cloudnative-pg/cluster/scheduledbackup.yaml index 644bc060..38c44bc8 100644 --- a/k8s/apps/storage/cloudnative-pg/cluster/scheduledbackup.yaml +++ b/k8s/apps/storage/cloudnative-pg/cluster/scheduledbackup.yaml @@ -2,7 +2,6 @@ apiVersion: postgresql.cnpg.io/v1 kind: ScheduledBackup metadata: name: postgres - namespace: storage spec: schedule: "@weekly" immediate: true diff --git a/k8s/apps/storage/cloudnative-pg/ks.yaml b/k8s/apps/storage/cloudnative-pg/ks.yaml index 67c61840..5accc2c3 100644 --- a/k8s/apps/storage/cloudnative-pg/ks.yaml +++ b/k8s/apps/storage/cloudnative-pg/ks.yaml @@ -6,6 +6,7 @@ metadata: name: cloudnative-pg namespace: flux-system spec: + targetNamespace: storage path: ./k8s/apps/storage/cloudnative-pg/app prune: true sourceRef: @@ -23,6 +24,7 @@ metadata: name: cloudnative-pg-cluster namespace: flux-system spec: + targetNamespace: storage path: ./k8s/apps/storage/cloudnative-pg/cluster dependsOn: - name: cloudnative-pg