Add namespace to Cluster

This commit is contained in:
Daniel Cosme
2026-04-30 14:35:35 -04:00
parent a8ca536177
commit f1b73cffba
7 changed files with 15 additions and 16 deletions
+3 -1
View File
@@ -28,6 +28,8 @@ func Stack() stack.Stack {
}
func Cluster() pg.Cluster {
namespace := kube.Namespace(root.CloudNativePG + "-cluster")
meta = kube.NewMetadata(root.CloudNativePG+"-cluster", namespace)
spec := pg.ClusterSpec{
Instances: 3,
StorageConfiguration: pg.StorageConfiguration{
@@ -39,5 +41,5 @@ func Cluster() pg.Cluster {
},
},
}
return kube_cnpg.NewCluster(root.CloudNativePG+"-cluster", spec)
return kube_cnpg.NewCluster(meta, spec)
}
+2 -6
View File
@@ -35,12 +35,8 @@ func HelmRelease() helm.HelmRelease {
},
},
},
Install: &helm.Install{
CRDs: helm.Create,
},
Upgrade: &helm.Upgrade{
CRDs: helm.CreateReplace,
},
Install: &helm.Install{CRDs: helm.Create},
Upgrade: &helm.Upgrade{CRDs: helm.CreateReplace},
}
return flux.NewFluxHelmRelease(meta, spec)
}