We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c739d3f + 475bbc4 commit 541d41fCopy full SHA for 541d41f
deploy/addons/registry-aliases/node-etc-hosts-update.tmpl
@@ -17,7 +17,7 @@ spec:
17
spec:
18
initContainers:
19
- name: update
20
- image: registry.fedoraproject.org/fedora
+ image: alpine:3.11
21
volumeMounts:
22
- name: etchosts
23
mountPath: /host-etc/hosts
@@ -39,7 +39,7 @@ spec:
39
for H in $REGISTRY_ALIASES; do
40
echo "$HOSTS" | grep "$H" || HOSTS="$HOSTS$NL$REGISTRY_SERVICE_HOST$TAB$H";
41
done;
42
- 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
43
echo "Done."
44
containers:
45
- name: pause-for-update
0 commit comments