Skip to content

Commit

Permalink
projected volume
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewazores committed Dec 2, 2024
1 parent 871ae55 commit 3f0dbc8
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 22 deletions.
20 changes: 11 additions & 9 deletions charts/cryostat/templates/cryostat_deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ spec:
failureThreshold: 18
resources:
{{- toYaml .Values.core.resources | nindent 12 }}
{{- if .Values.core.config.eventTemplates.configMapNames}}
volumeMounts:
{{- range .Values.core.config.eventTemplates.configMapNames }}
- name: {{ . }}
mountPath: /opt/cryostat.d/templates.d/{{ . }}
- name: declarative-event-templates
mountPath: /opt/cryostat.d/templates.d
readOnly: true
{{- end }}
- name: {{ printf "%s-%s" .Chart.Name "grafana" }}
Expand Down Expand Up @@ -222,9 +222,11 @@ spec:
secret:
secretName: {{ .Release.Name }}-proxy-tls
{{- end }}
{{- range .Values.core.config.eventTemplates.configMapNames}}
- name: {{ . }}
configMap:
name: {{ . }}
optional: false
{{- end }}
- name: declarative-event-templates
projected:
sources:
{{- range .Values.core.config.eventTemplates.configMapNames}}
- configMap:
name: {{ . }}
optional: false
{{- end }}
24 changes: 11 additions & 13 deletions charts/cryostat/tests/cryostat_deployment_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -523,23 +523,21 @@ tests:
- equal:
path: spec.template.spec.containers[?(@.name=='cryostat')].volumeMounts
value:
- name: a
mountPath: /opt/cryostat.d/templates.d/a
readOnly: true
- name: b
mountPath: /opt/cryostat.d/templates.d/b
- name: declarative-event-templates
mountPath: /opt/cryostat.d/templates.d
readOnly: true
- equal:
path: spec.template.spec.volumes
value:
- name: alpha-config
configMap:
name: RELEASE-NAME-alpha-config
- name: a
configMap:
name: a
optional: false
- name: b
configMap:
name: b
optional: false
- name: declarative-event-templates
projected:
sources:
- configMap:
name: a
optional: false
- configMap:
name: b
optional: false

0 comments on commit 3f0dbc8

Please sign in to comment.