2021-07-21 11:26:56 +00:00
|
|
|
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
|
2023-08-21 11:56:30 +00:00
|
|
|
. ../../scripts/lib-update.sh
|
2023-04-25 10:13:11 +00:00
|
|
|
|
2023-08-21 11:56:30 +00:00
|
|
|
#login_ecr_public
|
|
|
|
update_helm
|
2021-12-03 21:16:52 +00:00
|
|
|
|
2023-08-21 11:56:30 +00:00
|
|
|
patch_chart aws-ebs-csi-driver
|
2021-12-03 21:16:52 +00:00
|
|
|
|
2023-08-21 11:56:30 +00:00
|
|
|
patch_chart aws-efs-csi-driver
|
|
|
|
|
|
|
|
patch_chart lvm-localpv
|
2024-03-22 17:04:41 +00:00
|
|
|
|
|
|
|
patch_chart gemini
|
|
|
|
|
|
|
|
# snapshotter
|
2024-03-27 22:48:02 +00:00
|
|
|
_f="templates/snapshot-controller/rbac.yaml"
|
|
|
|
echo "{{- if .Values.snapshotController.enabled }}" > $_f
|
|
|
|
curl -L -s https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/master/deploy/kubernetes/snapshot-controller/rbac-snapshot-controller.yaml >> $_f
|
|
|
|
echo "{{- end }}" >> $_f
|
|
|
|
|
|
|
|
# our controller.yaml is based on:
|
2024-03-22 17:04:41 +00:00
|
|
|
# https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/master/deploy/kubernetes/snapshot-controller/setup-snapshot-controller.yaml
|
|
|
|
|
|
|
|
for crd in volumesnapshotclasses volumesnapshotcontents volumesnapshots; do
|
|
|
|
_f="templates/snapshot-controller/${crd}-crd.yaml"
|
|
|
|
echo "{{- if .Values.snapshotController.enabled }}" > $_f
|
|
|
|
curl -L -s https://raw.githubusercontent.com/kubernetes-csi/external-snapshotter/master/client/config/crd/snapshot.storage.k8s.io_${crd}.yaml >> $_f
|
|
|
|
echo "{{- end }}" >> $_f
|
|
|
|
done
|
|
|
|
|
2023-08-21 11:56:30 +00:00
|
|
|
|
|
|
|
# k8up - CRDs
|
|
|
|
VERSION=$(yq eval '.dependencies[] | select(.name=="k8up") | .version' Chart.yaml)
|
2024-03-27 22:48:02 +00:00
|
|
|
|
|
|
|
_f="templates/k8up/crds.yaml"
|
|
|
|
echo "{{- if .Values.k8up.enabled }}" > $_f
|
|
|
|
curl -L -s https://github.com/k8up-io/k8up/releases/download/k8up-${VERSION}/k8up-crd.yaml >> $_f
|
|
|
|
echo "{{- end }}" >> $_f
|
2022-03-08 10:41:47 +00:00
|
|
|
|
|
|
|
# Metrics
|
|
|
|
cd jsonnet
|
|
|
|
make render
|
2022-04-29 18:22:20 +00:00
|
|
|
|
2023-08-21 11:56:30 +00:00
|
|
|
update_docs
|