Skip to content
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

feat(argo-rollouts): Added Deployment labels to values.yaml #2590

Merged
merged 5 commits into from
Mar 23, 2024

Conversation

mpeters0n
Copy link
Contributor

@mpeters0n mpeters0n commented Mar 19, 2024

My company enforces Deployment labels to track team ownership, cost allocations, etc.

Checklist:

  • I have bumped the chart version according to versioning
  • I have updated the documentation according to documentation
  • I have updated the chart changelog with all the changes that come with this pull request according to changelog.
  • Any new values are backwards compatible and/or have sensible default.
  • I have signed off all my commits as required by DCO.
  • My build is green (troubleshooting builds).

@jmeridth
Copy link
Member

@mpeters0n plesse sign your commits to adhere to DCO. Thank you for your contribution

Signed-off-by: mpeters0n <2matthew.peterson@gmail.com>
@mpeters0n mpeters0n force-pushed the argo-rollouts-deployment-labels branch from 7bd6411 to d1dd1ec Compare March 19, 2024 17:49
Signed-off-by: mpeters0n <2matthew.peterson@gmail.com>
@@ -10,6 +10,9 @@ metadata:
name: {{ include "argo-rollouts.fullname" . }}
namespace: {{ .Release.Namespace | quote }}
labels:
{{- range $key, $value := (mergeOverwrite (deepCopy .Values.global.deploymentLabels) .Values.controller.deploymentLabels) }}
{{ $key }}: {{ $value | quote }}
{{- end }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested this with both .Values.global.deploymentLabels defined and undefined to verify backwards compatibility

Copy link
Collaborator

@yu-croco yu-croco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution. LGTM.

Signed-off-by: Matthew Peterson <51802441+mpeters0n@users.noreply.github.com>
This seems to be a bug in the GitHub merge conflict editor

Signed-off-by: Matthew Peterson <51802441+mpeters0n@users.noreply.github.com>
@mkilchhofer mkilchhofer merged commit 19b3d72 into argoproj:main Mar 23, 2024
6 checks passed
@mpeters0n mpeters0n deleted the argo-rollouts-deployment-labels branch March 23, 2024 20:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants