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: add podLabels to helm charts #627

Merged
merged 1 commit into from
Nov 9, 2022
Merged

Conversation

aramase
Copy link
Member

@aramase aramase commented Nov 8, 2022

Signed-off-by: Anish Ramasekar [email protected]

Reason for Change:

  • Adds support for configuring labels in the webhook pods.

Requirements

  • squashed commits
  • included documentation
  • added unit tests and e2e tests (if applicable).

Issue Fixed:

fixes #551

Please answer the following questions with yes/no:

Does this change contain code from or inspired by another project? If so, did you notify the maintainers and provide attribution?

  • yes
  • no

Notes for Reviewers:

Signed-off-by: Anish Ramasekar <[email protected]>
@@ -31,7 +31,6 @@ helm upgrade -n azure-workload-identity-system [RELEASE_NAME] azure-workload-ide

| Parameter | Description | Default |
| :---------------------------- | :------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------------------------------------ |
| labels | The labels to add to the azure-workload-identity webhook pods | `azure-workload-identity.io/system: "true"` |
Copy link
Member Author

Choose a reason for hiding this comment

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

labels was never used in the chart, so it should be safe to rename it to podLabels to be more specific

@aramase aramase requested review from enj and sozercan November 8, 2022 05:59
@aramase aramase added this to the v0.15.0 milestone Nov 8, 2022
Comment on lines +76 to +78
if kind == "Deployment" {
obj = strings.Replace(obj, " labels:", " labels:\n{{- include \"workload-identity-webhook.podLabels\" . }}", 1)
}
Copy link
Member

Choose a reason for hiding this comment

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

This is... special...

@aramase aramase merged commit 6a8e4bb into Azure:main Nov 9, 2022
@aramase aramase deleted the helm-pod-labels branch November 9, 2022 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Helm chart ignores labels
2 participants