mirror of
https://github.com/lucky-sideburn/kubeinvaders.git
synced 2026-08-23 21:46:21 +00:00
Merge pull request #101 from DanielViard/master
Docker Image CI / build (push) Failing after 2m6s
Docker Image CI / build (push) Failing after 2m6s
Fix rbac-cluster.yaml Helm chart template.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
{{- if .Values.rbac.create -}}
|
||||
{{if .Values.clusterRole.create -}}
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: {{ template "kubeinvaders.clusterRoleName" . }}
|
||||
labels:
|
||||
@@ -44,6 +44,7 @@ roleRef:
|
||||
name: {{ template "kubeinvaders.clusterRoleName" . }}
|
||||
---
|
||||
kind: ClusterRole
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
namespace: {{ .Release.Namespace }}
|
||||
name: kubeinvaders-vm-restart-role
|
||||
@@ -51,8 +52,9 @@ rules:
|
||||
- apiGroups: ["subresources.kubevirt.io"]
|
||||
resources: ["virtualmachines/restart"]
|
||||
verbs: ["update"]
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
---
|
||||
kind: ClusterRoleBinding
|
||||
apiVersion: rbac.authorization.k8s.io/v1
|
||||
metadata:
|
||||
name: kubeinvaders-vm-restart-binding
|
||||
namespace: {{ .Release.Namespace }}
|
||||
|
||||
Reference in New Issue
Block a user