Add deploymentLabels interpolation
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you can request access to GitLab Duo.
What does this MR do?
Interpolates deploymentLabels
Why was this MR needed?
Allows users to set the deployment labels with interpolated data.
Example:
deploymentLabels:
app.kubernetes.io/name: "{{ .Chart.Name }}"
app.kubernetes.io/version: "{{ .Chart.Version }}"
renders the deployment labels as:
metadata:
labels:
app.kubernetes.io/name: gitlab-runner
app.kubernetes.io/version: 0.71.0
What's the best way to test this MR?
If you run the following command kubectl get deploy,sts,ds,pod -L app.kuberentes.io/name,app.kuberentes.io/version --namespace <PACKGE_NAMESPACE>
the application name and application version should show as part of the output
What are the relevant issue numbers?
-
Edited by Hannes Hörl