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

litmus-agent helm rendering fails with duplicate labels for sub helm chart #361

Closed
ayanevbg opened this issue Feb 12, 2024 · 2 comments · Fixed by #362
Closed

litmus-agent helm rendering fails with duplicate labels for sub helm chart #361

ayanevbg opened this issue Feb 12, 2024 · 2 comments · Fixed by #362
Assignees
Labels

Comments

@ayanevbg
Copy link

When I try to install litmus-agent helm chart for versions >=0.2.0 it fails with the following error:

Sub charts - https://github.com/litmuschaos/litmus-helm/tree/master/charts/litmus-agent/charts have duplicate labels for

litmuschaos.io/app:
app.kubernetes.io/name:
app.kubernetes.io/instance:

This is caused because the deployments have both .selectorLabels and .labels added to the manifest.

Example:

{{- include "chaos-exporter.selectorLabels" . | nindent 8 }}
{{- include "chaos-exporter.labels" . | nindent 8 }}

In the helpers the selectorLabels are included in labels :

{{ include "chaos-exporter.selectorLabels" . }}

@Calvinaud
Copy link
Contributor

Hello,

The issue was introduced in my PR : #327.
I create a new PR to fix it.
I don't know why but I had no issue when deploying the chart.

@uditgaurav
Copy link
Member

Thanks @Calvinaud for the PR. Please feel free to update the PR with master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants