Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions templates/common/baremetal/files/baremetal-mdns-publisher.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,21 @@ contents:
hostPath:
path: "/etc/mdns"
initContainers:
- name: verify-hostname
image: {{ .Images.baremetalRuntimeCfgImage }}
env:
- name: DEFAULT_LOCAL_HOSTNAME
value: "localhost"
command:
- "/bin/bash"
- "-c"
- |
#/bin/bash
while [ "$(hostname)" == "$DEFAULT_LOCAL_HOSTNAME" ]
do
echo "hostname is still ${DEFAULT_LOCAL_HOSTNAME}"
sleep 10
done
- name: render-config
image: {{ .Images.baremetalRuntimeCfgImage }}
command:
Expand Down