Skip to content

Commit

Permalink
smee: add additionalVolumes & additionalVolumeMounts
Browse files Browse the repository at this point in the history
- added flexibility for non-standard scenarios
  - eg using a Secret-defined kubeconfig in conjunction with additionalArgs `-backend-kube-config`

Signed-off-by: Ricardo Pardini <[email protected]>
  • Loading branch information
rpardini committed Jul 11, 2024
1 parent 1f370dd commit 2cef75a
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 @@ -84,6 +84,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 @@ -134,3 +134,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 2cef75a

Please sign in to comment.