Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

Commit c74d91e

Browse files
authored
Merge pull request #1909 from brandong954/v0.16.x
[v0.16.x] Disable Flatcare Updates
2 parents 2ec346a + e74ef96 commit c74d91e

File tree

3 files changed

+13
-22
lines changed

3 files changed

+13
-22
lines changed

builtin/files/userdata/cloud-config-controller

+4-7
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,10 @@ coreos:
4040
reboot-strategy: "off"
4141
units:
4242
{{if .DisableContainerLinuxAutomaticUpdates}}
43-
- name: disable-automatic-update.service
44-
command: start
45-
content: |
46-
[Unit]
47-
Description=Disable Container Linux automatic update. Work around to be removed on Ignition migration.
48-
[Service]
49-
ExecStart=/usr/bin/sh -c 'for u in update-engine locksmithd; do systemctl stop $${u}.service; systemctl mask $${u}.service; systemctl disable $${u}.service; done; systemctl reset-failed'
43+
- name: update-engine.service
44+
mask: true
45+
- name: locksmithd.service
46+
mask: true
5047
{{end}}
5148

5249
- name: handle-disable-request.service

builtin/files/userdata/cloud-config-etcd

+4-7
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,10 @@ coreos:
4242
reboot-strategy: "off"
4343
units:
4444
{{if .DisableContainerLinuxAutomaticUpdates}}
45-
- name: disable-automatic-update.service
46-
command: start
47-
content: |
48-
[Unit]
49-
Description=Disable Container Linux automatic update. Work around to be removed on Ignition migration.
50-
[Service]
51-
ExecStart=/usr/bin/sh -c 'for u in update-engine locksmithd; do systemctl stop $${u}.service; systemctl mask $${u}.service; systemctl disable $${u}.service; done; systemctl reset-failed'
45+
- name: update-engine.service
46+
mask: true
47+
- name: locksmithd.service
48+
mask: true
5249
{{end}}
5350
{{- range $u := .Etcd.CustomSystemdUnits}}
5451
- name: {{$u.Name}}

builtin/files/userdata/cloud-config-worker

+5-8
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,10 @@ coreos:
4242
reboot-strategy: "off"
4343
units:
4444
{{if .DisableContainerLinuxAutomaticUpdates}}
45-
- name: disable-automatic-update.service
46-
command: start
47-
content: |
48-
[Unit]
49-
Description=Disable Container Linux automatic update. Work around to be removed on Ignition migration.
50-
[Service]
51-
ExecStart=/usr/bin/sh -c 'for u in update-engine locksmithd; do systemctl stop $${u}.service; systemctl mask $${u}.service; systemctl disable $${u}.service; done; systemctl reset-failed'
45+
- name: update-engine.service
46+
mask: true
47+
- name: locksmithd.service
48+
mask: true
5249
{{end}}
5350
{{- range $u := .CustomSystemdUnits}}
5451
- name: {{$u.Name}}
@@ -343,7 +340,7 @@ coreos:
343340
-v /etc/kubernetes:/etc/kubernetes:rw \
344341
-v /var/lib/kubelet:/var/lib/kubelet:rshared \
345342
-v /var/lib/docker:/var/lib/docker:rshared \
346-
{{ if eq .ContainerRuntime "rkt" -}}
343+
{{- if eq .ContainerRuntime "rkt" }}
347344
-v /opt/bin/host-rkt:/opt/bin/host-rkt:rw \
348345
-v /usr/bin/rkt:/usr/bin/rkt:ro \
349346
-v /var/lib/rkt:/usr/lib/rkt:rw \

0 commit comments

Comments
 (0)