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
|
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 to be legacy or nftable
|
||||||
setup_iptables_backend() {
|
setup_iptables_backend() {
|
||||||
if [ -n "${IPTABLES_BACKEND}" ]; then
|
if [ -n "${IPTABLES_BACKEND}" ]; then
|
||||||
|
|||||||
@@ -144,6 +144,8 @@ items:
|
|||||||
command:
|
command:
|
||||||
- /home/weave/launch.sh
|
- /home/weave/launch.sh
|
||||||
env:
|
env:
|
||||||
|
- name: INIT_CONTAINER
|
||||||
|
value: "true"
|
||||||
- name: HOSTNAME
|
- name: HOSTNAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
|
|||||||
@@ -141,6 +141,8 @@ items:
|
|||||||
command:
|
command:
|
||||||
- /home/weave/launch.sh
|
- /home/weave/launch.sh
|
||||||
env:
|
env:
|
||||||
|
- name: INIT_CONTAINER
|
||||||
|
value: "true"
|
||||||
- name: HOSTNAME
|
- name: HOSTNAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
|
|||||||
@@ -144,6 +144,8 @@ items:
|
|||||||
command:
|
command:
|
||||||
- /home/weave/launch.sh
|
- /home/weave/launch.sh
|
||||||
env:
|
env:
|
||||||
|
- name: INIT_CONTAINER
|
||||||
|
value: "true"
|
||||||
- name: HOSTNAME
|
- name: HOSTNAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
fieldRef:
|
fieldRef:
|
||||||
|
|||||||
Reference in new issue
Block a user