Skip to content

Commit

Permalink
Restart containerd/docker to ensure that drop-in configuration is pic…
Browse files Browse the repository at this point in the history
…ked up

Signed-off-by: Waleed Malik <[email protected]>
  • Loading branch information
ahmedwaleedmalik committed Nov 7, 2022
1 parent 641c141 commit 79851fe
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 3 deletions.
6 changes: 5 additions & 1 deletion deploy/osps/default/osp-flatcar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ spec:
osName: flatcar
## Flatcar Stable (09/11/2021)
osVersion: "2983.2.0"
version: "v1.0.2"
version: "v1.0.3"
supportedCloudProviders:
- name: "aws"
- name: "azure"
Expand Down Expand Up @@ -537,14 +537,18 @@ spec:
systemctl mask locksmithd.service
{{- end }}
systemctl daemon-reload
{{- /* Since both container runtimes are enabled/started by default in flatcar, disable the one that is not required */}}
{{- if eq .ContainerRuntime "containerd" }}
systemctl stop docker
systemctl disable docker
systemctl restart containerd
{{- end }}
{{- if eq .ContainerRuntime "docker" }}
systemctl stop containerd
systemctl disable containerd
systemctl restart docker
{{- end }}
# Override hostname if /etc/machine-name exists
Expand Down
3 changes: 3 additions & 0 deletions pkg/controllers/osc/testdata/osc-flatcar-aws-containerd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,11 @@ spec:
}
});
EOF
systemctl daemon-reload
systemctl stop docker
systemctl disable docker
systemctl restart containerd
# Override hostname if /etc/machine-name exists
if [ -x "$(command -v hostnamectl)" ] && [ -s /etc/machine-name ]; then
Expand Down
3 changes: 3 additions & 0 deletions pkg/controllers/osc/testdata/osc-flatcar-aws-docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,11 @@ spec:
}
});
EOF
systemctl daemon-reload
systemctl stop containerd
systemctl disable containerd
systemctl restart docker
# Override hostname if /etc/machine-name exists
if [ -x "$(command -v hostnamectl)" ] && [ -s /etc/machine-name ]; then
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

0 comments on commit 79851fe

Please sign in to comment.