-
Notifications
You must be signed in to change notification settings - Fork 2
Add utility metadata package for Kubernetes labels #18
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
Conversation
fernando-villalba
left a comment
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.
As far as I can tell, it looks mostly perfect, just have two small questions about potential oversights.
|
@fernando-villalba With b2632ea, I moved all the tests into a separate package. There are a few more minor commits as well. If you could take another look, that would be appreciated! |
fernando-villalba
left a comment
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.
LGTM!
|
Going ahead with the merge, any impl adjustment can happen iteratively |
| // Parameters: | ||
| // - resourceName: The name of the custom resource instance (e.g., "my-etcd-cluster") | ||
| // - componentName: The component type (e.g., "etcd", "gateway", "orch", "pooler") | ||
| // - cellName: Optional cell name. If empty, no cell label is added. |
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.
Maybe remove this comment now we are doing a default?
This is a common label handling logic that will be used by many resources.