-
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
📖 Fix v1alpha4 references in clusterctl comments #8234
📖 Fix v1alpha4 references in clusterctl comments #8234
Conversation
03ba10a
to
581cd2e
Compare
@@ -50,7 +50,7 @@ type Provider struct { | |||
// WatchedNamespace indicates the namespace where the provider controller is watching. | |||
// If empty the provider controller is watching for objects in all namespaces. | |||
// | |||
// Deprecated: in clusterctl v1alpha4 all the providers watch all the namespaces; this field will be removed in a future version of this API | |||
// Deprecated: in Cluster API v1alpha4 and above all providers watch all the namespaces; this field will be removed in a future version of this API |
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.
should this really say Cluster API
? AFAIK clusterctl is still on v1alpha3
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 change is related to the CAPI contract version, not the clusterctl version which is why I updated this. AFAIU it's related to https://cluster-api.sigs.k8s.io/developer/providers/v0.3-to-v0.4.html#multi-tenancy
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.
Looks like in our current code we always set this field to an empty string and never read it (except in an equals func, but I didn't find a usage for the equals func). So basically it seems to be dead code today.
I have no idea if the watch behavior was rather coupled to the clusterctl v1alpha3 API or the v1alpha3 contract.
My guess is, at this point there was no difference between:
- clusterctl v1alpha3
- contract v1alpha3
- other API types v1alpha3
I think technically there is no such thing as "all providers in Cluster API v1alpha4 and above". Cluster API itself doesn't have a global version which applies to core and all providers. The only thing that comes close is the contract version.
I would probably lean towards referring to the Cluster API v1alpha4 contract.
So roughly: "all providers complying with the Cluster API v1alpha4 contract or above watch all namespaces"
581cd2e
to
fdfe59b
Compare
Overall lgtm from my side. No idea what we want to do with this: #8234 (comment) |
fdfe59b
to
4d9ac64
Compare
Update the comment on |
Fine for me! |
4d9ac64
to
da6769b
Compare
/lgtm |
LGTM label has been added. Git tree hash: 6303687f0d40f105d1bcde39bcf9c48ccd0346a7
|
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: CecileRobertMichon The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Fix up a couple of references to v1alpha4 in the clusterctl code.
Fixes #