From c8b09b5c31526879ad2bcbb0f014ad65eb87d4c9 Mon Sep 17 00:00:00 2001 From: Daniel Farrell Date: Fri, 11 Jun 2021 12:47:54 -0400 Subject: [PATCH] Name RBAC fields to match K8s requirements The colon in these field names isn't allowed by K8s, and fails ct linting. Use the new names from submariner-operator, which have already been renamed to fix this. Signed-off-by: Daniel Farrell --- submariner-k8s-broker/templates/rbac.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/submariner-k8s-broker/templates/rbac.yaml b/submariner-k8s-broker/templates/rbac.yaml index 4b7492c..52e9b4a 100644 --- a/submariner-k8s-broker/templates/rbac.yaml +++ b/submariner-k8s-broker/templates/rbac.yaml @@ -2,7 +2,7 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: Role metadata: - name: {{ template "submariner-k8s-broker.fullname" . }}:client + name: {{ template "submariner-k8s-broker.fullname" . }}-cluster labels: heritage: {{ .Release.Service | quote }} release: {{ .Release.Name | quote }} @@ -25,13 +25,13 @@ rules: apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: - name: {{ template "submariner-k8s-broker.fullname" . }}:client + name: {{ template "submariner-k8s-broker.fullname" . }}-cluster roleRef: apiGroup: rbac.authorization.k8s.io kind: Role - name: {{ template "submariner-k8s-broker.fullname" . }}:client + name: {{ template "submariner-k8s-broker.fullname" . }}-cluster subjects: - kind: ServiceAccount name: {{ template "submariner-k8s-broker.clientServiceAccountName" . }} namespace: {{ .Release.Namespace }} -{{- end -}} \ No newline at end of file +{{- end -}}