Skip to content

Commit

Permalink
feat(clusterapi-resources): Add params to set apiServer and controlle…
Browse files Browse the repository at this point in the history
…rManager extraArgs (#34)

### PR Description
Please replace this with a high level description of what this PR is
supposed to accomplish.

### Checklist

- [x] Have you reviewed and updated the chart default values if
necessary?
- [ ] Have you reviewed and updated the chart documentation if
necessary?
- [ ] Does your branch follow the naming convention of
`{chartNameWithDashes}-v{versionString}-{optionalPatchVersion}`?
 - [ ] 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 4, 2024
1 parent 83bcd26 commit 935cb17
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@ spec:
apiServer:
extraArgs:
cloud-provider: external
{{- with .Values.kubeadmConfigSpec.apiServer.extraArgs }}
{{- toYaml . | nindent 10 }}
{{- end }}
controllerManager:
extraArgs:
cloud-provider: external
{{- with .Values.kubeadmConfigSpec.controllerManager.extraArgs }}
{{- toYaml . | nindent 10 }}
{{- end }}
{{- with .Values.kubeadmConfigSpec.files }}
files:
{{- toYaml . | nindent 4 }}
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 @@ -66,6 +66,16 @@ vsphereMachineTemplate:
# template: ubuntu-2204-kube-v1.30.0

kubeadmConfigSpec:
## Extra args for kubeadm apiServer
apiServer:
extraArgs: {}
# extra1: value1
# extra2: value2
## Extra args for kubeadm controllerManager
controllerManager:
extraArgs: {}
# extra1: value1
# extra2: value2
preKubeadmCommands:
- hostnamectl set-hostname "{{ ds.meta_data.hostname }}"
- echo "::1 ipv6-localhost ipv6-loopback localhost6 localhost6.localdomain6" >/etc/hosts
Expand Down

0 comments on commit 935cb17

Please sign in to comment.