Skip to content

Commit

Permalink
Merge pull request #180 from a13x5/rootvolumesize-config
Browse files Browse the repository at this point in the history
Make root volume size configurable
  • Loading branch information
Kshatrix authored Aug 13, 2024
2 parents bcc3312 + 2b69a01 commit 3a94b83
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions templates/aws-hosted-cp/templates/awsmachinetemplate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ spec:
sshKeyName: {{ .Values.sshKeyName | quote }}
{{- end }}
publicIP: {{ .Values.publicIP }}
rootVolume:
size: {{ .Values.rootVolumeSize }}
1 change: 1 addition & 0 deletions templates/aws-hosted-cp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ amiID: ""
iamInstanceProfile: control-plane.cluster-api-provider-aws.sigs.k8s.io
instanceType: ""
securityGroupIDs: []
rootVolumeSize: 8

# K0smotron parameters
k0smotron:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ spec:
sshKeyName: {{ .Values.sshKeyName | quote }}
{{- end }}
publicIP: {{ .Values.publicIP }}
rootVolume:
size: {{ .Values.controlPlane.rootVolumeSize }}
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,5 @@ spec:
sshKeyName: {{ .Values.sshKeyName | quote }}
{{- end }}
publicIP: {{ .Values.publicIP }}
rootVolume:
size: {{ .Values.worker.rootVolumeSize }}
8 changes: 8 additions & 0 deletions templates/aws-standalone-cp/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@
"items": {
"type": "string"
}
},
"rootVolumeSize": {
"description": "The size of the root volume of the instance (GB)",
"type": "integer"
}
}
},
Expand Down Expand Up @@ -115,6 +119,10 @@
"additionalSecurityGroupIDs": {
"description": "An array of references to security groups that should be applied to the instance",
"type": "array"
},
"rootVolumeSize": {
"description": "The size of the root volume of the instance (GB)",
"type": "integer"
}
}
},
Expand Down
2 changes: 2 additions & 0 deletions templates/aws-standalone-cp/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,13 @@ controlPlane:
amiID: ""
iamInstanceProfile: control-plane.cluster-api-provider-aws.sigs.k8s.io
instanceType: ""
rootVolumeSize: 8

worker:
amiID: ""
iamInstanceProfile: control-plane.cluster-api-provider-aws.sigs.k8s.io
instanceType: ""
rootVolumeSize: 8

# K0s parameters
k0s:
Expand Down

0 comments on commit 3a94b83

Please sign in to comment.