From 98c3134f9cccf6bb161a47816234da7973c62638 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 2 Apr 2024 15:00:03 +0200 Subject: [PATCH] feat: add objectbucket crds --- generate.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/generate.sh b/generate.sh index 592f508..4b3699b 100755 --- a/generate.sh +++ b/generate.sh @@ -107,6 +107,26 @@ metallb_handler() { 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() { API=postgresql.cnpg.io NAME=cnpg @@ -147,6 +167,7 @@ handlers=( calico_handler flux_handler metallb_handler + objectbucket_handler cnpg_handler certmanager_handler minio_handler