Skip to content

Commit

Permalink
additional volumes
Browse files Browse the repository at this point in the history
Signed-off-by: Edvin Norling <edvin.norling@kognic.com>
  • Loading branch information
NissesSenap committed Apr 22, 2024
1 parent 8075cc5 commit d05d16b
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/dependency-track/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
apiVersion: v2
name: dependency-track
version: 0.2.0
version: 0.3.0
type: application
appVersion: 4.10.1
description: |-
Expand Down
6 changes: 6 additions & 0 deletions charts/dependency-track/templates/api-server/statefulset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ spec:
mountPath: /var/run/secrets/secret.key
readOnly: true
{{- end }}
{{- if .Values.apiServer.additionalVolumeMounts }}
{{- toYaml .Values.apiServer.additionalVolumeMounts | nindent 8 }}
{{- end }}
livenessProbe:
httpGet:
scheme: HTTP
Expand Down Expand Up @@ -115,6 +118,9 @@ spec:
secret:
secretName: {{ . }}
{{- end }}
{{- if .Values.apiServer.additionalVolumes }}
{{- toYaml .Values.apiServer.additionalVolumes | nindent 6 }}
{{- end }}
{{- if .Values.apiServer.persistentVolume.enabled }}
volumeClaimTemplates:
- metadata:
Expand Down
6 changes: 6 additions & 0 deletions charts/dependency-track/templates/frontend/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ spec:
volumeMounts:
- name: tmp
mountPath: /tmp
{{- if .Values.frontend.additionalVolumeMounts }}
{{- toYaml .Values.frontend.additionalVolumeMounts | nindent 8 }}
{{- end }}
livenessProbe:
httpGet:
scheme: HTTP
Expand Down Expand Up @@ -91,3 +94,6 @@ spec:
volumes:
- name: tmp
emptyDir: { }
{{- if .Values.frontend.additionalVolumes }}
{{- toYaml .Values.frontend.additionalVolumes | nindent 6 }}
{{- end }}
15 changes: 15 additions & 0 deletions charts/dependency-track/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,13 @@ apiServer:
periodSeconds: 15
successThreshold: 1
timeoutSeconds: 5
additionalVolumeMounts: []
# - name: foo
# mountPath: /bar
additionalVolumes:
[]
# - name: foo
# emptyDir: {}
service:
type: ClusterIP
nodePort: ~
Expand Down Expand Up @@ -111,6 +118,14 @@ frontend:
periodSeconds: 15
successThreshold: 1
timeoutSeconds: 5
additionalVolumeMounts:
[]
# - name: foo
# mountPath: /bar
additionalVolumes:
[]
# - name: foo
# emptyDir: {}
service:
type: ClusterIP
nodePort: ~
Expand Down

0 comments on commit d05d16b

Please sign in to comment.