-
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 move support for a cross namespace ClusterClass reference #11649
base: main
Are you sure you want to change the base?
✨ clusterctl move support for a cross namespace ClusterClass reference #11649
Conversation
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Signed-off-by: Danil-Grigorev <[email protected]>
Signed-off-by: Danil-Grigorev <[email protected]>
Signed-off-by: Danil-Grigorev <[email protected]>
Signed-off-by: Danil-Grigorev <[email protected]>
Signed-off-by: Danil-Grigorev <[email protected]>
Signed-off-by: Danil-Grigorev <[email protected]>
Signed-off-by: Danil-Grigorev <[email protected]>
Signed-off-by: Danil-Grigorev <[email protected]>
Signed-off-by: Danil-Grigorev <[email protected]>
Co-authored-by: Christian Schlotter <[email protected]>
Signed-off-by: Danil-Grigorev <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i think this generally makes sense, but i have a couple questions.
also, happy to see the docs update 🙏
// +kubebuilder:validation:MinLength=1 | ||
// +kubebuilder:validation:MaxLength=253 | ||
// +kubebuilder:validation:Pattern="^[a-z0-9](?:[-a-z0-9]*[a-z0-9])?(?:\\.[a-z0-9](?:[-a-z0-9]*[a-z0-9])?)*$" | ||
ClassNamespace string `json:"classNamespace,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we have consensus about adding this field to the API?
i mean, it seems necessary for this change, but i don't recall what we might have agreed upon in the office hours.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It’s actually a superset of #11352, I believe we have a consensus on the actual PR in the review #11352 (comment) (correct me if I’m wrong)
api/v1beta1/index/cluster.go
Outdated
@@ -55,3 +69,12 @@ func ClusterByClusterClassClassName(o client.Object) []string { | |||
} | |||
return nil | |||
} | |||
|
|||
// ClusterByClusterClassClassNamespace contains the logic to index Clusters by ClusterClass namespace. | |||
func ClusterByClusterClassClassNamespace(o client.Object) []string { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does this need the stutter, could we just name it ClusterByClusterClassNamespace
?
or if we need the extra context could we name it something different like ClusterByClusterClassTopologyNamespace
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, good catch, I’ll update it. I think ClusterByClusterClassNamespace follows the naming pattern here.
41b5c72
to
bc1b8fc
Compare
Signed-off-by: Danil-Grigorev <[email protected]>
Signed-off-by: Danil-Grigorev <[email protected]>
bc1b8fc
to
8f8f47b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is generally making sense to me, do we need to merge #11352 first?
What this PR does / why we need it:
A follow-up on #11352 functionality, which integrates
classNamespace
field withclusterctl move
.Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)
format, will close the issue(s) when PR gets merged):Related to #5673