Skip to content

Commit

Permalink
Merge pull request #8590 from OpenMined/rasswanth/fix-helm-upgrade
Browse files Browse the repository at this point in the history
Fix Helm Upgrade
  • Loading branch information
yashgorana authored Mar 15, 2024
2 parents 9e283e6 + dfd526c commit 7150dcf
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions packages/grid/helm/syft/templates/_labels.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ app.kubernetes.io/managed-by: {{ .Release.Service }}
helm.sh/chart: {{ include "common.chartname" . }}
{{- end -}}

{{- define "common.volumeLabels" -}}
app.kubernetes.io/name: {{ .Chart.Name }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
{{- end -}}

{{/*
Common labels for all resources
Usage:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ spec:
- metadata:
name: credentials-data
labels:
{{- include "common.labels" . | nindent 8 }}
{{- include "common.volumeLabels" . | nindent 8 }}
app.kubernetes.io/component: backend
spec:
accessModes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ spec:
- metadata:
name: mongo-data
labels:
{{- include "common.labels" . | nindent 8 }}
{{- include "common.volumeLabels" . | nindent 8 }}
app.kubernetes.io/component: mongo
spec:
accessModes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ spec:
- metadata:
name: registry-data
labels:
{{- include "common.labels" . | nindent 8 }}
{{- include "common.volumeLabels" . | nindent 8 }}
app.kubernetes.io/component: registry
spec:
accessModes:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ spec:
- metadata:
name: seaweedfs-data
labels:
{{- include "common.labels" . | nindent 8 }}
{{- include "common.volumeLabels" . | nindent 8 }}
app.kubernetes.io/component: seaweedfs
spec:
accessModes:
Expand Down

0 comments on commit 7150dcf

Please sign in to comment.