summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylvain Desbureaux <sylvain.desbureaux@orange.com>2020-12-10 07:39:45 +0000
committerGerrit Code Review <gerrit@onap.org>2020-12-10 07:39:45 +0000
commitf4b744876493de5be5bc7c5c2885db1c3045878c (patch)
tree0f8b80b8714ad8f3948190b326b98bb1a3c17b40
parent8aa1d0d4532d4b6005bdf993c4eee48ebfc60012 (diff)
parentb7c00ec03c7fb749f08696b51c9af839c6622a96 (diff)
Merge "[CONTRIB] Remove list from serviceaccount"
-rw-r--r--kubernetes/contrib/components/awx/templates/serviceaccout.yaml27
1 files changed, 12 insertions, 15 deletions
diff --git a/kubernetes/contrib/components/awx/templates/serviceaccout.yaml b/kubernetes/contrib/components/awx/templates/serviceaccout.yaml
index 0f52ce800a..15baf0e308 100644
--- a/kubernetes/contrib/components/awx/templates/serviceaccout.yaml
+++ b/kubernetes/contrib/components/awx/templates/serviceaccout.yaml
@@ -30,18 +30,15 @@ rules:
resources: ["endpoints", "deployments", "pods", "replicasets/status", "jobs/status"]
verbs: ["get", "list"]
---
-apiVersion: v1
-items:
-- apiVersion: rbac.authorization.k8s.io/v1
- kind: RoleBinding
- metadata:
- name: {{ include "common.fullname" . }}-endpoint-reader
- namespace: {{ include "common.namespace" . }}
- roleRef:
- apiGroup: rbac.authorization.k8s.io
- kind: Role
- name: {{ include "common.fullname" . }}-endpoint-reader
- subjects:
- - kind: ServiceAccount
- name: {{ include "common.fullname" . }}
-kind: List \ No newline at end of file
+apiVersion: rbac.authorization.k8s.io/v1
+kind: RoleBinding
+metadata:
+ name: {{ include "common.fullname" . }}-endpoint-reader
+ namespace: {{ include "common.namespace" . }}
+roleRef:
+ apiGroup: rbac.authorization.k8s.io
+ kind: Role
+ name: {{ include "common.fullname" . }}-endpoint-reader
+subjects:
+- kind: ServiceAccount
+ name: {{ include "common.fullname" . }} \ No newline at end of file