Skip to content
Snippets Groups Projects
Unverified Commit 465ffa3c authored by brainfair's avatar brainfair Committed by GitHub
Browse files

Weave: add extra_args for weave-npc (#8140)

* add weave_npc_extra_args in template

* add defaults weave_npc_extra_args

* add sample for weave_npc_extra_args
parent 539c9e0d
No related branches found
No related tags found
No related merge requests found
...@@ -59,3 +59,6 @@ ...@@ -59,3 +59,6 @@
# Extra variables that passing to launch.sh, useful for enabling seed mode, see # Extra variables that passing to launch.sh, useful for enabling seed mode, see
# https://www.weave.works/docs/net/latest/tasks/ipam/ipam/ # https://www.weave.works/docs/net/latest/tasks/ipam/ipam/
# weave_extra_args: ~ # weave_extra_args: ~
# Extra variables for weave_npc that passing to launch.sh, useful for change log level, ex --log-level=error
# weave_npc_extra_args: ~
...@@ -59,3 +59,6 @@ weave_iptables_backend: ~ ...@@ -59,3 +59,6 @@ weave_iptables_backend: ~
# Extra variables that passing to launch.sh, useful for enabling seed mode, see # Extra variables that passing to launch.sh, useful for enabling seed mode, see
# https://www.weave.works/docs/net/latest/tasks/ipam/ipam/ # https://www.weave.works/docs/net/latest/tasks/ipam/ipam/
weave_extra_args: ~ weave_extra_args: ~
# Extra variables for weave_npc that passing to launch.sh, useful for change log level, ex --log-level=error
weave_npc_extra_args: ~
...@@ -230,6 +230,10 @@ items: ...@@ -230,6 +230,10 @@ items:
fieldRef: fieldRef:
apiVersion: v1 apiVersion: v1
fieldPath: spec.nodeName fieldPath: spec.nodeName
{% if weave_npc_extra_args %}
- name: EXTRA_ARGS
value: "{{ weave_npc_extra_args }}"
{% endif %}
image: {{ weave_npc_image_repo }}:{{ weave_npc_image_tag }} image: {{ weave_npc_image_repo }}:{{ weave_npc_image_tag }}
imagePullPolicy: {{ k8s_image_pull_policy }} imagePullPolicy: {{ k8s_image_pull_policy }}
resources: resources:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment