Make launch.sh compatible with older k8s manifests
This commit is contained in:
1 parent
8eeb3ca4f2
commit
fe61992c06
4 files changed
+9
No files matched your search
@@ -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:
|
||||
|
||||
Reference in new issue
Block a user