Add linode block storage

This commit is contained in:
Adrien Reslinger 2020-04-22 16:11:23 +02:00
parent 7cb826a8f1
commit a314988c99
22 changed files with 602 additions and 2 deletions

View file

@ -0,0 +1,20 @@
# pkg/linode-bs/deploy/kubernetes/08-cm-get-linode-id.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: get-linode-id
namespace: kube-system
labels:
app: csi-linode
data:
get-linode-id.sh: |-
#!/bin/bash -efu
id="$(kubectl get node/"${NODE_NAME}" -o jsonpath='{.spec.providerID}')"
if [[ ! -z "${id}" ]]; then
echo "${id}"
echo -n "${id:9}" > /linode-info/linode-id
exit 0
fi
echo "Provider ID not found"
# Exit here so that we wait for the CCM to initialize the provider ID
exit 1