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
crd: Add categories for cilium CRDs. #17162
Conversation
698431d
to
7b1b837
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.
It would be nice if we could add some CI to ensure that future crds do not forget to add the categories field.
Sure, CI has evolved a lot since last time I take a look at it. Will do it in separate PR. |
I don't think the full CI is required, might need input here. |
@sayboras I think a linter that checks for the existence of "categories" in that line should be enough? |
Sure, I just add a simple check in second commit, let me know if this is what you have in mind. Manual testing was done by removing one category in ciliumclusterwidenetworkpolicies CRD.
|
7b1b837
to
b73b238
Compare
3aaf861
to
176ef8c
Compare
} | ||
|
||
for _, f := range allChecks { | ||
if err = f(crd); err != nil { |
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.
currently, we have only one check, so i didn't use multi error here. Let's see how it's going.
test-me-please Job 'Cilium-PR-K8s-1.19-kernel-5.4' failed and has not been observed before, so may be related to your PR: Click to show.Test Name
Failure Output
If it is a flake, comment Job 'Cilium-PR-K8s-1.21-kernel-4.9' failed and has not been observed before, so may be related to your PR: Click to show.Test Name
Failure Output
If it is a flake, comment |
/test-1.16-netnext https://jenkins.cilium.io/job/Cilium-PR-K8s-1.16-net-next/1558/ |
/test-net-next |
1 similar comment
/test-net-next |
This commit is to add categories for cilium CRDs, so that users can easily query cilium CRs with kubectl commands (e.g. kubectl get cilium or kubectl get ciliumpolicy). Two categories (e.g. cilium and ciliumpolicy) are added to start with. Signed-off-by: Tam Mach <sayboras@yahoo.com>
This commit is to add a simple check for generated CRDs to make sure that all CRDs must have category field specified, also, it must have cilium category. Signed-off-by: Tam Mach <sayboras@yahoo.com>
176ef8c
to
0e3fd11
Compare
/test-net-next |
This commit is to add categories for cilium CRDs, so that users can
easily query cilium CRs with kubectl commands (e.g. kubectl get
cilium or kubectl get ciliumpolicy). Two categories (e.g. cilium and
ciliumpolicy) are added to start with.
Signed-off-by: Tam Mach sayboras@yahoo.com
Related slack conversation