Skip to content

Commit

Permalink
Remove duplicate labels in litmus-agent charts: (#362)
Browse files Browse the repository at this point in the history
- Remove selector in deployment of sub-charts since they were already include in the labels
- Update label of litmus-agent to remove duplicate
- Upgrade version of subchart to 0.2.1 and charts to 0.2.2
- Regenerate docs with helm-docs

Signed-off-by: Calvin Audier <[email protected]>
Signed-off-by: Calvin Audier <[email protected]>
Co-authored-by: Calvin Audier <[email protected]>
  • Loading branch information
Calvinaud and Calvin Audier authored May 14, 2024
1 parent c039565 commit df025fe
Show file tree
Hide file tree
Showing 18 changed files with 23 additions and 31 deletions.
12 changes: 6 additions & 6 deletions charts/litmus-agent/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "3.6.0"
description: A Helm chart to install litmus agent
name: litmus-agent
version: 3.6.0
version: 3.6.1
kubeVersion: ">=1.16.0-0"
home: https://litmuschaos.io
sources:
Expand All @@ -21,17 +21,17 @@ maintainers:
icon: https://raw.githubusercontent.com/litmuschaos/icons/master/litmus.png
dependencies:
- name: chaos-operator
version: 3.6.0
version: 3.6.1
condition: chaos-operator.enabled
- name: chaos-exporter
version: 3.6.0
version: 3.6.1
condition: chaos-exporter.enabled
- name: event-tracker
version: 3.6.0
version: 3.6.1
condition: event-tracker.enabled
- name: subscriber
version: 3.6.0
version: 3.6.1
condition: subscriber.enabled
- name: workflow-controller
version: 0.2.0
version: 0.2.1
condition: workflow-controller.enabled
12 changes: 6 additions & 6 deletions charts/litmus-agent/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# litmus-agent

![Version: 3.6.0](https://img.shields.io/badge/Version-3.6.0-informational?style=flat-square) ![AppVersion: 3.6.0](https://img.shields.io/badge/AppVersion-3.6.0-informational?style=flat-square)
![Version: 3.6.1](https://img.shields.io/badge/Version-3.6.1-informational?style=flat-square) ![AppVersion: 3.6.0](https://img.shields.io/badge/AppVersion-3.6.0-informational?style=flat-square)

A Helm chart to install litmus agent

Expand All @@ -24,11 +24,11 @@ Kubernetes: `>=1.16.0-0`

| Repository | Name | Version |
|------------|------|---------|
| | chaos-exporter | 3.6.0 |
| | chaos-operator | 3.6.0 |
| | event-tracker | 3.6.0 |
| | subscriber | 3.6.0 |
| | workflow-controller | 0.2.0 |
| | chaos-exporter | 3.6.1 |
| | chaos-operator | 3.6.1 |
| | event-tracker | 3.6.1 |
| | subscriber | 3.6.1 |
| | workflow-controller | 0.2.1 |

## Installing the Chart

Expand Down
2 changes: 1 addition & 1 deletion charts/litmus-agent/charts/chaos-exporter/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "3.6.0"
description: A Helm chart to install chaos-exporter
name: chaos-exporter
version: 3.6.0
version: 3.6.1
kubeVersion: ">=1.16.0-0"
home: https://litmuschaos.io
sources:
Expand Down
2 changes: 1 addition & 1 deletion charts/litmus-agent/charts/chaos-exporter/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# chaos-exporter

![Version: 3.6.0](https://img.shields.io/badge/Version-3.6.0-informational?style=flat-square) ![AppVersion: 3.6.0](https://img.shields.io/badge/AppVersion-3.6.0-informational?style=flat-square)
![Version: 3.6.1](https://img.shields.io/badge/Version-3.6.1-informational?style=flat-square) ![AppVersion: 3.6.0](https://img.shields.io/badge/AppVersion-3.6.0-informational?style=flat-square)

A Helm chart to install chaos-exporter

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "chaos-exporter.selectorLabels" . | nindent 8 }}
{{- include "chaos-exporter.labels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
Expand Down
2 changes: 1 addition & 1 deletion charts/litmus-agent/charts/chaos-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "3.6.0"
description: A Helm chart to install chaos-operator
name: chaos-operator
version: 3.6.0
version: 3.6.1
kubeVersion: ">=1.16.0-0"
home: https://litmuschaos.io
sources:
Expand Down
2 changes: 1 addition & 1 deletion charts/litmus-agent/charts/chaos-operator/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# chaos-operator

![Version: 3.6.0](https://img.shields.io/badge/Version-3.6.0-informational?style=flat-square) ![AppVersion: 3.6.0](https://img.shields.io/badge/AppVersion-3.6.0-informational?style=flat-square)
![Version: 3.6.1](https://img.shields.io/badge/Version-3.6.1-informational?style=flat-square) ![AppVersion: 3.6.0](https://img.shields.io/badge/AppVersion-3.6.0-informational?style=flat-square)

A Helm chart to install chaos-operator

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "chaos-operator.selectorLabels" . | nindent 8 }}
{{- include "chaos-operator.labels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
Expand Down
2 changes: 1 addition & 1 deletion charts/litmus-agent/charts/event-tracker/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "3.6.0"
description: A Helm chart to install event-tracker
name: event-tracker
version: 3.6.0
version: 3.6.1
kubeVersion: ">=1.16.0-0"
home: https://litmuschaos.io
sources:
Expand Down
2 changes: 1 addition & 1 deletion charts/litmus-agent/charts/event-tracker/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# event-tracker

![Version: 3.6.0](https://img.shields.io/badge/Version-3.6.0-informational?style=flat-square) ![AppVersion: 3.6.0](https://img.shields.io/badge/AppVersion-3.6.0-informational?style=flat-square)
![Version: 3.6.1](https://img.shields.io/badge/Version-3.6.1-informational?style=flat-square) ![AppVersion: 3.6.0](https://img.shields.io/badge/AppVersion-3.6.0-informational?style=flat-square)

A Helm chart to install event-tracker

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "event-tracker.selectorLabels" . | nindent 8 }}
{{- include "event-tracker.labels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
Expand Down
2 changes: 1 addition & 1 deletion charts/litmus-agent/charts/subscriber/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "3.6.0"
description: A Helm chart to install subscriber
name: subscriber
version: 3.6.0
version: 3.6.1
kubeVersion: ">=1.16.0-0"
home: https://litmuschaos.io
sources:
Expand Down
2 changes: 1 addition & 1 deletion charts/litmus-agent/charts/subscriber/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# subscriber

![Version: 3.6.0](https://img.shields.io/badge/Version-3.6.0-informational?style=flat-square) ![AppVersion: 3.6.0](https://img.shields.io/badge/AppVersion-3.6.0-informational?style=flat-square)
![Version: 3.6.1](https://img.shields.io/badge/Version-3.6.1-informational?style=flat-square) ![AppVersion: 3.6.0](https://img.shields.io/badge/AppVersion-3.6.0-informational?style=flat-square)

A Helm chart to install subscriber

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "subscriber.selectorLabels" . | nindent 8 }}
{{- include "subscriber.labels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
Expand Down
2 changes: 1 addition & 1 deletion charts/litmus-agent/charts/workflow-controller/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
appVersion: "v3.3.1"
description: A Helm chart to install workflow-controller
name: workflow-controller
version: 0.2.0
version: 0.2.1
kubeVersion: ">=1.16.0-0"
home: https://litmuschaos.io
sources:
Expand Down
2 changes: 1 addition & 1 deletion charts/litmus-agent/charts/workflow-controller/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# workflow-controller

![Version: 0.2.0](https://img.shields.io/badge/Version-0.2.0-informational?style=flat-square) ![AppVersion: v3.3.1](https://img.shields.io/badge/AppVersion-v3.3.1-informational?style=flat-square)
![Version: 0.2.1](https://img.shields.io/badge/Version-0.2.1-informational?style=flat-square) ![AppVersion: v3.3.1](https://img.shields.io/badge/AppVersion-v3.3.1-informational?style=flat-square)

A Helm chart to install workflow-controller

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
labels:
{{- include "workflow-controller.selectorLabels" . | nindent 8 }}
{{- include "workflow-controller.labels" . | nindent 8 }}
spec:
{{- with .Values.imagePullSecrets }}
Expand Down
5 changes: 1 addition & 4 deletions charts/litmus-agent/templates/hook-pre-install-job.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ spec:
metadata:
name: "{{ .Release.Name }}"
labels:
app.kubernetes.io/managed-by: {{ .Release.Service | quote }}
app.kubernetes.io/instance: {{ .Release.Name | quote }}
helm.sh/chart: "{{ .Chart.Name }}-{{ .Chart.Version }}"
{{- include "chaos-exporter.labels" . | nindent 8 }}
{{- include "litmus-agent.labels" . | nindent 8 }}
spec:
restartPolicy: Never
serviceAccountName: {{ include "litmus-agent.serviceAccountName" . }}
Expand Down

0 comments on commit df025fe

Please sign in to comment.