[CONTRIB] Remove list from serviceaccount 59/116259/2
authorJakub Latusek <jk.latusek@gmail.com>
Wed, 9 Dec 2020 13:05:43 +0000 (14:05 +0100)
committerJakub Latusek <j.latusek@samsung.com>
Wed, 9 Dec 2020 19:28:19 +0000 (19:28 +0000)
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

kubernetes/contrib/components/awx/templates/serviceaccout.yaml

index 0f52ce8..15baf0e 100644 (file)
@@ -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