Make launch.sh compatible with older k8s manifests

This commit is contained in:
Bryan Boreham committed 2021-01-12 15:53:12 +00:00
1 parent 8eeb3ca4f2
commit fe61992c06
4 files changed
+9

No files matched your search

+3
View File
@@ -3,6 +3,9 @@
set -e
# If this is run from an older manifest, run the init script here
[ "${INIT_CONTAINER}" = "true" ] || "$(dirname "$0")/init.sh"
# Setup iptables backend to be legacy or nftable
setup_iptables_backend() {
if [ -n "${IPTABLES_BACKEND}" ]; then
@@ -144,6 +144,8 @@ items:
command:
- /home/weave/launch.sh
env:
- name: INIT_CONTAINER
value: "true"
- name: HOSTNAME
valueFrom:
fieldRef:
@@ -141,6 +141,8 @@ items:
command:
- /home/weave/launch.sh
env:
- name: INIT_CONTAINER
value: "true"
- name: HOSTNAME
valueFrom:
fieldRef:
@@ -144,6 +144,8 @@ items:
command:
- /home/weave/launch.sh
env:
- name: INIT_CONTAINER
value: "true"
- name: HOSTNAME
valueFrom:
fieldRef: