Merge "Support override of ovs probes"
This commit is contained in:
commit
33b2f3043f
@ -15,7 +15,7 @@ apiVersion: v1
|
|||||||
appVersion: v1.0.0
|
appVersion: v1.0.0
|
||||||
description: OpenStack-Helm OpenVSwitch
|
description: OpenStack-Helm OpenVSwitch
|
||||||
name: openvswitch
|
name: openvswitch
|
||||||
version: 0.1.3
|
version: 0.1.4
|
||||||
home: http://openvswitch.org
|
home: http://openvswitch.org
|
||||||
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Neutron/OpenStack_Project_Neutron_vertical.png
|
icon: https://www.openstack.org/themes/openstack/images/project-mascots/Neutron/OpenStack_Project_Neutron_vertical.png
|
||||||
sources:
|
sources:
|
||||||
|
@ -15,19 +15,24 @@ limitations under the License.
|
|||||||
{{- define "ovsvswitchlivenessProbeTemplate" }}
|
{{- define "ovsvswitchlivenessProbeTemplate" }}
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
|
{{- if .Values.pod.probes.ovs_vswitch.ovs_vswitch.liveness.exec }}
|
||||||
|
{{ .Values.pod.probes.ovs_vswitch.ovs_vswitch.liveness.exec | toYaml | indent 4 }}
|
||||||
|
{{- else }}
|
||||||
- /usr/bin/ovs-appctl
|
- /usr/bin/ovs-appctl
|
||||||
- bond/list
|
- bond/list
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{- define "ovsvswitchreadinessProbeTemplate" }}
|
{{- define "ovsvswitchreadinessProbeTemplate" }}
|
||||||
{{- if not .Values.conf.ovs_dpdk.enabled }}
|
|
||||||
exec:
|
exec:
|
||||||
command:
|
command:
|
||||||
|
{{- if .Values.pod.probes.ovs_vswitch.ovs_vswitch.readiness.exec }}
|
||||||
|
{{ .Values.pod.probes.ovs_vswitch.ovs_vswitch.readiness.exec | toYaml | indent 4 }}
|
||||||
|
{{- else if not .Values.conf.ovs_dpdk.enabled }}
|
||||||
- /bin/bash
|
- /bin/bash
|
||||||
- -c
|
- -c
|
||||||
- '/usr/bin/ovs-vsctl show'
|
- '/usr/bin/ovs-vsctl show'
|
||||||
{{- else }}
|
{{- else }}
|
||||||
exec:
|
|
||||||
command:
|
|
||||||
- /bin/bash
|
- /bin/bash
|
||||||
- -c
|
- -c
|
||||||
- '/usr/bin/ovs-vsctl show && ! /usr/bin/ovs-vsctl list Open_vSwitch | grep -q dpdk_initialized.*false'
|
- '/usr/bin/ovs-vsctl show && ! /usr/bin/ovs-vsctl list Open_vSwitch | grep -q dpdk_initialized.*false'
|
||||||
|
11
openvswitch/values_overrides/vswitchd-probes.yaml
Normal file
11
openvswitch/values_overrides/vswitchd-probes.yaml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
---
|
||||||
|
pod:
|
||||||
|
probes:
|
||||||
|
ovs_vswitch:
|
||||||
|
ovs_vswitch:
|
||||||
|
liveness:
|
||||||
|
exec:
|
||||||
|
- /bin/bash
|
||||||
|
- -c
|
||||||
|
- '/usr/bin/ovs-appctl bond/list; C1=$?; ovs-vsctl --column statistics list interface dpdk_b0s0 | grep -q -E "rx_|tx_"; C2=$?; ovs-vsctl --column statistics list interface dpdk_b0s1 | grep -q -E "rx_|tx_"; C3=$?; exit $(($C1+$C2+$C3))'
|
||||||
|
...
|
@ -4,4 +4,5 @@ openvswitch:
|
|||||||
- 0.1.1 Change helm-toolkit dependency version to ">= 0.1.0"
|
- 0.1.1 Change helm-toolkit dependency version to ">= 0.1.0"
|
||||||
- 0.1.2 Unpin images built with osh-images
|
- 0.1.2 Unpin images built with osh-images
|
||||||
- 0.1.3 Use HostToContainer mountPropagation
|
- 0.1.3 Use HostToContainer mountPropagation
|
||||||
|
- 0.1.4 Support override of vswitchd liveness and readiness probe
|
||||||
...
|
...
|
||||||
|
Loading…
Reference in New Issue
Block a user