Merge "Revert "Add neutron-ovs-cleanup to neutron charts""
This commit is contained in:
commit
5763f146c9
@ -1,28 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
{{/*
|
|
||||||
Copyright 2020 The Openstack-Helm Authors.
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
*/}}
|
|
||||||
|
|
||||||
set -x
|
|
||||||
|
|
||||||
if [[ ! -f /run/ovs-cleanup.tmp ]]
|
|
||||||
then
|
|
||||||
neutron-ovs-cleanup \
|
|
||||||
--config-file /etc/neutron/neutron.conf \
|
|
||||||
--config-file /etc/neutron/plugins/ml2/ml2_conf.ini \
|
|
||||||
--config-file /etc/neutron/plugins/ml2/openvswitch_agent.ini
|
|
||||||
touch /run/ovs-cleanup.tmp
|
|
||||||
fi
|
|
@ -71,8 +71,6 @@ data:
|
|||||||
{{ tuple "bin/_neutron-openvswitch-agent-init.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
{{ tuple "bin/_neutron-openvswitch-agent-init.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
||||||
neutron-openvswitch-agent-init-modules.sh: |
|
neutron-openvswitch-agent-init-modules.sh: |
|
||||||
{{ tuple "bin/_neutron-openvswitch-agent-init-modules.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
{{ tuple "bin/_neutron-openvswitch-agent-init-modules.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
||||||
neutron-openvswitch-agent-init-cleanup.sh: |
|
|
||||||
{{ tuple "bin/_neutron-openvswitch-agent-init-cleanup.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
|
||||||
neutron-openvswitch-agent-readiness.sh: |
|
neutron-openvswitch-agent-readiness.sh: |
|
||||||
{{ tuple "bin/_neutron-openvswitch-agent-readiness.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
{{ tuple "bin/_neutron-openvswitch-agent-readiness.sh.tpl" . | include "helm-toolkit.utils.template" | indent 4 }}
|
||||||
neutron-sriov-agent.sh: |
|
neutron-sriov-agent.sh: |
|
||||||
|
@ -101,75 +101,6 @@ spec:
|
|||||||
- name: pci-devices
|
- name: pci-devices
|
||||||
mountPath: /sys/bus/pci/devices
|
mountPath: /sys/bus/pci/devices
|
||||||
{{- end }}
|
{{- end }}
|
||||||
- name: neutron-ovs-agent-init-cleanup
|
|
||||||
{{ tuple $envAll "neutron_openvswitch_agent" | include "helm-toolkit.snippets.image" | indent 10 }}
|
|
||||||
{{ tuple $envAll $envAll.Values.pod.resources.agent.ovs | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
|
||||||
{{ dict "envAll" $envAll "application" "neutron_ovs_agent" "container" "neutron_ovs_agent_init_cleanup" | include "helm-toolkit.snippets.kubernetes_container_security_context" | indent 10 }}
|
|
||||||
command:
|
|
||||||
- /tmp/neutron-openvswitch-agent-init-cleanup.sh
|
|
||||||
volumeMounts:
|
|
||||||
- name: pod-tmp
|
|
||||||
mountPath: /tmp
|
|
||||||
- name: neutron-bin
|
|
||||||
mountPath: /tmp/neutron-openvswitch-agent-init-cleanup.sh
|
|
||||||
subPath: neutron-openvswitch-agent-init-cleanup.sh
|
|
||||||
readOnly: true
|
|
||||||
- name: pod-shared
|
|
||||||
mountPath: /tmp/pod-shared
|
|
||||||
- name: neutron-etc
|
|
||||||
mountPath: /etc/neutron/neutron.conf
|
|
||||||
subPath: neutron.conf
|
|
||||||
readOnly: true
|
|
||||||
- name: neutron-etc
|
|
||||||
mountPath: /etc/neutron/plugins/ml2/ml2_conf.ini
|
|
||||||
subPath: ml2_conf.ini
|
|
||||||
readOnly: true
|
|
||||||
- name: neutron-etc
|
|
||||||
mountPath: /etc/neutron/plugins/ml2/openvswitch_agent.ini
|
|
||||||
subPath: openvswitch_agent.ini
|
|
||||||
readOnly: true
|
|
||||||
{{- if .Values.conf.neutron.DEFAULT.log_config_append }}
|
|
||||||
- name: neutron-etc
|
|
||||||
mountPath: {{ .Values.conf.neutron.DEFAULT.log_config_append }}
|
|
||||||
subPath: {{ base .Values.conf.neutron.DEFAULT.log_config_append }}
|
|
||||||
readOnly: true
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.conf.plugins.taas.taas.enabled }}
|
|
||||||
- name: neutron-etc
|
|
||||||
mountPath: /etc/neutron/plugins/ml2/taas.ini
|
|
||||||
subPath: taas.ini
|
|
||||||
readOnly: true
|
|
||||||
{{- end }}
|
|
||||||
- name: neutron-etc
|
|
||||||
# NOTE (Portdirect): We mount here to override Kollas
|
|
||||||
# custom sudoers file when using Kolla images, this
|
|
||||||
# location will also work fine for other images.
|
|
||||||
mountPath: /etc/sudoers.d/kolla_neutron_sudoers
|
|
||||||
subPath: neutron_sudoers
|
|
||||||
readOnly: true
|
|
||||||
- name: neutron-etc
|
|
||||||
mountPath: /etc/neutron/rootwrap.conf
|
|
||||||
subPath: rootwrap.conf
|
|
||||||
readOnly: true
|
|
||||||
{{- if .Values.conf.ovs_dpdk.enabled }}
|
|
||||||
- name: neutron-etc
|
|
||||||
mountPath: /etc/dpdk.conf
|
|
||||||
subPath: dpdk.conf
|
|
||||||
readOnly: true
|
|
||||||
{{- end }}
|
|
||||||
{{- range $key, $value := $envAll.Values.conf.rootwrap_filters }}
|
|
||||||
{{- if ( has "ovs_agent" $value.pods ) }}
|
|
||||||
{{- $filePrefix := replace "_" "-" $key }}
|
|
||||||
{{- $rootwrapFile := printf "/etc/neutron/rootwrap.d/%s.filters" $filePrefix }}
|
|
||||||
- name: neutron-etc
|
|
||||||
mountPath: {{ $rootwrapFile }}
|
|
||||||
subPath: {{ base $rootwrapFile }}
|
|
||||||
readOnly: true
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
- name: run
|
|
||||||
mountPath: /run
|
|
||||||
{{ if $mounts_neutron_ovs_agent.volumeMounts }}{{ toYaml $mounts_neutron_ovs_agent.volumeMounts | indent 12 }}{{ end }}
|
|
||||||
- name: neutron-ovs-agent-init
|
- name: neutron-ovs-agent-init
|
||||||
{{ tuple $envAll "neutron_openvswitch_agent" | include "helm-toolkit.snippets.image" | indent 10 }}
|
{{ tuple $envAll "neutron_openvswitch_agent" | include "helm-toolkit.snippets.image" | indent 10 }}
|
||||||
{{ tuple $envAll $envAll.Values.pod.resources.agent.ovs | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
{{ tuple $envAll $envAll.Values.pod.resources.agent.ovs | include "helm-toolkit.snippets.kubernetes_resources" | indent 10 }}
|
||||||
|
@ -472,10 +472,6 @@ pod:
|
|||||||
- SYS_MODULE
|
- SYS_MODULE
|
||||||
runAsUser: 0
|
runAsUser: 0
|
||||||
readOnlyRootFilesystem: true
|
readOnlyRootFilesystem: true
|
||||||
neutron_ovs_agent_init_cleanup:
|
|
||||||
privileged: true
|
|
||||||
runAsUser: 0
|
|
||||||
readOnlyRootFilesystem: true
|
|
||||||
neutron_ovs_agent_init:
|
neutron_ovs_agent_init:
|
||||||
privileged: true
|
privileged: true
|
||||||
runAsUser: 0
|
runAsUser: 0
|
||||||
|
Loading…
Reference in New Issue
Block a user