feat: add objectbucket crds (#80)
Reviewed-on: #80 Co-authored-by: Robert Kaussow <mail@thegeeklab.de> Co-committed-by: Robert Kaussow <mail@thegeeklab.de>
This commit is contained in:
parent
cb5f0f53ad
commit
1bec9029a2
21
generate.sh
21
generate.sh
@ -107,6 +107,26 @@ metallb_handler() {
|
|||||||
generate_all "$TARGET_DIR"
|
generate_all "$TARGET_DIR"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
objectbucket_handler() {
|
||||||
|
API=objectbucket.io
|
||||||
|
NAME=objectbucket
|
||||||
|
WORKDIR="${TMP_CRD_DIR}/$NAME"
|
||||||
|
SOURCE="https://github.com/kube-object-storage/lib-bucket-provisioner/archive/refs/tags/kubernetes-v1.14.1.tar.gz"
|
||||||
|
|
||||||
|
printf "Processing %s ...\n" $API
|
||||||
|
mkdir -p "${WORKDIR}"
|
||||||
|
curl -SsfL "${SOURCE}" | tar xz -C "${WORKDIR}" --strip-components=1
|
||||||
|
(
|
||||||
|
cd "$WORKDIR"
|
||||||
|
for FILE in "${WORKDIR}"/deploy/crds/*crd.yaml; do
|
||||||
|
openapi2jsonschema "${FILE}" >/dev/null
|
||||||
|
done
|
||||||
|
)
|
||||||
|
|
||||||
|
output
|
||||||
|
generate_all "$TARGET_DIR"
|
||||||
|
}
|
||||||
|
|
||||||
cnpg_handler() {
|
cnpg_handler() {
|
||||||
API=postgresql.cnpg.io
|
API=postgresql.cnpg.io
|
||||||
NAME=cnpg
|
NAME=cnpg
|
||||||
@ -147,6 +167,7 @@ handlers=(
|
|||||||
calico_handler
|
calico_handler
|
||||||
flux_handler
|
flux_handler
|
||||||
metallb_handler
|
metallb_handler
|
||||||
|
objectbucket_handler
|
||||||
cnpg_handler
|
cnpg_handler
|
||||||
certmanager_handler
|
certmanager_handler
|
||||||
minio_handler
|
minio_handler
|
||||||
|
Loading…
Reference in New Issue
Block a user