Skip to content

Commit

Permalink
smee: add additionalVolumes & additionalVolumeMounts (#113)
Browse files Browse the repository at this point in the history
#### smee: add `additionalVolumes` & `additionalVolumeMounts`

- added flexibility for non-standard scenarios

Signed-off-by: Ricardo Pardini <[email protected]>
  • Loading branch information
mergify[bot] authored Jul 19, 2024
2 parents c2cc5f5 + 2c0672f commit 95df5bc
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tinkerbell/smee/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ spec:
requests:
cpu: {{ .Values.resources.requests.cpu }}
memory: {{ .Values.resources.requests.memory }}
{{- with .Values.additionalVolumeMounts }}
volumeMounts:
{{- toYaml . | nindent 12 }}
{{- end }}
{{- with .Values.additionalVolumes }}
volumes:
{{- toYaml . | nindent 8 }}
{{- end }}
serviceAccountName: {{ .Values.name }}
{{- if .Values.hostNetwork }}
hostNetwork: true
Expand Down
13 changes: 13 additions & 0 deletions tinkerbell/smee/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -135,3 +135,16 @@ additionalEnv: []
singleNodeClusterConfig:
controlPlaneTolerationsEnabled: false
nodeAffinityWeight: 1

# Additional volumes on the output Deployment definition.
additionalVolumes: [ ]
# - name: foo
# secret:
# secretName: mysecret
# optional: false

# Additional volumeMounts on the Smee container
additionalVolumeMounts: [ ]
# - name: foo
# mountPath: "/etc/foo"
# readOnly: true

0 comments on commit 95df5bc

Please sign in to comment.