Make rootVolume dependent on disk size being specified (#54)
* Make rootVolume dependent on disk size being specified * Fix linting issues
This commit is contained in:
parent
b3b282caaa
commit
86cc717bec
@ -13,8 +13,8 @@ template:
|
||||
{{- with .Values.machineSSHKeyName }}
|
||||
sshKeyName: {{ . }}
|
||||
{{- end }}
|
||||
{{- with .Values.controlPlane.machineRootVolume }}
|
||||
rootVolume: {{ toYaml . | nindent 6 }}
|
||||
{{- if .Values.controlPlane.machineRootVolume.diskSize }}
|
||||
rootVolume: {{ toYaml .Values.controlPlane.machineRootVolume | nindent 6 }}
|
||||
{{- end }}
|
||||
{{- if .Values.machineImageId }}
|
||||
imageUUID: {{ .Values.machineImageId }}
|
||||
|
@ -15,8 +15,8 @@ template:
|
||||
{{- with $ctx.Values.machineSSHKeyName }}
|
||||
sshKeyName: {{ . }}
|
||||
{{- end }}
|
||||
{{- with $nodeGroup.machineRootVolume }}
|
||||
rootVolume: {{ toYaml . | nindent 6 }}
|
||||
{{- if $nodeGroup.machineRootVolume.diskSize }}
|
||||
rootVolume: {{ toYaml $nodeGroup.machineRootVolume | nindent 6 }}
|
||||
{{- end }}
|
||||
{{- if $ctx.Values.machineImageId }}
|
||||
imageUUID: {{ $ctx.Values.machineImageId }}
|
||||
|
@ -140,15 +140,15 @@ controlPlane:
|
||||
networks:
|
||||
ports:
|
||||
# The root volume spec for control plane machines
|
||||
# If not given, the ephemeral root disk from the flavor is used
|
||||
machineRootVolume:
|
||||
# # The size of the disk to use
|
||||
# diskSize:
|
||||
# # The volume type to use
|
||||
# # If not specified, the default volume type is used
|
||||
# The size of the disk to use
|
||||
# If not given, the ephemeral root disk from the flavor is used
|
||||
diskSize:
|
||||
# The volume type to use
|
||||
# If not specified, the default volume type is used
|
||||
# volumeType:
|
||||
# # The volume availability zone to use
|
||||
# # If not specified, the machine availability zone is used
|
||||
# The volume availability zone to use
|
||||
# If not specified, the machine availability zone is used
|
||||
# availabilityZone:
|
||||
# The time to wait for a node to finish draining before it can be removed
|
||||
nodeDrainTimeout: 5m0s
|
||||
@ -229,15 +229,15 @@ nodeGroupDefaults:
|
||||
networks:
|
||||
ports:
|
||||
# The root volume spec for machines in the node group
|
||||
# If not given, the ephemeral root disk from the flavor is used
|
||||
machineRootVolume:
|
||||
# # The size of the disk to use
|
||||
# diskSize:
|
||||
# # The volume type to use
|
||||
# # If not specified, the default volume type is used
|
||||
# The size of the disk to use
|
||||
# If not given, the ephemeral root disk from the flavor is used
|
||||
diskSize:
|
||||
# The volume type to use
|
||||
# If not specified, the default volume type is used
|
||||
# volumeType:
|
||||
# # The volume availability zone to use
|
||||
# # If not specified, the machine availability zone is used
|
||||
# The volume availability zone to use
|
||||
# If not specified, the machine availability zone is used
|
||||
# availabilityZone:
|
||||
# The time to wait for a node to finish draining before it can be removed
|
||||
nodeDrainTimeout: 5m0s
|
||||
|
Loading…
x
Reference in New Issue
Block a user