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
core: create rook resources with k8s recommended labels #8678
Conversation
2aa72fb
to
e9705f8
Compare
I don't see these changes reflected in |
aa81ffc
to
ff12b42
Compare
ff12b42
to
63c10c4
Compare
From discussion, we will need to add these as new labels rather than replacing existing labels. Something else to be aware of is that in the various helpers for adding labels:
|
55bb69f
to
ab4a694
Compare
|
1343f5b
to
5e520f8
Compare
233637d
to
42ae916
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.
After the CI is fixed I'd propose we go ahead and merge. I've marked this as a blocker for 1.8 so we can start have these labels in the new release. Thanks!
build/rbac/rbac.yaml
Outdated
@@ -1,4 +1,211 @@ | |||
--- | |||
kind: ClusterRoleBinding |
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 a bunch of extra rbac was mistakenly generated
This pull request has merge conflicts that must be resolved before it can be merged. @parth-gr please rebase it. https://rook.io/docs/rook/latest/development-flow.html#updating-your-fork |
571f59e
to
d3151c7
Compare
Adding Recommended Labels on the resources created by rook and using Recommended Labels in the helm chart, for better visuals and management of k8s object Closes: rook#8400 Signed-off-by: parth-gr <paarora@redhat.com>
5aab73b
to
0a86d26
Compare
The labels look good to me on the majority of pods, so I would recommend we go ahead with this. We can follow up with a separate PR to add the labels on the other resources such as jobs, secrets, and configmaps. |
sounds good |
core: create rook resources with k8s recommended labels (backport #8678)
The cluster info is important context for the cluster controller to create the cluster, and all the fields must be properly set. A test cluster name was being set temporarily, resulting in mons incorrectly getting the wrong cluster CR name. There is no known issue from the temporary value, it was just exposed by rook#8678 setting the value to a label. Now the functions are more clearly named so only unit and integration tests should be using the test value for the cluster name where it is not important. Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
The cluster info is important context for the cluster controller to create the cluster, and all the fields must be properly set. A test cluster name was being set temporarily, resulting in mons incorrectly getting the wrong cluster CR name. There is no known issue from the temporary value, it was just exposed by rook#8678 setting the value to a label. Now the functions are more clearly named so only unit and integration tests should be using the test value for the cluster name where it is not important. Signed-off-by: Travis Nielsen <tnielsen@redhat.com>
Adding Recommended Labels on the resources created by rook
and using Recommended Labels in the helm chart,
for better visuals and management of k8s object
Signed-off-by: parth-gr paarora@redhat.com
Description of your changes:
Which issue is resolved by this Pull Request:
Resolves #8400
Checklist:
make codegen
) has been run to update object specifications, if necessary.