Skip to content

Commit

Permalink
Merge pull request #103 from Paic/examples-fix
Browse files Browse the repository at this point in the history
Use our created ServiceAccount
  • Loading branch information
jchanam authored Oct 30, 2018
2 parents 9861308 + 0edb8d0 commit 4a7661c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions example/operator/all-redis-operator-resources.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ spec:
labels:
app: redisoperator
spec:
serviceAccountName: redisoperator
containers:
- image: quay.io/spotahome/redis-operator:latest
imagePullPolicy: IfNotPresent
Expand All @@ -28,6 +29,7 @@ spec:
cpu: 10m
memory: 50Mi
restartPolicy: Always
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
Expand All @@ -40,6 +42,7 @@ subjects:
- kind: ServiceAccount
name: redisoperator
namespace: default
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand Down Expand Up @@ -80,6 +83,7 @@ rules:
- poddisruptionbudgets
verbs:
- "*"
---
apiVersion: v1
kind: ServiceAccount
metadata:
Expand Down
1 change: 1 addition & 0 deletions example/operator/operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ spec:
labels:
app: redisoperator
spec:
serviceAccountName: redisoperator
containers:
- image: quay.io/spotahome/redis-operator:latest
imagePullPolicy: IfNotPresent
Expand Down

0 comments on commit 4a7661c

Please sign in to comment.