Skip to content

Commit

Permalink
add serviceaccounts/token resources
Browse files Browse the repository at this point in the history
  • Loading branch information
chengxiangdong committed Jan 10, 2023
1 parent 4209e5d commit 3bfe81b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions hack/pre-run-e2e.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ kubectl delete -n kube-system deployment --ignore-not-found=true huawei-cloud-co

echo -e "\nDeploy huawei-cloud-controller-manager"
cat << EOF | kubectl apply -f -
apiVersion: v1
kind: Namespace
metadata:
name: huawei-cloud-provider
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
Expand All @@ -60,6 +65,7 @@ rules:
- services
- secrets
- serviceaccounts
- serviceaccounts/token
verbs:
- get
- list
Expand Down
1 change: 1 addition & 0 deletions manifests/rbac-huawei-cloud-controller-manager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ rules:
- services
- secrets
- serviceaccounts
- serviceaccounts/token
verbs:
- get
- list
Expand Down

0 comments on commit 3bfe81b

Please sign in to comment.