Skip to content

Commit f2b8172

Browse files
authored
Merge pull request #12394 from fabriziopandini/fix-cloudinit
🐛 Fix rendering of ntp.enabled & users.inactive *bool values in cloud init
2 parents 033c5f4 + b77bc8a commit f2b8172

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bootstrap/kubeadm/internal/cloudinit/ntp.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const (
2121
{{- if . }}
2222
ntp:
2323
{{ if .Enabled -}}
24-
enabled: true
24+
enabled: {{ .Enabled }}
2525
{{ end -}}
2626
servers:{{ range .Servers }}
2727
- {{ . }}

bootstrap/kubeadm/internal/cloudinit/users.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ users:{{ range . }}
3434
homedir: {{ .HomeDir }}
3535
{{- end -}}
3636
{{- if .Inactive }}
37-
inactive: true
37+
inactive: {{ .Inactive }}
3838
{{- end -}}
3939
{{- if .LockPassword }}
4040
lock_passwd: {{ .LockPassword }}

0 commit comments

Comments
 (0)