From 18c179719f3a6ecea084423f54e7eaebf70022fc Mon Sep 17 00:00:00 2001 From: Rahul Sharma Date: Wed, 21 Feb 2024 03:19:30 +0000 Subject: [PATCH] update readme with flags documentation --- README.md | 9 +++++++++ deploy/chart/templates/daemonset.yaml | 5 ++++- deploy/chart/values.yaml | 3 +++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2236b2bf..b23cfc25 100644 --- a/README.md +++ b/README.md @@ -290,6 +290,15 @@ helm upgrade ccm-linode --install --set apiToken=$LINODE_API_TOKEN,region=$REGIO ``` _See [helm upgrade](https://helm.sh/docs/helm/helm_upgrade/) for command documentation._ +### Flags +If required, ccm-linode can be started with following linode specific parameters: + +Key | Values | Default | Description +---|---|---|--- +`linodego-debug` | `boolean` | `false` | enables debug output for the LinodeAPI wrapper. +`linode-node-private-subnet` | `net.IPNet` | `192.168.128.0/17` | specifies backend network to use with nodebalancers. + + ### Configurations There are other variables that can be set to a different value. For list of all the modifiable variables/values, take a look at './deploy/chart/values.yaml'. diff --git a/deploy/chart/templates/daemonset.yaml b/deploy/chart/templates/daemonset.yaml index 97002eb5..86cd0a20 100644 --- a/deploy/chart/templates/daemonset.yaml +++ b/deploy/chart/templates/daemonset.yaml @@ -33,9 +33,12 @@ spec: - --v=3 - --port=0 - --secure-port=10253 + {{- if .Values.linodegoDebug }} + - --linodego-debug={{ .Values.linodegoDebug }} + {{- end }} {{- if .Values.linodeNodePrivateSubnet }} - --linode-node-private-subnet={{ .Values.linodeNodePrivateSubnet }} - {{- end}} + {{- end }} volumeMounts: - mountPath: /etc/kubernetes name: k8s diff --git a/deploy/chart/values.yaml b/deploy/chart/values.yaml index 6b19d75b..31b24b5f 100644 --- a/deploy/chart/values.yaml +++ b/deploy/chart/values.yaml @@ -22,6 +22,9 @@ image: tag: # only set if required, defaults to .Chart.AppVersion set during release or "latest" by default pullPolicy: Always +# enable debug output for the LinodeAPI wrapper +# linodegoDebug: false + # Set only if one wants to change the default backend network(192.168.128.0/17) to be configured with nodebalancers # linodeNodePrivateSubnet: "192.168.128.0/17"