diff options
author | Jakub Latusek <jk.latusek@gmail.com> | 2020-12-09 14:05:43 +0100 |
---|---|---|
committer | Jakub Latusek <j.latusek@samsung.com> | 2020-12-09 19:28:19 +0000 |
commit | b7c00ec03c7fb749f08696b51c9af839c6622a96 (patch) | |
tree | f569d99f3e53958e21aa341f4a81308a75e8887e /kubernetes/contrib | |
parent | 3aa973635b89c72133b7b75c65254ac4142b0f2b (diff) |
[CONTRIB] Remove list from serviceaccount
Helm 3.4 checks if every object have not empty name.
Created list have only one element and isn't described in k8s docs.
List should be removed.
Signed-off-by: Jakub Latusek <j.latusek@samsung.com>
Change-Id: I60fa1920a347ca8061b9c644f992c53b0bc99514
Issue-ID: OOM-2562
Diffstat (limited to 'kubernetes/contrib')
-rw-r--r-- | kubernetes/contrib/components/awx/templates/serviceaccout.yaml | 27 |
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 |