Skip to content

Commit 541d41f

Browse files
authored
Merge pull request #7864 from tmehlinger/hosts-update-image
addon registry-alias: change hosts update container image
2 parents c739d3f + 475bbc4 commit 541d41f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

deploy/addons/registry-aliases/node-etc-hosts-update.tmpl

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ spec:
1717
spec:
1818
initContainers:
1919
- name: update
20-
image: registry.fedoraproject.org/fedora
20+
image: alpine:3.11
2121
volumeMounts:
2222
- name: etchosts
2323
mountPath: /host-etc/hosts
@@ -39,7 +39,7 @@ spec:
3939
for H in $REGISTRY_ALIASES; do
4040
echo "$HOSTS" | grep "$H" || HOSTS="$HOSTS$NL$REGISTRY_SERVICE_HOST$TAB$H";
4141
done;
42-
echo "$HOSTS" | diff -u /host-etc/hosts - || echo "$HOSTS" > /host-etc/hosts
42+
echo "$HOSTS" | diff -U 3 /host-etc/hosts - || echo "$HOSTS" > /host-etc/hosts
4343
echo "Done."
4444
containers:
4545
- name: pause-for-update

0 commit comments

Comments
 (0)