Skip to content

Commit

Permalink
Add option to set apiServer extraVolumes (#35)
Browse files Browse the repository at this point in the history
### PR Description
Add option to set `apiServer.extraVolumes`.

### Checklist

- [x] Have you reviewed and updated the chart default values if
necessary?
- [x] Have you reviewed and updated the chart documentation if
necessary?
- [ ] Does your branch follow the naming convention of
`{chartNameWithDashes}-v{versionString}-{optionalPatchVersion}`?
 - [x] Have you bumped the version in the chart's `Chart.yaml`?

### Tagged Releases
Please remember to make a tagged release after merging your PR that:

 - Has a tag name that matches your PR branch name (see above)
 - Has a description that summarizes the changes made

This makes it possible to use previous versions of the charts maintained
here as new releases are published. Please see the release history of
this repository for examples.

Signed-off-by: Igor Valente Blackman <[email protected]>
  • Loading branch information
iblackman authored Dec 6, 2024
1 parent 935cb17 commit 855e4a3
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/clusterapi-resources/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.0
version: 0.3.0

# This is the version of clusterctl used as base to generate the templates
appVersion: "1.8.3"
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ spec:
{{- with .Values.kubeadmConfigSpec.apiServer.extraArgs }}
{{- toYaml . | nindent 10 }}
{{- end }}
{{- with .Values.kubeadmConfigSpec.apiServer.extraVolumes }}
extraVolumes:
{{- toYaml . | nindent 10 }}
{{- end }}
controllerManager:
extraArgs:
cloud-provider: external
Expand Down
10 changes: 10 additions & 0 deletions charts/clusterapi-resources/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@ kubeadmConfigSpec:
extraArgs: {}
# extra1: value1
# extra2: value2
extraVolumes: {}
# - hostPath: /etc/kubernetes/tokens
# mountPath: /etc/kubernetes/tokens
# name: token-auth-config
# - hostPath: /etc/kubernetes/audit-policy
# mountPath: /etc/kubernetes/audit-policy
# name: audit-policy
# - hostPath: /var/log/kube-audit
# mountPath: /var/log/audit
# name: audit-logs
## Extra args for kubeadm controllerManager
controllerManager:
extraArgs: {}
Expand Down

0 comments on commit 855e4a3

Please sign in to comment.