Skip to content

Commit

Permalink
Workarounds to pass e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard Kovacs committed Apr 15, 2024
1 parent 37cee49 commit 4c7159e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
8 changes: 5 additions & 3 deletions deploy/ccm-linode-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ metadata:
rules:
- apiGroups: [""]
resources: ["endpoints"]
verbs: ["get", "watch", "list", "update", "create"]
verbs: ["get"]
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "watch", "list", "update", "delete", "patch"]
Expand All @@ -44,6 +44,9 @@ rules:
- apiGroups: [""]
resources: ["services/status"]
verbs: ["get", "watch", "list", "update", "patch"]
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["get", "watch", "list", "update", "create"]
---
kind: ClusterRoleBinding
apiVersion: rbac.authorization.k8s.io/v1
Expand Down Expand Up @@ -101,9 +104,8 @@ spec:
imagePullPolicy: Always
name: ccm-linode
args:
- --leader-elect-resource-lock=endpoints
- --leader-elect-resource-lock=leases
- --v=3
- --port=0
- --secure-port=10253
volumeMounts:
- mountPath: /etc/kubernetes
Expand Down
5 changes: 4 additions & 1 deletion deploy/chart/templates/clusterrole-rbac.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
rules:
- apiGroups: [""]
resources: ["endpoints"]
verbs: ["get", "watch", "list", "update", "create"]
verbs: ["get"]
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["get", "watch", "list", "update", "create"]
Expand All @@ -30,3 +30,6 @@ rules:
- apiGroups: [""]
resources: ["services/status"]
verbs: ["get", "watch", "list", "update", "patch"]
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["get", "watch", "list", "update", "create"]

0 comments on commit 4c7159e

Please sign in to comment.