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

Added support for attaching existing PVC in Git sensor #180

Open
wants to merge 14 commits into
base: main
Choose a base branch
from
Open
2 changes: 1 addition & 1 deletion charts/gitsensor/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ maintainers:
- email: [email protected]
name: Prakarsh
name: gitsensor
version: 0.11.7
version: 0.11.8
10 changes: 9 additions & 1 deletion charts/gitsensor/templates/generic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand All @@ -97,4 +104,5 @@ spec:
{{ if .Values.gitsensor.storage.nodeAffinity }}
nodeAffinity:
{{ toYaml .Values.gitsensor.storage.nodeAffinity | indent 10 }}
{{- end }}
{{- end }}
{{- end }}
1 change: 1 addition & 0 deletions charts/gitsensor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ gitsensor:
# values:
# - us-east-2
storage:
#existingVolume: "git-sensor"
class: gp2
requests: 2Gi
nodeAffinity: {}
Expand Down