diff --git a/barbican/templates/deployment-api.yaml b/barbican/templates/deployment-api.yaml index a1141e18..6f53719e 100644 --- a/barbican/templates/deployment-api.yaml +++ b/barbican/templates/deployment-api.yaml @@ -54,14 +54,12 @@ spec: memory: {{ .Values.resources.api.requests.memory | quote }} {{- end }} command: - - bash - /tmp/barbican.sh - start lifecycle: preStop: exec: command: - - bash - /tmp/barbican.sh - stop ports: @@ -106,4 +104,5 @@ spec: - name: barbican-bin configMap: name: barbican-bin + defaultMode: 0555 {{ if $mounts_barbican_api.volumes }}{{ toYaml $mounts_barbican_api.volumes | indent 8 }}{{ end }} diff --git a/barbican/templates/job-db-init.yaml b/barbican/templates/job-db-init.yaml index 3ccf077d..dd0f2667 100644 --- a/barbican/templates/job-db-init.yaml +++ b/barbican/templates/job-db-init.yaml @@ -50,7 +50,6 @@ spec: - name: OPENSTACK_CONFIG_DB_KEY value: sql_connection command: - - python - /tmp/db-init.py volumeMounts: - name: barbican-bin @@ -72,3 +71,4 @@ spec: - name: barbican-bin configMap: name: barbican-bin + defaultMode: 0555 diff --git a/barbican/templates/job-db-sync.yaml b/barbican/templates/job-db-sync.yaml index 11a00766..aab76b5d 100644 --- a/barbican/templates/job-db-sync.yaml +++ b/barbican/templates/job-db-sync.yaml @@ -38,7 +38,6 @@ spec: memory: {{ .Values.resources.jobs.db.requests.memory | quote }} {{- end }} command: - - bash - /tmp/db-sync.sh volumeMounts: - name: etcbarbican @@ -60,3 +59,4 @@ spec: - name: barbican-bin configMap: name: barbican-bin + defaultMode: 0555 diff --git a/barbican/templates/job-ks-endpoints.yaml b/barbican/templates/job-ks-endpoints.yaml index 359b74d3..cb9cb237 100644 --- a/barbican/templates/job-ks-endpoints.yaml +++ b/barbican/templates/job-ks-endpoints.yaml @@ -41,7 +41,6 @@ spec: cpu: {{ $envAll.Values.resources.ks_endpoints.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-endpoints.sh volumeMounts: - name: ks-endpoints-sh @@ -66,3 +65,4 @@ spec: - name: ks-endpoints-sh configMap: name: barbican-bin + defaultMode: 0555 diff --git a/barbican/templates/job-ks-service.yaml b/barbican/templates/job-ks-service.yaml index 652d5dc7..f63c4565 100644 --- a/barbican/templates/job-ks-service.yaml +++ b/barbican/templates/job-ks-service.yaml @@ -40,7 +40,6 @@ spec: cpu: {{ $envAll.Values.resources.ks_service.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-service.sh volumeMounts: - name: ks-service-sh @@ -60,3 +59,4 @@ spec: - name: ks-service-sh configMap: name: barbican-bin + defaultMode: 0555 diff --git a/barbican/templates/job-ks-user.yaml b/barbican/templates/job-ks-user.yaml index 2bd5fb0c..af526735 100644 --- a/barbican/templates/job-ks-user.yaml +++ b/barbican/templates/job-ks-user.yaml @@ -40,7 +40,6 @@ spec: cpu: {{ .Values.resources.ks_user.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-user.sh volumeMounts: - name: ks-user-sh @@ -62,3 +61,4 @@ spec: - name: ks-user-sh configMap: name: barbican-bin + defaultMode: 0555 diff --git a/cinder/templates/deployment-api.yaml b/cinder/templates/deployment-api.yaml index 599c43ca..73a1f0d0 100644 --- a/cinder/templates/deployment-api.yaml +++ b/cinder/templates/deployment-api.yaml @@ -57,14 +57,12 @@ spec: cpu: {{ .Values.resources.cinder_api.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/cinder-api.sh - start lifecycle: preStop: exec: command: - - bash - /tmp/cinder-api.sh - stop ports: @@ -99,6 +97,7 @@ spec: - name: cinder-bin configMap: name: cinder-bin + defaultMode: 0555 - name: cinder-etc configMap: name: cinder-etc diff --git a/cinder/templates/deployment-scheduler.yaml b/cinder/templates/deployment-scheduler.yaml index 57fc9788..33a66dc1 100644 --- a/cinder/templates/deployment-scheduler.yaml +++ b/cinder/templates/deployment-scheduler.yaml @@ -56,7 +56,6 @@ spec: cpu: {{ .Values.resources.cinder_scheduler.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/cinder-scheduler.sh volumeMounts: - name: pod-var-cache-cinder @@ -84,6 +83,7 @@ spec: - name: cinder-bin configMap: name: cinder-bin + defaultMode: 0555 - name: cinder-etc configMap: name: cinder-etc diff --git a/cinder/templates/deployment-volume.yaml b/cinder/templates/deployment-volume.yaml index 4959cdb8..754452ff 100644 --- a/cinder/templates/deployment-volume.yaml +++ b/cinder/templates/deployment-volume.yaml @@ -56,7 +56,6 @@ spec: cpu: {{ .Values.resources.cinder_volume.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/cinder-volume.sh volumeMounts: - name: pod-var-cache-cinder @@ -90,6 +89,7 @@ spec: - name: cinder-bin configMap: name: cinder-bin + defaultMode: 0555 - name: cinder-etc configMap: name: cinder-etc diff --git a/cinder/templates/job-db-init.yaml b/cinder/templates/job-db-init.yaml index 6fed2b0f..15f5b851 100644 --- a/cinder/templates/job-db-init.yaml +++ b/cinder/templates/job-db-init.yaml @@ -52,7 +52,6 @@ spec: - name: OPENSTACK_CONFIG_DB_KEY value: connection command: - - python - /tmp/db-init.py volumeMounts: - name: cinder-bin @@ -74,3 +73,4 @@ spec: - name: cinder-bin configMap: name: cinder-bin + defaultMode: 0555 diff --git a/cinder/templates/job-db-sync.yaml b/cinder/templates/job-db-sync.yaml index 5d840cc3..4e40e965 100644 --- a/cinder/templates/job-db-sync.yaml +++ b/cinder/templates/job-db-sync.yaml @@ -40,7 +40,6 @@ spec: cpu: {{ .Values.resources.cinder_db_sync.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/db-sync.sh volumeMounts: - name: cinder-bin @@ -62,3 +61,4 @@ spec: - name: cinder-bin configMap: name: cinder-bin + defaultMode: 0555 diff --git a/cinder/templates/job-ks-endpoints.yaml b/cinder/templates/job-ks-endpoints.yaml index 8f42bde7..0cdfd2bc 100644 --- a/cinder/templates/job-ks-endpoints.yaml +++ b/cinder/templates/job-ks-endpoints.yaml @@ -43,7 +43,6 @@ spec: cpu: {{ $envAll.Values.resources.cinder_ks_endpoints.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-endpoints.sh volumeMounts: - name: ks-endpoints-sh @@ -68,3 +67,4 @@ spec: - name: ks-endpoints-sh configMap: name: cinder-bin + defaultMode: 0555 diff --git a/cinder/templates/job-ks-service.yaml b/cinder/templates/job-ks-service.yaml index 6f108900..56ecfc1e 100644 --- a/cinder/templates/job-ks-service.yaml +++ b/cinder/templates/job-ks-service.yaml @@ -42,7 +42,6 @@ spec: cpu: {{ $envAll.Values.resources.cinder_ks_service.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-service.sh volumeMounts: - name: ks-service-sh @@ -62,3 +61,4 @@ spec: - name: ks-service-sh configMap: name: cinder-bin + defaultMode: 0555 diff --git a/cinder/templates/job-ks-user.yaml b/cinder/templates/job-ks-user.yaml index e3315c25..521e9ea8 100644 --- a/cinder/templates/job-ks-user.yaml +++ b/cinder/templates/job-ks-user.yaml @@ -42,7 +42,6 @@ spec: cpu: {{ .Values.resources.cinder_ks_user.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-user.sh volumeMounts: - name: ks-user-sh @@ -64,3 +63,4 @@ spec: - name: ks-user-sh configMap: name: cinder-bin + defaultMode: 0555 diff --git a/cinder/templates/job_bootstrap.yaml b/cinder/templates/job_bootstrap.yaml index dbfe4708..bbc7414e 100644 --- a/cinder/templates/job_bootstrap.yaml +++ b/cinder/templates/job_bootstrap.yaml @@ -42,7 +42,6 @@ spec: cpu: {{ .Values.resources.bootstrap.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/bootstrap.sh env: {{- with $env := dict "ksUserSecret" $ksAdminSecret }} @@ -62,4 +61,5 @@ spec: - name: cinder-bin configMap: name: cinder-bin + defaultMode: 0555 {{- end }} diff --git a/glance/templates/deployment-api.yaml b/glance/templates/deployment-api.yaml index 5ba49996..5a6c015b 100644 --- a/glance/templates/deployment-api.yaml +++ b/glance/templates/deployment-api.yaml @@ -57,14 +57,12 @@ spec: memory: {{ .Values.resources.api.requests.memory | quote }} {{- end }} command: - - bash - /tmp/glance-api.sh - start lifecycle: preStop: exec: command: - - bash - /tmp/glance-api.sh - stop ports: @@ -111,6 +109,7 @@ spec: - name: glance-bin configMap: name: glance-bin + defaultMode: 0555 - name: glance-etc configMap: name: glance-etc diff --git a/glance/templates/deployment-registry.yaml b/glance/templates/deployment-registry.yaml index cf27b670..e9a32565 100644 --- a/glance/templates/deployment-registry.yaml +++ b/glance/templates/deployment-registry.yaml @@ -49,14 +49,12 @@ spec: memory: {{ .Values.resources.registry.requests.memory | quote }} {{- end }} command: - - bash - /tmp/glance-registry.sh - start lifecycle: preStop: exec: command: - - bash - /tmp/glance-registry.sh - stop ports: @@ -90,6 +88,7 @@ spec: - name: glance-bin configMap: name: glance-bin + defaultMode: 0555 - name: glance-etc configMap: name: glance-etc diff --git a/glance/templates/job-bootstrap.yaml b/glance/templates/job-bootstrap.yaml index d4bc65ef..fd36e23d 100644 --- a/glance/templates/job-bootstrap.yaml +++ b/glance/templates/job-bootstrap.yaml @@ -45,7 +45,6 @@ spec: {{- include "helm-toolkit.snippets.keystone_openrc_env_vars" $env | indent 12 }} {{- end }} command: - - bash - /tmp/bootstrap.sh volumeMounts: - name: imagedir @@ -64,6 +63,7 @@ spec: - name: glance-bin configMap: name: glance-bin + defaultMode: 0555 - name: glance-etc configMap: name: glance-etc diff --git a/glance/templates/job-db-init.yaml b/glance/templates/job-db-init.yaml index 20868eae..76c9ba82 100644 --- a/glance/templates/job-db-init.yaml +++ b/glance/templates/job-db-init.yaml @@ -52,7 +52,6 @@ spec: - name: OPENSTACK_CONFIG_DB_KEY value: connection command: - - python - /tmp/db-init.py volumeMounts: - name: glance-bin @@ -74,3 +73,4 @@ spec: - name: glance-bin configMap: name: glance-bin + defaultMode: 0555 diff --git a/glance/templates/job-db-sync.yaml b/glance/templates/job-db-sync.yaml index 1102dd4c..1f3e1f38 100644 --- a/glance/templates/job-db-sync.yaml +++ b/glance/templates/job-db-sync.yaml @@ -40,7 +40,6 @@ spec: memory: {{ .Values.resources.jobs.db.requests.memory | quote }} {{- end }} command: - - bash - /tmp/db-sync.sh volumeMounts: - name: glance-bin @@ -62,3 +61,4 @@ spec: - name: glance-bin configMap: name: glance-bin + defaultMode: 0555 diff --git a/glance/templates/job-ks-endpoints.yaml b/glance/templates/job-ks-endpoints.yaml index 29c07065..f163f439 100644 --- a/glance/templates/job-ks-endpoints.yaml +++ b/glance/templates/job-ks-endpoints.yaml @@ -43,7 +43,6 @@ spec: cpu: {{ $envAll.Values.resources.glance_ks_endpoints.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-endpoints.sh volumeMounts: - name: ks-endpoints-sh @@ -68,3 +67,4 @@ spec: - name: ks-endpoints-sh configMap: name: glance-bin + defaultMode: 0555 diff --git a/glance/templates/job-ks-service.yaml b/glance/templates/job-ks-service.yaml index 23252a89..aa6587cd 100644 --- a/glance/templates/job-ks-service.yaml +++ b/glance/templates/job-ks-service.yaml @@ -42,7 +42,6 @@ spec: cpu: {{ $envAll.Values.resources.glance_ks_service.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-service.sh volumeMounts: - name: ks-service-sh @@ -62,3 +61,4 @@ spec: - name: ks-service-sh configMap: name: glance-bin + defaultMode: 0555 diff --git a/glance/templates/job-ks-user.yaml b/glance/templates/job-ks-user.yaml index 1fdd24e1..9ffd4317 100644 --- a/glance/templates/job-ks-user.yaml +++ b/glance/templates/job-ks-user.yaml @@ -42,7 +42,6 @@ spec: cpu: {{ .Values.resources.glance_ks_user.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-user.sh volumeMounts: - name: ks-user-sh @@ -64,3 +63,4 @@ spec: - name: ks-user-sh configMap: name: glance-bin + defaultMode: 0555 diff --git a/heat/templates/deployment-api.yaml b/heat/templates/deployment-api.yaml index 33f9aab0..b2f05235 100644 --- a/heat/templates/deployment-api.yaml +++ b/heat/templates/deployment-api.yaml @@ -57,14 +57,12 @@ spec: cpu: {{ .Values.resources.heat_api.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/heat-api.sh - start lifecycle: preStop: exec: command: - - bash - /tmp/heat-api.sh - stop ports: @@ -102,6 +100,7 @@ spec: - name: heat-bin configMap: name: heat-bin + defaultMode: 0555 - name: heat-etc configMap: name: heat-etc diff --git a/heat/templates/deployment-cfn.yaml b/heat/templates/deployment-cfn.yaml index 8dc251a9..dc0071b4 100644 --- a/heat/templates/deployment-cfn.yaml +++ b/heat/templates/deployment-cfn.yaml @@ -57,14 +57,12 @@ spec: cpu: {{ .Values.resources.heat_cfn.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/heat-cfn.sh - start lifecycle: preStop: exec: command: - - bash - /tmp/heat-cfn.sh - stop ports: @@ -102,6 +100,7 @@ spec: - name: heat-bin configMap: name: heat-bin + defaultMode: 0555 - name: heat-etc configMap: name: heat-etc diff --git a/heat/templates/deployment-cloudwatch.yaml b/heat/templates/deployment-cloudwatch.yaml index 50fe32cb..ca8c569e 100644 --- a/heat/templates/deployment-cloudwatch.yaml +++ b/heat/templates/deployment-cloudwatch.yaml @@ -57,14 +57,12 @@ spec: cpu: {{ .Values.resources.heat_cloudwatch.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/heat-cloudwatch.sh - start lifecycle: preStop: exec: command: - - bash - /tmp/heat-cloudwatch.sh - stop ports: @@ -102,6 +100,7 @@ spec: - name: heat-bin configMap: name: heat-bin + defaultMode: 0555 - name: heat-etc configMap: name: heat-etc diff --git a/heat/templates/job-db-init.yaml b/heat/templates/job-db-init.yaml index de957d04..d61b2f9d 100644 --- a/heat/templates/job-db-init.yaml +++ b/heat/templates/job-db-init.yaml @@ -52,7 +52,6 @@ spec: - name: OPENSTACK_CONFIG_DB_KEY value: connection command: - - python - /tmp/db-init.py volumeMounts: - name: heat-bin @@ -74,3 +73,4 @@ spec: - name: heat-bin configMap: name: heat-bin + defaultMode: 0555 diff --git a/heat/templates/job-db-sync.yaml b/heat/templates/job-db-sync.yaml index 70c486f7..cb4e5940 100644 --- a/heat/templates/job-db-sync.yaml +++ b/heat/templates/job-db-sync.yaml @@ -40,7 +40,6 @@ spec: cpu: {{ .Values.resources.heat_db_sync.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/db-sync.sh volumeMounts: - name: heat-bin @@ -62,3 +61,4 @@ spec: - name: heat-bin configMap: name: heat-bin + defaultMode: 0555 diff --git a/heat/templates/job-ks-endpoints.yaml b/heat/templates/job-ks-endpoints.yaml index 8153f5e4..9010a55d 100644 --- a/heat/templates/job-ks-endpoints.yaml +++ b/heat/templates/job-ks-endpoints.yaml @@ -43,7 +43,6 @@ spec: cpu: {{ $envAll.Values.resources.heat_ks_endpoints.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-endpoints.sh volumeMounts: - name: ks-endpoints-sh @@ -68,3 +67,4 @@ spec: - name: ks-endpoints-sh configMap: name: heat-bin + defaultMode: 0555 diff --git a/heat/templates/job-ks-service.yaml b/heat/templates/job-ks-service.yaml index fbe33bc2..22de825c 100644 --- a/heat/templates/job-ks-service.yaml +++ b/heat/templates/job-ks-service.yaml @@ -42,7 +42,6 @@ spec: cpu: {{ $envAll.Values.resources.heat_ks_service.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-service.sh volumeMounts: - name: ks-service-sh @@ -62,3 +61,4 @@ spec: - name: ks-service-sh configMap: name: heat-bin + defaultMode: 0555 diff --git a/heat/templates/job-ks-user.yaml b/heat/templates/job-ks-user.yaml index f8bc0289..f954fa2a 100644 --- a/heat/templates/job-ks-user.yaml +++ b/heat/templates/job-ks-user.yaml @@ -45,7 +45,6 @@ spec: cpu: {{ .Values.resources.heat_ks_user.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-user.sh volumeMounts: - name: ks-user-sh @@ -128,3 +127,4 @@ spec: - name: ks-user-sh configMap: name: heat-bin + defaultMode: 0555 diff --git a/heat/templates/statefulset-engine.yaml b/heat/templates/statefulset-engine.yaml index 1e34c9ff..26333db7 100644 --- a/heat/templates/statefulset-engine.yaml +++ b/heat/templates/statefulset-engine.yaml @@ -46,7 +46,6 @@ spec: cpu: {{ .Values.resources.heat_engine.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/heat-engine.sh volumeMounts: - name: pod-etc-heat @@ -74,6 +73,7 @@ spec: - name: heat-bin configMap: name: heat-bin + defaultMode: 0555 - name: heat-etc configMap: name: heat-etc diff --git a/horizon/templates/deployment.yaml b/horizon/templates/deployment.yaml index 59a37f85..a46610fe 100644 --- a/horizon/templates/deployment.yaml +++ b/horizon/templates/deployment.yaml @@ -57,14 +57,12 @@ spec: memory: {{ .Values.resources.dashboard.requests.memory | quote }} {{- end }} command: - - bash - /tmp/horizon.sh - start lifecycle: preStop: exec: command: - - bash - /tmp/horizon.sh - stop ports: @@ -92,6 +90,7 @@ spec: - name: startsh configMap: name: horizon-bin + defaultMode: 0555 - name: horizon-etc configMap: name: horizon-etc diff --git a/keystone/templates/deployment.yaml b/keystone/templates/deployment.yaml index 9a5060e8..e710dd44 100644 --- a/keystone/templates/deployment.yaml +++ b/keystone/templates/deployment.yaml @@ -57,14 +57,12 @@ spec: memory: {{ .Values.resources.api.requests.memory | quote }} {{- end }} command: - - bash - /tmp/keystone-api.sh - start lifecycle: preStop: exec: command: - - bash - /tmp/keystone-api.sh - stop ports: @@ -116,4 +114,5 @@ spec: - name: keystone-bin configMap: name: keystone-bin + defaultMode: 0555 {{ if $mounts_keystone_api.volumes }}{{ toYaml $mounts_keystone_api.volumes | indent 6 }}{{ end }} diff --git a/keystone/templates/job-db-init.yaml b/keystone/templates/job-db-init.yaml index a75763f4..d8727d22 100644 --- a/keystone/templates/job-db-init.yaml +++ b/keystone/templates/job-db-init.yaml @@ -56,7 +56,6 @@ spec: - name: OPENSTACK_CONFIG_DB_KEY value: connection command: - - python - /tmp/db-init.py volumeMounts: - name: etckeystone @@ -79,4 +78,5 @@ spec: - name: keystone-bin configMap: name: keystone-bin + defaultMode: 0555 {{ if $mounts_keystone_db_init.volumes }}{{ toYaml $mounts_keystone_db_init.volumes | indent 6 }}{{ end }} diff --git a/keystone/templates/job-db-sync.yaml b/keystone/templates/job-db-sync.yaml index 26cd8776..2341b150 100644 --- a/keystone/templates/job-db-sync.yaml +++ b/keystone/templates/job-db-sync.yaml @@ -44,7 +44,6 @@ spec: memory: {{ .Values.resources.jobs.db_sync.requests.memory | quote }} {{- end }} command: - - bash - /tmp/db-sync.sh volumeMounts: - name: etckeystone @@ -67,4 +66,5 @@ spec: - name: keystone-bin configMap: name: keystone-bin + defaultMode: 0555 {{ if $mounts_keystone_db_sync.volumes }}{{ toYaml $mounts_keystone_db_sync.volumes | indent 6 }}{{ end }} diff --git a/magnum/templates/deployment-api.yaml b/magnum/templates/deployment-api.yaml index d5d12291..48c09ca5 100644 --- a/magnum/templates/deployment-api.yaml +++ b/magnum/templates/deployment-api.yaml @@ -57,14 +57,12 @@ spec: cpu: {{ .Values.resources.magnum_api.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/magnum-api.sh - start lifecycle: preStop: exec: command: - - bash - /tmp/magnum-api.sh - stop ports: @@ -102,6 +100,7 @@ spec: - name: magnum-bin configMap: name: magnum-bin + defaultMode: 0555 - name: magnum-etc configMap: name: magnum-etc diff --git a/magnum/templates/job-db-init.yaml b/magnum/templates/job-db-init.yaml index fa892b4f..b6dc3587 100644 --- a/magnum/templates/job-db-init.yaml +++ b/magnum/templates/job-db-init.yaml @@ -52,7 +52,6 @@ spec: - name: OPENSTACK_CONFIG_DB_KEY value: connection command: - - python - /tmp/db-init.py volumeMounts: - name: magnum-bin @@ -74,3 +73,4 @@ spec: - name: magnum-bin configMap: name: magnum-bin + defaultMode: 0555 diff --git a/magnum/templates/job-db-sync.yaml b/magnum/templates/job-db-sync.yaml index 59c9099c..2e78bd8a 100644 --- a/magnum/templates/job-db-sync.yaml +++ b/magnum/templates/job-db-sync.yaml @@ -40,7 +40,6 @@ spec: cpu: {{ .Values.resources.magnum_db_sync.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/db-sync.sh volumeMounts: - name: magnum-bin @@ -62,3 +61,4 @@ spec: - name: magnum-bin configMap: name: magnum-bin + defaultMode: 0555 diff --git a/magnum/templates/job-ks-endpoints.yaml b/magnum/templates/job-ks-endpoints.yaml index fd7df3ee..726f953b 100644 --- a/magnum/templates/job-ks-endpoints.yaml +++ b/magnum/templates/job-ks-endpoints.yaml @@ -43,7 +43,6 @@ spec: cpu: {{ $envAll.Values.resources.magnum_ks_endpoints.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-endpoints.sh volumeMounts: - name: ks-endpoints-sh @@ -68,3 +67,4 @@ spec: - name: ks-endpoints-sh configMap: name: magnum-bin + defaultMode: 0555 diff --git a/magnum/templates/job-ks-service.yaml b/magnum/templates/job-ks-service.yaml index 056db19a..94283634 100644 --- a/magnum/templates/job-ks-service.yaml +++ b/magnum/templates/job-ks-service.yaml @@ -42,7 +42,6 @@ spec: cpu: {{ $envAll.Values.resources.magnum_ks_service.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-service.sh volumeMounts: - name: ks-service-sh @@ -62,3 +61,4 @@ spec: - name: ks-service-sh configMap: name: magnum-bin + defaultMode: 0555 diff --git a/magnum/templates/job-ks-user.yaml b/magnum/templates/job-ks-user.yaml index 40be7e2d..2f24ca11 100644 --- a/magnum/templates/job-ks-user.yaml +++ b/magnum/templates/job-ks-user.yaml @@ -42,7 +42,6 @@ spec: cpu: {{ .Values.resources.magnum_ks_user.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-user.sh volumeMounts: - name: ks-user-sh @@ -64,3 +63,4 @@ spec: - name: ks-user-sh configMap: name: magnum-bin + defaultMode: 0555 diff --git a/magnum/templates/statefulset-conductor.yaml b/magnum/templates/statefulset-conductor.yaml index 885d04bf..eda44f75 100644 --- a/magnum/templates/statefulset-conductor.yaml +++ b/magnum/templates/statefulset-conductor.yaml @@ -46,7 +46,6 @@ spec: cpu: {{ .Values.resources.magnum_conductor.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/magnum-conductor.sh volumeMounts: - name: magnum-bin @@ -74,6 +73,7 @@ spec: - name: magnum-bin configMap: name: magnum-bin + defaultMode: 0555 - name: magnum-etc configMap: name: magnum-etc diff --git a/mariadb/templates/statefulset.yaml b/mariadb/templates/statefulset.yaml index c5d0791e..dc4a53f9 100644 --- a/mariadb/templates/statefulset.yaml +++ b/mariadb/templates/statefulset.yaml @@ -63,7 +63,6 @@ spec: memory: {{ .Values.resources.api.requests.memory | quote }} {{- end }} command: - - bash - /tmp/start.sh env: - name: POD_IP @@ -77,7 +76,6 @@ spec: readinessProbe: exec: command: - - bash - /tmp/readiness.sh volumeMounts: - name: mycnfd @@ -114,6 +112,7 @@ spec: - name: mariadb-bin configMap: name: mariadb-bin + defaultMode: 0555 - name: mariadb-etc configMap: name: mariadb-etc diff --git a/mistral/templates/deployment-api.yaml b/mistral/templates/deployment-api.yaml index ae86d686..c30f1f41 100644 --- a/mistral/templates/deployment-api.yaml +++ b/mistral/templates/deployment-api.yaml @@ -57,14 +57,12 @@ spec: memory: {{ .Values.resources.api.requests.memory | quote }} {{- end }} command: - - bash - /tmp/mistral-api.sh - start lifecycle: preStop: exec: command: - - bash - /tmp/mistral-api.sh - stop ports: @@ -95,6 +93,7 @@ spec: - name: mistral-bin configMap: name: mistral-bin + defaultMode: 0555 - name: mistral-etc configMap: name: mistral-etc diff --git a/mistral/templates/deployment-executor.yaml b/mistral/templates/deployment-executor.yaml index e6ee4481..7514bed8 100644 --- a/mistral/templates/deployment-executor.yaml +++ b/mistral/templates/deployment-executor.yaml @@ -56,7 +56,6 @@ spec: memory: {{ .Values.resources.executor.requests.memory | quote }} {{- end }} command: - - bash - /tmp/mistral-executor.sh volumeMounts: - name: pod-etc-mistral @@ -76,6 +75,7 @@ spec: - name: mistral-bin configMap: name: mistral-bin + defaultMode: 0555 - name: mistral-etc configMap: name: mistral-etc diff --git a/mistral/templates/job-db-init.yaml b/mistral/templates/job-db-init.yaml index 39422fa7..fd595c2d 100644 --- a/mistral/templates/job-db-init.yaml +++ b/mistral/templates/job-db-init.yaml @@ -52,7 +52,6 @@ spec: - name: OPENSTACK_CONFIG_DB_KEY value: connection command: - - python - /tmp/db-init.py volumeMounts: - name: mistral-bin @@ -69,6 +68,7 @@ spec: - name: mistral-bin configMap: name: mistral-bin + defaultMode: 0555 - name: pod-etc-mistral emptyDir: {} - name: mistral-etc diff --git a/mistral/templates/job-db-sync.yaml b/mistral/templates/job-db-sync.yaml index 50c31898..72839c7f 100644 --- a/mistral/templates/job-db-sync.yaml +++ b/mistral/templates/job-db-sync.yaml @@ -41,7 +41,6 @@ spec: cpu: {{ .Values.resources.mistral_db_sync.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/db-sync.sh volumeMounts: - name: pod-etc-mistral @@ -63,3 +62,4 @@ spec: - name: mistral-bin configMap: name: mistral-bin + defaultMode: 0555 diff --git a/mistral/templates/job-ks-endpoints.yaml b/mistral/templates/job-ks-endpoints.yaml index c022d134..7f43b08a 100644 --- a/mistral/templates/job-ks-endpoints.yaml +++ b/mistral/templates/job-ks-endpoints.yaml @@ -43,7 +43,6 @@ spec: cpu: {{ $envAll.Values.resources.mistral_ks_endpoints.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-endpoints.sh volumeMounts: - name: ks-endpoints-sh @@ -68,3 +67,4 @@ spec: - name: ks-endpoints-sh configMap: name: mistral-bin + defaultMode: 0555 diff --git a/mistral/templates/job-ks-service.yaml b/mistral/templates/job-ks-service.yaml index ab0a1278..04de18a5 100644 --- a/mistral/templates/job-ks-service.yaml +++ b/mistral/templates/job-ks-service.yaml @@ -42,7 +42,6 @@ spec: cpu: {{ $envAll.Values.resources.mistral_ks_service.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-service.sh volumeMounts: - name: ks-service-sh @@ -62,3 +61,4 @@ spec: - name: ks-service-sh configMap: name: mistral-bin + defaultMode: 0555 diff --git a/mistral/templates/job-ks-user.yaml b/mistral/templates/job-ks-user.yaml index 0761f8ab..bda79d5c 100644 --- a/mistral/templates/job-ks-user.yaml +++ b/mistral/templates/job-ks-user.yaml @@ -42,7 +42,6 @@ spec: cpu: {{ .Values.resources.mistral_ks_user.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-user.sh volumeMounts: - name: ks-user-sh @@ -64,3 +63,4 @@ spec: - name: ks-user-sh configMap: name: mistral-bin + defaultMode: 0555 diff --git a/mistral/templates/statefulset-engine.yaml b/mistral/templates/statefulset-engine.yaml index 2a336b1a..fa5c321e 100644 --- a/mistral/templates/statefulset-engine.yaml +++ b/mistral/templates/statefulset-engine.yaml @@ -46,7 +46,6 @@ spec: memory: {{ .Values.resources.engine.requests.memory | quote }} {{- end }} command: - - bash - /tmp/mistral-engine.sh volumeMounts: - name: pod-etc-mistral @@ -66,6 +65,7 @@ spec: - name: mistral-bin configMap: name: mistral-bin + defaultMode: 0555 - name: mistral-etc configMap: name: mistral-etc diff --git a/mistral/templates/statefulset-event-engine.yaml b/mistral/templates/statefulset-event-engine.yaml index 10b4665d..b15fd183 100644 --- a/mistral/templates/statefulset-event-engine.yaml +++ b/mistral/templates/statefulset-event-engine.yaml @@ -46,7 +46,6 @@ spec: memory: {{ .Values.resources.event_engine.requests.memory | quote }} {{- end }} command: - - bash - /tmp/mistral-event-engine.sh volumeMounts: - name: pod-etc-mistral @@ -66,6 +65,7 @@ spec: - name: mistral-bin configMap: name: mistral-bin + defaultMode: 0555 - name: mistral-etc configMap: name: mistral-etc diff --git a/neutron/templates/daemonset-dhcp-agent.yaml b/neutron/templates/daemonset-dhcp-agent.yaml index 8a390aae..6735ee85 100644 --- a/neutron/templates/daemonset-dhcp-agent.yaml +++ b/neutron/templates/daemonset-dhcp-agent.yaml @@ -53,7 +53,6 @@ spec: securityContext: privileged: true command: - - bash - /tmp/neutron-dhcp-agent.sh volumeMounts: - name: neutron-bin @@ -93,6 +92,7 @@ spec: - name: neutron-bin configMap: name: neutron-bin + defaultMode: 0555 - name: neutron-etc configMap: name: neutron-etc diff --git a/neutron/templates/daemonset-l3-agent.yaml b/neutron/templates/daemonset-l3-agent.yaml index d19f4da4..99dcadec 100644 --- a/neutron/templates/daemonset-l3-agent.yaml +++ b/neutron/templates/daemonset-l3-agent.yaml @@ -53,7 +53,6 @@ spec: securityContext: privileged: true command: - - bash - /tmp/neutron-l3-agent.sh volumeMounts: - name: neutron-bin @@ -92,6 +91,7 @@ spec: - name: neutron-bin configMap: name: neutron-bin + defaultMode: 0555 - name: neutron-etc configMap: name: neutron-etc diff --git a/neutron/templates/daemonset-metadata-agent.yaml b/neutron/templates/daemonset-metadata-agent.yaml index 1bb92530..93cd937b 100644 --- a/neutron/templates/daemonset-metadata-agent.yaml +++ b/neutron/templates/daemonset-metadata-agent.yaml @@ -55,7 +55,6 @@ spec: ports: - containerPort: {{ .Values.network.metadata.port }} command: - - bash - /tmp/neutron-metadata-agent.sh volumeMounts: - name: neutron-bin @@ -91,6 +90,7 @@ spec: - name: neutron-bin configMap: name: neutron-bin + defaultMode: 0555 - name: neutron-etc configMap: name: neutron-etc diff --git a/neutron/templates/daemonset-ovs-agent.yaml b/neutron/templates/daemonset-ovs-agent.yaml index 6e3fe767..3d43e419 100644 --- a/neutron/templates/daemonset-ovs-agent.yaml +++ b/neutron/templates/daemonset-ovs-agent.yaml @@ -53,7 +53,6 @@ spec: securityContext: privileged: true command: - - bash - /tmp/neutron-openvswitch-agent.sh # ensures this container can can see a br-int # bridge before its marked as ready @@ -95,6 +94,7 @@ spec: - name: neutron-bin configMap: name: neutron-bin + defaultMode: 0555 - name: neutron-etc configMap: name: neutron-etc diff --git a/neutron/templates/daemonset-ovs-db.yaml b/neutron/templates/daemonset-ovs-db.yaml index f67e41d9..9a60dcb9 100644 --- a/neutron/templates/daemonset-ovs-db.yaml +++ b/neutron/templates/daemonset-ovs-db.yaml @@ -47,7 +47,6 @@ spec: securityContext: privileged: true command: - - bash - /tmp/openvswitch-db-server.sh volumeMounts: - name: neutron-bin @@ -66,6 +65,7 @@ spec: - name: neutron-bin configMap: name: neutron-bin + defaultMode: 0555 - name: varlibopenvswitch emptyDir: {} - name: neutron-etc diff --git a/neutron/templates/daemonset-ovs-vswitchd.yaml b/neutron/templates/daemonset-ovs-vswitchd.yaml index e3127a55..166a5b88 100644 --- a/neutron/templates/daemonset-ovs-vswitchd.yaml +++ b/neutron/templates/daemonset-ovs-vswitchd.yaml @@ -54,7 +54,6 @@ spec: - /usr/bin/ovs-vsctl - show command: - - bash - /tmp/openvswitch-vswitchd.sh volumeMounts: - name: neutron-bin @@ -74,6 +73,7 @@ spec: - name: neutron-bin configMap: name: neutron-bin + defaultMode: 0555 - name: libmodules hostPath: path: /lib/modules diff --git a/neutron/templates/deployment-server.yaml b/neutron/templates/deployment-server.yaml index 1465d281..0f4c19f4 100644 --- a/neutron/templates/deployment-server.yaml +++ b/neutron/templates/deployment-server.yaml @@ -57,14 +57,12 @@ spec: memory: {{ .Values.resources.server.requests.memory | quote }} {{- end }} command: - - bash - /tmp/neutron-server.sh - start lifecycle: preStop: exec: command: - - bash - /tmp/neutron-server.sh - stop ports: @@ -98,6 +96,7 @@ spec: - name: neutron-bin configMap: name: neutron-bin + defaultMode: 0555 - name: neutron-etc configMap: name: neutron-etc diff --git a/neutron/templates/job-db-init.yaml b/neutron/templates/job-db-init.yaml index a857da95..333f6ed0 100644 --- a/neutron/templates/job-db-init.yaml +++ b/neutron/templates/job-db-init.yaml @@ -43,7 +43,6 @@ spec: - name: OPENSTACK_CONFIG_DB_KEY value: connection command: - - python - /tmp/db-init.py volumeMounts: - name: neutron-bin @@ -65,3 +64,4 @@ spec: - name: neutron-bin configMap: name: neutron-bin + defaultMode: 0555 diff --git a/neutron/templates/job-db-sync.yaml b/neutron/templates/job-db-sync.yaml index 18c99a80..4c746370 100644 --- a/neutron/templates/job-db-sync.yaml +++ b/neutron/templates/job-db-sync.yaml @@ -48,7 +48,6 @@ spec: memory: {{ .Values.resources.jobs.db_sync.requests.memory | quote }} {{- end }} command: - - bash - /tmp/db-sync.sh volumeMounts: - name: neutron-bin @@ -74,3 +73,4 @@ spec: - name: neutron-bin configMap: name: neutron-bin + defaultMode: 0555 diff --git a/neutron/templates/job-ks-endpoints.yaml b/neutron/templates/job-ks-endpoints.yaml index 29bbf79d..d359ac9f 100644 --- a/neutron/templates/job-ks-endpoints.yaml +++ b/neutron/templates/job-ks-endpoints.yaml @@ -43,7 +43,6 @@ spec: cpu: {{ $envAll.Values.resources.neutron_ks_endpoints.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-endpoints.sh volumeMounts: - name: ks-endpoints-sh @@ -68,3 +67,4 @@ spec: - name: ks-endpoints-sh configMap: name: neutron-bin + defaultMode: 0555 diff --git a/neutron/templates/job-ks-service.yaml b/neutron/templates/job-ks-service.yaml index 8611d868..10025ce0 100644 --- a/neutron/templates/job-ks-service.yaml +++ b/neutron/templates/job-ks-service.yaml @@ -42,7 +42,6 @@ spec: cpu: {{ $envAll.Values.resources.neutron_ks_service.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-service.sh volumeMounts: - name: ks-service-sh @@ -62,3 +61,4 @@ spec: - name: ks-service-sh configMap: name: neutron-bin + defaultMode: 0555 diff --git a/neutron/templates/job-ks-user.yaml b/neutron/templates/job-ks-user.yaml index 4675f8eb..e9a80ca5 100644 --- a/neutron/templates/job-ks-user.yaml +++ b/neutron/templates/job-ks-user.yaml @@ -42,7 +42,6 @@ spec: cpu: {{ .Values.resources.neutron_ks_user.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-user.sh volumeMounts: - name: ks-user-sh @@ -64,3 +63,4 @@ spec: - name: ks-user-sh configMap: name: neutron-bin + defaultMode: 0555 diff --git a/nova/templates/daemonset-compute.yaml b/nova/templates/daemonset-compute.yaml index 1d7a38c2..6c188fd9 100644 --- a/nova/templates/daemonset-compute.yaml +++ b/nova/templates/daemonset-compute.yaml @@ -55,7 +55,6 @@ spec: securityContext: privileged: true command: - - bash - /tmp/nova-compute.sh volumeMounts: - name: nova-bin @@ -98,6 +97,7 @@ spec: - name: nova-bin configMap: name: nova-bin + defaultMode: 0555 - name: nova-etc configMap: name: nova-etc diff --git a/nova/templates/daemonset-libvirt.yaml b/nova/templates/daemonset-libvirt.yaml index e570d2a2..32e4b7ab 100644 --- a/nova/templates/daemonset-libvirt.yaml +++ b/nova/templates/daemonset-libvirt.yaml @@ -47,7 +47,6 @@ spec: postStart: exec: command: - - bash - /tmp/ceph-secret-define.sh {{- end }} {{- if .Values.resources.enabled }} @@ -62,7 +61,6 @@ spec: securityContext: privileged: true command: - - bash - /tmp/libvirt.sh volumeMounts: - name: nova-bin @@ -121,6 +119,7 @@ spec: - name: nova-bin configMap: name: nova-bin + defaultMode: 0555 - name: nova-etc configMap: name: nova-etc diff --git a/nova/templates/deployment-api-metadata.yaml b/nova/templates/deployment-api-metadata.yaml index e18849e1..98bc525c 100644 --- a/nova/templates/deployment-api-metadata.yaml +++ b/nova/templates/deployment-api-metadata.yaml @@ -63,14 +63,12 @@ spec: add: - NET_ADMIN command: - - bash - /tmp/nova-api-metadata.sh - start lifecycle: preStop: exec: command: - - bash - /tmp/nova-api-metadata.sh - stop ports: @@ -96,6 +94,7 @@ spec: - name: nova-bin configMap: name: nova-bin + defaultMode: 0555 - name: nova-etc configMap: name: nova-etc diff --git a/nova/templates/deployment-api-osapi.yaml b/nova/templates/deployment-api-osapi.yaml index 7ef05f81..a882fc65 100644 --- a/nova/templates/deployment-api-osapi.yaml +++ b/nova/templates/deployment-api-osapi.yaml @@ -57,14 +57,12 @@ spec: cpu: {{ .Values.resources.nova_osapi.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/nova-api.sh - start lifecycle: preStop: exec: command: - - bash - /tmp/nova-api.sh - stop ports: @@ -90,6 +88,7 @@ spec: - name: nova-bin configMap: name: nova-bin + defaultMode: 0555 - name: nova-etc configMap: name: nova-etc diff --git a/nova/templates/deployment-conductor.yaml b/nova/templates/deployment-conductor.yaml index 12d6eea0..136ddf85 100644 --- a/nova/templates/deployment-conductor.yaml +++ b/nova/templates/deployment-conductor.yaml @@ -56,7 +56,6 @@ spec: cpu: {{ .Values.resources.nova_conductor.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/nova-conductor.sh volumeMounts: - name: nova-bin @@ -72,6 +71,7 @@ spec: - name: nova-bin configMap: name: nova-bin + defaultMode: 0555 - name: nova-etc configMap: name: nova-etc diff --git a/nova/templates/deployment-consoleauth.yaml b/nova/templates/deployment-consoleauth.yaml index 11274d21..5ab29740 100644 --- a/nova/templates/deployment-consoleauth.yaml +++ b/nova/templates/deployment-consoleauth.yaml @@ -57,7 +57,6 @@ spec: cpu: {{ .Values.resources.nova_consoleauth.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/nova-consoleauth.sh volumeMounts: - name: nova-bin @@ -73,6 +72,7 @@ spec: - name: nova-bin configMap: name: nova-bin + defaultMode: 0555 - name: nova-etc configMap: name: nova-etc diff --git a/nova/templates/deployment-scheduler.yaml b/nova/templates/deployment-scheduler.yaml index 4e2efd8d..a9467d5b 100644 --- a/nova/templates/deployment-scheduler.yaml +++ b/nova/templates/deployment-scheduler.yaml @@ -57,7 +57,6 @@ spec: cpu: {{ .Values.resources.nova_scheduler.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/nova-scheduler.sh volumeMounts: - name: nova-bin @@ -73,6 +72,7 @@ spec: - name: nova-bin configMap: name: nova-bin + defaultMode: 0555 - name: nova-etc configMap: name: nova-etc diff --git a/nova/templates/job-bootstrap.yaml b/nova/templates/job-bootstrap.yaml index 4b10e5db..b2bf5b8e 100644 --- a/nova/templates/job-bootstrap.yaml +++ b/nova/templates/job-bootstrap.yaml @@ -43,7 +43,6 @@ spec: cpu: {{ .Values.resources.bootstrap.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/bootstrap.sh env: {{- with $env := dict "ksUserSecret" $ksAdminSecret }} @@ -66,4 +65,5 @@ spec: - name: nova-bin configMap: name: nova-bin + defaultMode: 0555 {{ if $mounts_nova_bootstrap.volumes }}{{ toYaml $mounts_nova_bootstrap.volumes | indent 8 }}{{ end }} diff --git a/nova/templates/job-db-init.yaml b/nova/templates/job-db-init.yaml index f01c2ca7..228ce31d 100644 --- a/nova/templates/job-db-init.yaml +++ b/nova/templates/job-db-init.yaml @@ -52,7 +52,6 @@ spec: - name: OPENSTACK_CONFIG_DB_KEY value: connection command: - - python - /tmp/db-init.py volumeMounts: - name: nova-bin @@ -90,7 +89,6 @@ spec: - name: OPENSTACK_CONFIG_DB_KEY value: connection command: - - python - /tmp/db-init.py volumeMounts: - name: nova-bin @@ -112,3 +110,4 @@ spec: - name: nova-bin configMap: name: nova-bin + defaultMode: 0555 diff --git a/nova/templates/job-db-sync.yaml b/nova/templates/job-db-sync.yaml index 0af5d389..ca1ac4b1 100644 --- a/nova/templates/job-db-sync.yaml +++ b/nova/templates/job-db-sync.yaml @@ -40,7 +40,6 @@ spec: cpu: {{ .Values.resources.nova_db_sync.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/db-sync.sh volumeMounts: - name: nova-bin @@ -62,3 +61,4 @@ spec: - name: nova-bin configMap: name: nova-bin + defaultMode: 0555 diff --git a/nova/templates/job-ks-endpoints.yaml b/nova/templates/job-ks-endpoints.yaml index 69f5aa7d..68902ea2 100644 --- a/nova/templates/job-ks-endpoints.yaml +++ b/nova/templates/job-ks-endpoints.yaml @@ -43,7 +43,6 @@ spec: cpu: {{ $envAll.Values.resources.nova_ks_endpoints.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-endpoints.sh volumeMounts: - name: ks-endpoints-sh @@ -68,3 +67,4 @@ spec: - name: ks-endpoints-sh configMap: name: nova-bin + defaultMode: 0555 diff --git a/nova/templates/job-ks-service.yaml b/nova/templates/job-ks-service.yaml index d8314d51..60dbaf78 100644 --- a/nova/templates/job-ks-service.yaml +++ b/nova/templates/job-ks-service.yaml @@ -42,7 +42,6 @@ spec: cpu: {{ $envAll.Values.resources.nova_ks_service.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-service.sh volumeMounts: - name: ks-service-sh @@ -62,3 +61,4 @@ spec: - name: ks-service-sh configMap: name: nova-bin + defaultMode: 0555 diff --git a/nova/templates/job-ks-user.yaml b/nova/templates/job-ks-user.yaml index badc6df7..44de01b8 100644 --- a/nova/templates/job-ks-user.yaml +++ b/nova/templates/job-ks-user.yaml @@ -42,7 +42,6 @@ spec: cpu: {{ .Values.resources.nova_ks_user.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-user.sh volumeMounts: - name: ks-user-sh @@ -64,3 +63,4 @@ spec: - name: ks-user-sh configMap: name: nova-bin + defaultMode: 0555 diff --git a/senlin/templates/deployment-api.yaml b/senlin/templates/deployment-api.yaml index 340d1fe3..316d6a7f 100644 --- a/senlin/templates/deployment-api.yaml +++ b/senlin/templates/deployment-api.yaml @@ -57,14 +57,12 @@ spec: cpu: {{ .Values.resources.senlin_api.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/senlin-api.sh - start lifecycle: preStop: exec: command: - - bash - /tmp/senlin-api.sh - stop ports: @@ -102,6 +100,7 @@ spec: - name: senlin-bin configMap: name: senlin-bin + defaultMode: 0555 - name: senlin-etc configMap: name: senlin-etc diff --git a/senlin/templates/job-db-init.yaml b/senlin/templates/job-db-init.yaml index 7067e999..78a31ec6 100644 --- a/senlin/templates/job-db-init.yaml +++ b/senlin/templates/job-db-init.yaml @@ -52,7 +52,6 @@ spec: - name: OPENSTACK_CONFIG_DB_KEY value: connection command: - - python - /tmp/db-init.py volumeMounts: - name: senlin-bin @@ -74,3 +73,4 @@ spec: - name: senlin-bin configMap: name: senlin-bin + defaultMode: 0555 diff --git a/senlin/templates/job-db-sync.yaml b/senlin/templates/job-db-sync.yaml index 618c4a06..ee526182 100644 --- a/senlin/templates/job-db-sync.yaml +++ b/senlin/templates/job-db-sync.yaml @@ -40,7 +40,6 @@ spec: cpu: {{ .Values.resources.senlin_db_sync.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/db-sync.sh volumeMounts: - name: senlin-bin @@ -62,3 +61,4 @@ spec: - name: senlin-bin configMap: name: senlin-bin + defaultMode: 0555 diff --git a/senlin/templates/job-ks-endpoints.yaml b/senlin/templates/job-ks-endpoints.yaml index a8df38ae..5d307d92 100644 --- a/senlin/templates/job-ks-endpoints.yaml +++ b/senlin/templates/job-ks-endpoints.yaml @@ -43,7 +43,6 @@ spec: cpu: {{ $envAll.Values.resources.senlin_ks_endpoints.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-endpoints.sh volumeMounts: - name: ks-endpoints-sh @@ -68,3 +67,4 @@ spec: - name: ks-endpoints-sh configMap: name: senlin-bin + defaultMode: 0555 diff --git a/senlin/templates/job-ks-service.yaml b/senlin/templates/job-ks-service.yaml index 43a60d13..cf345a2c 100644 --- a/senlin/templates/job-ks-service.yaml +++ b/senlin/templates/job-ks-service.yaml @@ -42,7 +42,6 @@ spec: cpu: {{ $envAll.Values.resources.senlin_ks_service.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-service.sh volumeMounts: - name: ks-service-sh @@ -62,3 +61,4 @@ spec: - name: ks-service-sh configMap: name: senlin-bin + defaultMode: 0555 diff --git a/senlin/templates/job-ks-user.yaml b/senlin/templates/job-ks-user.yaml index 4f22fa30..2d1a3655 100644 --- a/senlin/templates/job-ks-user.yaml +++ b/senlin/templates/job-ks-user.yaml @@ -42,7 +42,6 @@ spec: cpu: {{ .Values.resources.senlin_ks_user.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/ks-user.sh volumeMounts: - name: ks-user-sh @@ -64,3 +63,4 @@ spec: - name: ks-user-sh configMap: name: senlin-bin + defaultMode: 0555 diff --git a/senlin/templates/statefulset-engine.yaml b/senlin/templates/statefulset-engine.yaml index 75d81be7..55605ed7 100644 --- a/senlin/templates/statefulset-engine.yaml +++ b/senlin/templates/statefulset-engine.yaml @@ -46,7 +46,6 @@ spec: cpu: {{ .Values.resources.senlin_engine.limits.cpu | quote }} {{- end }} command: - - bash - /tmp/senlin-engine.sh volumeMounts: - name: senlin-bin @@ -74,6 +73,7 @@ spec: - name: senlin-bin configMap: name: senlin-bin + defaultMode: 0555 - name: senlin-etc configMap: name: senlin-etc