Skip to content

Commit

Permalink
[release/v1.43] Flatcar stop disabled units (#1264)
Browse files Browse the repository at this point in the history
* flatcar/provider.go: added stop command to service mask

Signed-off-by: Hendrik Ferber <[email protected]>

* Update test data

Signed-off-by: Mara Sophie Grosch <[email protected]>

* added stop command to userDataIgnitionTemplate

Signed-off-by: Hendrik Ferber <[email protected]>

* pkg/userdata/flatcar/provider.go: removed unsupported 'command: stop' from userDataIgnitionTemplate

Signed-off-by: Hendrik Ferber <[email protected]>

Co-authored-by: Hendrik Ferber <[email protected]>
Co-authored-by: Mara Sophie Grosch <[email protected]>
  • Loading branch information
3 people authored Apr 26, 2022
1 parent b653e79 commit 28bce9d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/userdata/flatcar/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -450,10 +450,12 @@ coreos:
{{- end }}
{{- if .FlatcarConfig.DisableUpdateEngine }}
- name: update-engine.service
command: stop
mask: true
{{- end }}
{{- if .FlatcarConfig.DisableLocksmithD }}
- name: locksmithd.service
command: stop
mask: true
{{- end }}
{{- if .HTTPProxy }}
Expand Down
2 changes: 2 additions & 0 deletions pkg/userdata/flatcar/testdata/cloud-init_v1.20.14.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ coreos:
DNS=8.8.8.8
- name: update-engine.service
command: stop
mask: true
- name: locksmithd.service
command: stop
mask: true
- name: download-script.service
enable: true
Expand Down
2 changes: 2 additions & 0 deletions pkg/userdata/flatcar/testdata/cloud-init_v1.21.8.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ coreos:
DNS=8.8.8.8
- name: update-engine.service
command: stop
mask: true
- name: locksmithd.service
command: stop
mask: true
- name: download-script.service
enable: true
Expand Down
2 changes: 2 additions & 0 deletions pkg/userdata/flatcar/testdata/cloud-init_v1.22.5.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ coreos:
DNS=8.8.8.8
- name: update-engine.service
command: stop
mask: true
- name: locksmithd.service
command: stop
mask: true
- name: download-script.service
enable: true
Expand Down
2 changes: 2 additions & 0 deletions pkg/userdata/flatcar/testdata/cloud-init_v1.23.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@ coreos:
DNS=8.8.8.8
- name: update-engine.service
command: stop
mask: true
- name: locksmithd.service
command: stop
mask: true
- name: download-script.service
enable: true
Expand Down
2 changes: 2 additions & 0 deletions pkg/userdata/flatcar/testdata/containerd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ users:
coreos:
units:
- name: update-engine.service
command: stop
mask: true
- name: locksmithd.service
command: stop
mask: true
- name: download-script.service
enable: true
Expand Down

0 comments on commit 28bce9d

Please sign in to comment.