From: Jakub Latusek Date: Wed, 9 Dec 2020 13:05:43 +0000 (+0100) Subject: [CONTRIB] Remove list from serviceaccount X-Git-Tag: 8.0.0~194^2 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=b7c00ec03c7fb749f08696b51c9af839c6622a96;hp=3aa973635b89c72133b7b75c65254ac4142b0f2b;p=oom.git [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 Change-Id: I60fa1920a347ca8061b9c644f992c53b0bc99514 Issue-ID: OOM-2562 --- 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