Skip to content

Commit

Permalink
Merge pull request #7864 from tmehlinger/hosts-update-image
Browse files Browse the repository at this point in the history
addon registry-alias: change hosts update container image
  • Loading branch information
tstromberg authored Apr 29, 2020
2 parents c739d3f + 475bbc4 commit 541d41f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions deploy/addons/registry-aliases/node-etc-hosts-update.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ spec:
spec:
initContainers:
- name: update
image: registry.fedoraproject.org/fedora
image: alpine:3.11
volumeMounts:
- name: etchosts
mountPath: /host-etc/hosts
Expand All @@ -39,7 +39,7 @@ spec:
for H in $REGISTRY_ALIASES; do
echo "$HOSTS" | grep "$H" || HOSTS="$HOSTS$NL$REGISTRY_SERVICE_HOST$TAB$H";
done;
echo "$HOSTS" | diff -u /host-etc/hosts - || echo "$HOSTS" > /host-etc/hosts
echo "$HOSTS" | diff -U 3 /host-etc/hosts - || echo "$HOSTS" > /host-etc/hosts
echo "Done."
containers:
- name: pause-for-update
Expand Down

0 comments on commit 541d41f

Please sign in to comment.