Enable Apparmor to Horizon Components

Change-Id: I7b28eb5e7f571b050ee3ac5eeb2b6868f0d44f58
This commit is contained in:
dt241s@att.com 2020-02-26 23:33:14 +00:00 committed by diwakar thyagaraj
parent a950167f3c
commit 0c32a86733
4 changed files with 14 additions and 0 deletions

View File

@ -45,6 +45,7 @@ spec:
{{ tuple $envAll | include "helm-toolkit.snippets.release_uuid" | indent 8 }}
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.utils.hash" }}
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.utils.hash" }}
{{ dict "envAll" $envAll "podName" "horizon" "containerNames" (list "horizon" "init" ) | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
spec:
serviceAccountName: {{ $serviceAccountName }}
{{ dict "envAll" $envAll "application" "horizon" | include "helm-toolkit.snippets.kubernetes_pod_security_context" | indent 6 }}

View File

@ -34,6 +34,8 @@ spec:
metadata:
labels:
{{ tuple $envAll "horizon" "db-sync" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }}
annotations:
{{ dict "envAll" $envAll "podName" "horizon-db-sync" "containerNames" (list "horizon-db-sync" "init" ) | include "helm-toolkit.snippets.kubernetes_mandatory_access_control_annotation" | indent 8 }}
spec:
serviceAccountName: {{ $serviceAccountName }}
restartPolicy: OnFailure

View File

@ -0,0 +1,9 @@
pod:
mandatory_access_control:
type: apparmor
horizon:
horizon: runtime/default
init: runtime/default
horizon-db-sync:
horizon-db-sync: runtime/default
init: runtime/default

View File

@ -240,6 +240,7 @@
name: openstack-helm-apparmor
parent: openstack-helm-chart-deploy
run: tools/gate/playbooks/osh-gate-runner.yaml
timeout: 9600
vars:
osh_params:
openstack_release: stein
@ -256,6 +257,7 @@
- ./tools/deployment/component/common/rabbitmq.sh
- ./tools/deployment/component/nfs-provisioner/nfs-provisioner.sh
- ./tools/deployment/component/keystone/keystone.sh
- ./tools/deployment/component/horizon/horizon.sh
- ./tools/deployment/component/heat/heat.sh
- ./tools/deployment/component/glance/glance.sh
- ./tools/deployment/component/compute-kit/openvswitch.sh