diff --git a/charts/gitsensor/Chart.yaml b/charts/gitsensor/Chart.yaml index 362fbfb3..ea6167b0 100644 --- a/charts/gitsensor/Chart.yaml +++ b/charts/gitsensor/Chart.yaml @@ -5,4 +5,4 @@ maintainers: - email: prakarsh@devtron.ai name: Prakarsh name: gitsensor -version: 0.11.7 +version: 0.11.8 diff --git a/charts/gitsensor/templates/generic.yaml b/charts/gitsensor/templates/generic.yaml index 6fe2d3f0..b92657e9 100644 --- a/charts/gitsensor/templates/generic.yaml +++ b/charts/gitsensor/templates/generic.yaml @@ -77,6 +77,12 @@ spec: securityContext: {{ toYaml .Values.containerSecurityContext | indent 12 }} {{- end }} + {{- if .Values.gitsensor.storage.existingVolume }} + volumes: + - name: "git-volume" + persistentVolumeClaim: + claimName: {{ .Values.gitsensor.storage.existingVolume }} + {{- end }} {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 8 }} @@ -85,6 +91,7 @@ spec: affinity: {{ toYaml .Values.gitsensor.spec.affinity | indent 8 }} {{- end }} +{{- if not .Values.gitsensor.storage.existingVolume }} volumeClaimTemplates: - metadata: name: git-volume @@ -97,4 +104,5 @@ spec: {{ if .Values.gitsensor.storage.nodeAffinity }} nodeAffinity: {{ toYaml .Values.gitsensor.storage.nodeAffinity | indent 10 }} -{{- end }} \ No newline at end of file +{{- end }} +{{- end }} diff --git a/charts/gitsensor/values.yaml b/charts/gitsensor/values.yaml index 5618afbc..c79a5d28 100644 --- a/charts/gitsensor/values.yaml +++ b/charts/gitsensor/values.yaml @@ -66,6 +66,7 @@ gitsensor: # values: # - us-east-2 storage: + #existingVolume: "git-sensor" class: gp2 requests: 2Gi nodeAffinity: {}