-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clusterctl: Support Namespace resource in clusterctl alpha topology plan
#6236
Comments
An alternative could be to check if the name of the Namespace resource matches the namespace of the namespaced resources. |
I'm not against making Having a ClusterClass and the Cluster in a single template IMO is a bad practice because it promotes the idea of having one ClusterClass for each Cluster, which is an anti-pattern; the rationale behind this is explained in the doc. This also contrasts with our stack being oriented a promoting best practices. e.g
Last but not least I'm also -1 to extend this to support non-namespaced resources different from the Cluster for the sake of keeping the command as scoped as possible. |
/milestone v1.2 |
We currently deploy the clusters into seperate namespaces to isolate the resources and to enable fine-grained permissions. Once #5673 is implemented, I will be happy to move away from 1-1 Relationship of ClusterClasses and Clusters.
That certainly makes sense. It just felt weird to add a "special case" for the If everyone is fine with this, I would like to implement the approach @sbueringer suggested and add the |
From the perspective that we enable deploying the corresponding Namespace as part of the cluster-template that sounds fine to me. Assuming that Fabrizo meant "different from the Namespace" here
+1 from my side |
clusterctl alpha topology plan
clusterctl alpha topology plan
I updated the title to match the new scope and will begin implementing this now for /assign |
User Story
As an operator I would like to produce a topology plan using
clusterctl alpha topology plan
for resource files that include non-namespaced resources, such asNamespace
.Detailed Description
We currently create a combined manifest for the
Namespace
+Cluster
+ClusterClass
resources usingkustomize
. We then use the output fromkustomize build . > manifests.yaml
to create a plan usingclusterctl alpha topology plan -f manifests.yaml
, but this fails because theNamespace
resource does not havemetadata.namespace
set (because it is not a namespaced resource):Instead I would like
clusterctl alpha topology plan
to ignore non-namespaced resources when verifying if all resources belong to the same namespace. At least I would like it to ignoreNamespace
resources.Anything else you would like to add:
Ignoring
Namespace
resources is easily implemented, but we probably want a solution that is more robust:/kind feature
/area clusterctl
/area topology
The text was updated successfully, but these errors were encountered: