Skip to content

Commit c90168a

Browse files
committed
Newline problem in multiple MachineDeployment
1 parent 4093043 commit c90168a

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

charts/capi-proxmox/templates/kubeadm-config-template.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ spec:
2020
joinConfiguration:
2121
{{- toYaml . | nindent 8 }}
2222
{{- end }}
23-
{{- end }}
23+
{{ end }}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
{{- range $index, $md := .Values.machineDeployments }}
1+
{{ range $index, $md := .Values.machineDeployments }}
22
{{- $object := dict "MachineDeployment" $md "Index" $index "Context" $ -}}
33
{{- $dictTemplate := dict "name"
44
(required (printf "templateName must be set for .Values.machineDeployments[%d]"
@@ -32,4 +32,4 @@ spec:
3232
kind: ProxmoxMachineTemplate
3333
name: {{ include "capi-proxmox.findTemplate" $dictTemplate }}
3434
version: {{ default $object.version $.Values.kubeadmControlPlane.version }}
35-
{{- end }}
35+
{{ end }}

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,4 @@ spec:
8484
vmIDRange:
8585
{{- toYaml . | nindent 8 }}
8686
{{- end }}
87-
8887
{{ end }}

charts/capi-proxmox/values-test.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,10 @@ machineDeployments:
6969
templateName: worker
7070
kubeadmConfigTemplateName: worker
7171
replicas: 1
72+
- name: md1 name
73+
templateName: worker
74+
kubeadmConfigTemplateName: worker
75+
replicas: 1
7276
kubeadmConfigTemplates:
7377
- name: worker
7478
joinConfiguration:

0 commit comments

Comments
 (0)