Skip to content

Commit

Permalink
[fix] : fix template for linode ccm (linode#251)
Browse files Browse the repository at this point in the history
* fix template for linode ccm

* add deprecation warning
  • Loading branch information
rahulait authored Dec 4, 2024
1 parent b4ee2af commit 5426f27
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 5 additions & 2 deletions deploy/ccm-linode-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ rules:
- apiGroups: [""]
resources: ["endpoints"]
verbs: ["get", "watch", "list", "update", "create"]
- apiGroups: ["coordination.k8s.io"]
resources: ["leases"]
verbs: ["get", "watch", "list", "update", "create"]
- apiGroups: [""]
resources: ["nodes"]
verbs: ["get", "watch", "list", "update", "delete", "patch"]
Expand Down Expand Up @@ -101,10 +104,10 @@ spec:
imagePullPolicy: Always
name: ccm-linode
args:
- --leader-elect-resource-lock=endpoints
- --leader-elect-resource-lock=leases
- --v=3
- --port=0
- --secure-port=10253
- --webhook-secure-port=0
volumeMounts:
- mountPath: /etc/kubernetes
name: k8s
Expand Down
5 changes: 5 additions & 0 deletions deploy/generate-manifest.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ set -o pipefail -o noclobber -o nounset

die() { echo "$*" 1>&2; exit 1; }

echo -e "\n********************************************************************"
echo -e "WARNING: This script is deprecated and may be removed in future."
echo -e "Please use helm for installs, or refer to the docs for alternatives."
echo -e "********************************************************************\n"

[ "$#" -eq 2 ] || die "First argument must be a Linode APIv4 Personal Access Token with all permissions.
(https://cloud.linode.com/profile/tokens)
Expand Down

0 comments on commit 5426f27

Please sign in to comment.