Skip to content

Commit

Permalink
add serviceaccount first in rbac.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
consideRatio committed Apr 1, 2018
1 parent d7d7a58 commit 947f1e7
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions jupyterhub/templates/pod-culler/rbac.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{{ if and .Values.cull.enabled .Values.cull.maxAge }}
{{ if .Values.rbac.enabled -}}
apiVersion: v1
kind: ServiceAccount
metadata:
name: pod-culler
---
kind: Role
apiVersion: rbac.authorization.k8s.io/v1beta1
metadata:
Expand Down Expand Up @@ -26,9 +32,5 @@ roleRef:
kind: Role
name: pod-culler
apiGroup: rbac.authorization.k8s.io
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: pod-culler
{{- end }}
{{- end }}

0 comments on commit 947f1e7

Please sign in to comment.