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)
}