Skip to content

Commit

Permalink
Ьultiline cloudConfig support(#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
aleiner authored Aug 5, 2022
1 parent 8e94ce9 commit b5bd212
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions charts/templates/nodeconfig-vsphere.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ common:
cfgparam: {{ $nodepool.cfgparam }}
{{- end }}
cloneFrom: {{ $nodepool.cloneFrom }}
cloudConfig: {{ $nodepool.cloudConfig }}
cloudConfig: |
{{ $nodepool.cloudConfig | indent 2 }}
cloudinit: {{ $nodepool.cloudinit }}
contentLibrary: {{ $nodepool.contentLibrary }}
cpuCount: {{ $nodepool.cpuCount | quote }}
Expand Down Expand Up @@ -65,7 +66,8 @@ common:
cfgparam: {{ $nodepool.cfgparam }}
{{- end }}
cloneFrom: {{ $nodepool.cloneFrom }}
cloudConfig: {{ $nodepool.cloudConfig }}
cloudConfig: |
{{ $nodepool.cloudConfig | indent 2 }}
cloudinit: {{ $nodepool.cloudinit }}
contentLibrary: {{ $nodepool.contentLibrary }}
cpuCount: {{ $nodepool.cpuCount | quote }}
Expand Down
6 changes: 4 additions & 2 deletions charts/values-vsphere.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@ nodepools:
# If you choose creation type clone a name of what you want to clone is required
# cloneFrom: ""

# Filepath to a cloud-config yaml file to put into the ISO user-data
# cloudConfig: ""
# Contents of cloud-config yaml file to put into the ISO user-data; Format should be:
# cloudConfig: |
# #cloud-config
# <custom cloud-config>

# vSphere cloud-init filepath or url to add to guestinfo, filepath will be read and base64 encoded before adding
# cloudinit: ""
Expand Down

0 comments on commit b5bd212

Please sign in to comment.