Skip to content
This repository has been archived by the owner on Mar 9, 2022. It is now read-only.

Commit

Permalink
this should fail on namespaced but work on normal
Browse files Browse the repository at this point in the history
  • Loading branch information
Fredrik Folkesson authored and Fredrik Folkesson committed Jan 31, 2019
1 parent 0083df7 commit cc3a4f6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .circleci/config.yml
Expand Up @@ -237,9 +237,9 @@ jobs:
- run:
name: Delete service account for cluster-admin role (Helm)
command: sudo kubectl delete -f ./examples/kubernetes/helm/rbac/rbac-config.yaml
# - run:
# name: Give default service account view access to Kubernetes API
# command: sudo kubectl create -f ./examples/kubernetes/plain/rbac/rbac-config.yaml
- run:
name: Give default service account view access to Kubernetes API
command: sudo kubectl create -f ./examples/kubernetes/plain/rbac/rbac-config.yaml
- run:
name: Accept EULA
command: grep -rl AcceptEULA ./examples/kubernetes/plain/ | xargs sed -i 's/AcceptEULA=no/AcceptEULA=yes/g'
Expand All @@ -263,6 +263,7 @@ jobs:
- run:
name: Cleanup services
command: |
sudo kubectl delete -f ./examples/kubernetes/plain/rbac/rbac-config.yaml
sudo kubectl delete -f ./examples/kubernetes/plain
- run:
name: Give default service account view access to Kubernetes API only within the namespace
Expand Down
2 changes: 1 addition & 1 deletion examples/kubernetes/plain.namespaced/mira-deployment.yml
Expand Up @@ -11,7 +11,7 @@ spec:
labels:
app: mira
spec:
serviceAccount: mira
serviceAccount: default
containers:
- name: mira
image: "qlikcore/mira:1.0.0"
Expand Down

0 comments on commit cc3a4f6

Please sign in to comment.