Skip to content

Commit

Permalink
fix(netbox): fixed statefulSet persistence values
Browse files Browse the repository at this point in the history
  • Loading branch information
NaPs committed Apr 9, 2020
1 parent f5ac84c commit 608e470
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions charts/netbox/templates/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,24 @@ spec:
{{- end }}
serviceName: 'netbox'
{{ include "netbox.common" . | indent 2 }}
{{- if .Values.persistence.enabled }}
{{- if .Values.persistence.customClaim }}
{{ .Values.persistence.customClaim | toYaml | nindent 4 }}
{{- if .Values.statefulSet.persistence.enabled }}
{{- if .Values.statefulSet.persistence.customClaim }}
{{ .Values.statefulSet.persistence.customClaim | toYaml | nindent 4 }}
{{- else }}
volumeClaimTemplates:
- spec:
accessModes:
{{- range .Values.persistence.accessModes }}
{{- range .Values.statefulSet.persistence.accessModes }}
- {{ . | quote }}
{{- end }}
resources:
requests:
storage: "{{.Values.persistence.size }}"
{{- if .Values.persistence.storageClass }}
{{- if (eq "-" .Values.server.persistence.storageClass) }}
storage: "{{.Values.statefulSet.persistence.size }}"
{{- if .Values.statefulSet.persistence.storageClass }}
{{- if (eq "-" .Values.statefulSet.persistence.storageClass) }}
storageClassName: ""
{{- else }}
storageClassName: "{{ .Values.persistence.storageClass }}"
storageClassName: "{{ .Values.statefulSet.persistence.storageClass }}"
{{- end }}
{{- end }}
metadata:
Expand Down

0 comments on commit 608e470

Please sign in to comment.