Skip to content

Commit ec4a325

Browse files
committed
Add support for localStorage on ProxmoxTemplates
This adds supoprt for PR ionos-cloud/cluster-api-provider-proxmox#467
1 parent fc1d403 commit ec4a325

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

charts/capi-proxmox/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ keywords:
88
- bootstrapping
99
- kubernetes
1010
- proxmox
11-
version: 1.0.3
11+
version: 1.0.4
1212
appVersion: v1beta1
1313
home: https://github.com/ionos-cloud/cluster-api-provider-proxmox
1414
sources:

charts/capi-proxmox/templates/proxmox-machine-templates.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ spec:
7373
{{- with $template.templateID }}
7474
templateID: {{ . }}
7575
{{- end }}
76+
{{- if and ($template.templateSelector) ($template.localStorage) }}
77+
localStorage: true
78+
{{- end }}
7679
{{- with $template.templateSelector }}
7780
templateSelector:
7881
{{- toYaml . | nindent 8 }}
@@ -81,4 +84,5 @@ spec:
8184
vmIDRange:
8285
{{- toYaml . | nindent 8 }}
8386
{{- end }}
87+
8488
{{ end }}

charts/capi-proxmox/values-test.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,12 @@ machineTemplates:
4040
memory: 4096
4141
numCores: 2
4242
numSockets: 2
43-
templateID: 101
43+
localStorage: true
44+
templateSelector:
45+
matchTags:
46+
- k8s
47+
- v1.32.5
48+
- ubuntu-24.04
4449
network:
4550
default:
4651
bridge: vmbr0

0 commit comments

Comments
 (0)