Ceilometer: RBAC for helm test

This PS adds RBAC rules for the helm test pod.

Change-Id: Iaa30fdf9c5194df7b2863a123adc94054e029c17
This commit is contained in:
portdirect 2017-12-28 20:52:40 -05:00 committed by Pete Birley
parent da6332ee05
commit 231efb5cd4

View File

@ -17,8 +17,12 @@ limitations under the License.
{{- if .Values.manifests.pod_rally_test }}
{{- $envAll := . }}
{{- $dependencies := .Values.dependencies.tests }}
{{- $mounts_ceilometer_tests := .Values.pod.mounts.ceilometer_tests.ceilometer_tests }}
{{- $mounts_ceilometer_tests_init := .Values.pod.mounts.ceilometer_tests.init_container }}
{{- $serviceAccountName := print .Release.Name "-test" }}
{{ tuple $envAll $dependencies $serviceAccountName | include "helm-toolkit.snippets.kubernetes_pod_rbac_serviceaccount" }}
---
apiVersion: v1
kind: Pod
@ -27,6 +31,7 @@ metadata:
annotations:
"helm.sh/hook": test-success
spec:
serviceAccountName: {{ $serviceAccountName }}
restartPolicy: Never
initContainers:
{{ tuple $envAll $dependencies $mounts_ceilometer_tests_init | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }}