2018-07-18 14:49:15 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
deployment_base="${1}"
|
2020-08-04 12:48:55 +00:00
|
|
|
shift
|
|
|
|
kms_base="${1}"
|
2018-07-18 14:49:15 +00:00
|
|
|
|
2020-08-04 12:48:55 +00:00
|
|
|
if [[ -z "${deployment_base}" ]]; then
|
2019-12-19 15:35:58 +00:00
|
|
|
deployment_base="../../deploy/rbd/kubernetes"
|
2018-07-18 14:49:15 +00:00
|
|
|
fi
|
|
|
|
|
2020-08-04 12:48:55 +00:00
|
|
|
pushd "${deployment_base}" >/dev/null || exit 1
|
2018-07-18 14:49:15 +00:00
|
|
|
|
2022-11-08 13:33:11 +00:00
|
|
|
objects=(csi-provisioner-rbac csi-nodeplugin-rbac csi-config-map csi-rbdplugin-provisioner csi-rbdplugin csidriver)
|
2018-07-18 14:49:15 +00:00
|
|
|
|
2019-02-07 09:59:10 +00:00
|
|
|
for obj in "${objects[@]}"; do
|
2020-08-04 12:48:55 +00:00
|
|
|
kubectl create -f "./${obj}.yaml"
|
2018-07-18 14:49:15 +00:00
|
|
|
done
|
2020-08-04 12:48:55 +00:00
|
|
|
|
|
|
|
popd >/dev/null || exit 1
|
|
|
|
|
|
|
|
if [[ -z "${kms_base}" ]]; then
|
|
|
|
kms_base="../kms/vault"
|
|
|
|
fi
|
|
|
|
|
|
|
|
pushd "${kms_base}" >/dev/null || exit 1
|
|
|
|
|
|
|
|
objects=(vault csi-vaulttokenreview-rbac kms-config)
|
|
|
|
|
|
|
|
for obj in "${objects[@]}"; do
|
|
|
|
kubectl create -f "./${obj}.yaml"
|
|
|
|
done
|
|
|
|
|
|
|
|
popd >/dev/null || exit 1
|