-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Adding Kubernetes recommended labels to resources #596
Conversation
@Cottonglow |
Would be great to add a script and Makefile target to change the version in these files before release, so we avoid manual work and possible typos/mistakes. |
Using
|
|
|
@balchua |
@zroubalik I didn't realise there was a separate issue for this and completed most of the work to substitute the values in the .yaml files... I can open a separate PR for the .yaml ones but leave the version.go one in here? Happy to take it out too. |
@Cottonglow that's fine, you can keep the things you have already done in this PR and if you are willing to work on the rest, you can open another PR with outstanding issues :) Thanks! |
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
Thanks @Cottonglow ! |
The intent behind this PR is to open a discussion and decide on what labels we want to add, the values we want and which resources they should be on (It is recommended to apply the labels on every resource object - https://kubernetes.io/docs/concepts/overview/working-with-objects/common-labels/).
I picked the labels that seemed reasonable to me and the values that made sense. (Eg
app.kubernetes.io/instance
doesn't feel like it would fit in andapp.kubernetes.io/managed-by
makes more sense for the helm charts)Some concerns/questions:
I have is theThis will be addressed in Automate update of KEDA version in the code and yaml files during each release #580version
label as this is hardcoded into the yaml files. This will get annoying when releasing newer version. If anyone has a proposal, that would be great!Also I hardcoded the version for now in theFixed.go
files as I am not familiar enough with Go to substitute it! Happy for anyone to add a commit to change this.service/keda-operator-metrics
as the operator-sdk doesn't let you pass in labels, so the other way of doing it, is to potentially update it with the labels you want. Although I haven't figured out how yet.Checklist
keda-operator-metrics-apiserver
pod keeps failing for some reason - This seemed to have been something locally. Deleting and restoring files worked.Add labels to- I will leave this as is for nowservice/keda-operator-metrics
Fixes #536