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

Change bracket type for labels and annotations in values.yaml #3402

Merged
merged 3 commits into from
Jul 4, 2024

Conversation

luhi-DT
Copy link
Collaborator

@luhi-DT luhi-DT commented Jul 3, 2024

Description

https://dt-rnd.atlassian.net/browse/K8S-10499

Adding a label using an umbrella helm chart that has the operator helm chart as a child. Due to labels being initalized as an array with labels: [] in values.yaml, this causes an error when you try to override it.

coalesce.go:289: warning: destination for dynatrace-operator-azure-app.dynatrace-operator.operator.labels is a table. Ignoring non-table value ([])

There are many github issues where other charts did this and they got corrected - cert-manager is an example where they do this correctly: cert-manager/deploy/charts/cert-manager/values.yaml at master · cert-manager/cert-manager

How can this be tested?

Apply the helm chart with default values and check if it works still
Apply the helm chart with custom values set for annotations and labels in the values file

@luhi-DT luhi-DT added the helm Changes to helm templates or values file label Jul 3, 2024
@luhi-DT luhi-DT requested a review from a team as a code owner July 3, 2024 15:41
@luhi-DT luhi-DT changed the title Change bracket type from labels and annotations Change bracket type for labels and annotations in values.yaml Jul 3, 2024
@luhi-DT luhi-DT enabled auto-merge (squash) July 4, 2024 08:39
@luhi-DT luhi-DT merged commit 9d63386 into main Jul 4, 2024
14 checks passed
@luhi-DT luhi-DT deleted the fix/helm-labels branch July 4, 2024 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
helm Changes to helm templates or values file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants