Skip to content

Commit

Permalink
fix(charts): make the cvc operator service labels consistent with ope…
Browse files Browse the repository at this point in the history
…rator (#239)



Signed-off-by: shubham <shubham.bajpai@mayadata.io>
  • Loading branch information
shubham14bajpai authored Feb 2, 2021
1 parent 5b3beb4 commit 613bbff
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion deploy/helm/charts/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: CStor-Operator helm chart for Kubernetes
type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
version: 2.5.1
version: 2.5.2
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.
appVersion: 2.5.0
Expand Down
16 changes: 16 additions & 0 deletions deploy/helm/charts/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,13 @@ Create component labels cstor cvc operator
openebs.io/component-name: {{ .Values.cvcOperator.componentName | quote }}
{{- end -}}

{{/*
Create component labels cstor cvc operator service
*/}}
{{- define "cstor.cvcOperatorService.componentLabels" -}}
openebs.io/component-name: {{ printf "%s-svc" .Values.cvcOperator.componentName | quote }}
{{- end -}}


{{/*
Create labels for cstor cvc operator
Expand All @@ -128,6 +135,15 @@ Create labels for cstor cvc operator
{{ include "cstor.cvcOperator.componentLabels" . }}
{{- end -}}

{{/*
Create labels for cstor cvc operator service
*/}}
{{- define "cstor.cvcOperatorService.labels" -}}
{{ include "cstor.common.metaLabels" . }}
{{ include "cstor.cvcOperator.matchLabels" . }}
{{ include "cstor.cvcOperatorService.componentLabels" . }}
{{- end -}}

{{/*
Create match labels for cstor csi node operator
*/}}
Expand Down
2 changes: 1 addition & 1 deletion deploy/helm/charts/templates/cvc-operator-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ kind: Service
metadata:
name: {{ template "cstor.fullname" . }}-cvc-operator-svc
labels:
{{- include "cstor.cvcOperator.labels" . | nindent 4 }}
{{- include "cstor.cvcOperatorService.labels" . | nindent 4 }}
spec:
ports:
- name: api
Expand Down

0 comments on commit 613bbff

Please sign in to comment.