Add namespace to Cluster
This commit is contained in:
+3
-1
@@ -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
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user