Skip to content

Commit

Permalink
fix: specify namespace for cnpg
Browse files Browse the repository at this point in the history
  • Loading branch information
jnobrega committed May 1, 2024
1 parent b4ff078 commit 427fd00
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion k8s/apps/storage/cloudnative-pg/app/helm-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: postgres
namespace: storage
spec:
interval: 15m
chart:
Expand Down
1 change: 0 additions & 1 deletion k8s/apps/storage/cloudnative-pg/cluster/cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: pg-cluster
namespace: storage
spec:
instances: 3
primaryUpdateStrategy: unsupervised
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ apiVersion: postgresql.cnpg.io/v1
kind: ScheduledBackup
metadata:
name: postgres
namespace: storage
spec:
schedule: "@weekly"
immediate: true
Expand Down
2 changes: 2 additions & 0 deletions k8s/apps/storage/cloudnative-pg/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ metadata:
name: cloudnative-pg
namespace: flux-system
spec:
targetNamespace: storage
path: ./k8s/apps/storage/cloudnative-pg/app
prune: true
sourceRef:
Expand All @@ -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
Expand Down

0 comments on commit 427fd00

Please sign in to comment.