-
Notifications
You must be signed in to change notification settings - Fork 151
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
Add recommended Kubernetes labels #217
Conversation
@lindhe please run |
Again, note that this PR only applies the labels where I think it matches the existing labels. Do we want to look in more details for places where we want to introduce the remaining labels as well, or do we take that as a separate PR? |
@lindhe it would be better if we can add other labels all at once in this PR. I think we should also add And I would move them all to a template helper in another PR. Not asking you to do that, just making a note for myself. |
And sorry, I pushed something else, and it needs another |
I agree! It will be somewhat tedious to go through all components and think about which new labels make sense, but I think it will be worth it. Great that you remembered
Moving them to a template helper sounds like a good idea. There's two reasons I didn't do that already:
No worries! It's great that the new releases come so frequently, just keep that going and we'll fix conflicts here later! :) But I'm probably going to wait with another Another question: Do we want |
ad02a6c
to
7324c8f
Compare
I removed the CHANGELOG commit and TODO: Add those back in later. |
2458e75
to
35eb883
Compare
I would move only common labels to the template helper, while keeping the component labels on their places.
I think we should add all the recommended labels uniformly across all k8s objects. I don't see any issue with configMap having app version label
I agree, let's omit it. |
As recommended by Helm: > helm.sh/chart: > This should be the chart name and version: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}. https://helm.sh/docs/chart_best_practices/labels/#standard-labels
I had missed that |
* app.kubernetes.io/name * app.kubernetes.io/managed-by * app.kubernetes.io/instance * app.kubernetes.io/version * helm.sh/chart
There. Consolidating them into a shared definition in Please review the new definitions and decide if it looks good. Is the label sorted in a good order? I kept it the same as in https://helm.sh/docs/chart_best_practices/labels/#standard-labels |
Yes, I think this order is good. |
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.
Look good to me. Thanks the contribution!
This change implements the recommended Kubernetes labels where applicable, according to Helm's recommendations.
Resolves #216
Status
{{ template "splunk-otel-collector.name" . }}
{{ .Chart.Name }}
{{ .Release.Service }}
{{ .Release.Name }}
{{ .Chart.AppVersion | quote }}
otel-k8s-cluster-receiver
orotel-collector
TODO
_helpers.tpl
make render