-
Notifications
You must be signed in to change notification settings - Fork 338
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(k8s): fix scope assignment to the resource #12879
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Lukasz Dziedziak <[email protected]>
Reviewer Checklist🔍 Each of these sections need to be checked by the reviewer of the PR 🔍:
|
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.
2 Questions:
- If we changed the
+kubebuilder:resource:scope=Namespaced
marker, we need to generate the new k8s CRD yaml right? - Do we need to touch the legacy policies?
I don't think we need to generate new CRD the scope change touches only
The error was only here |
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 has no other side effects? Interesting...
Is it maybe unecessary then? |
I feel that these functions are used in kube clients for |
Do we need these annotations yes or no? |
No, we don't https://kubernetes.io/docs/reference/using-api/api-concepts/#collections
|
OK, it's |
Motivation
While working on another issue I noticed that we incorrectly set the scope for Kubernetes CRDs.
Implementation information
When
isNamespaced
set scopeNamespaced