Skip to content

Commit

Permalink
Overwrite files with format: ignition
Browse files Browse the repository at this point in the history
This aligns with the default cloud-init behavior and enables e.g
overwriting distro-default files via RKE2ConfigTemplate using the
spec.template.spec.files API.

Signed-off-by: Steven Hardy <[email protected]>
  • Loading branch information
hardys committed Aug 23, 2024
1 parent 6adc150 commit 7e62b34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bootstrap/internal/ignition/butane/butane.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ storage:
{{ if ne .Permissions "" -}}
mode: {{ .Permissions }}
{{ end -}}
overwrite: true
contents:
{{ if eq .Encoding "base64" -}}
inline: !!binary |
Expand Down

0 comments on commit 7e62b34

Please sign in to comment.