From bdae11838670ed6685e14404198af098a4a86a64 Mon Sep 17 00:00:00 2001 From: Robert Kaussow Date: Tue, 2 Apr 2024 14:53:12 +0200 Subject: [PATCH] pass api url as arg --- generate.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/generate.sh b/generate.sh index 8e0ad9c..592f508 100755 --- a/generate.sh +++ b/generate.sh @@ -29,7 +29,7 @@ generate_all() { } exec_openapi() { - printf "Processing %s ...\n" "$API" + printf "Processing %s ...\n" "$1" prepare ( cd "$WORKDIR" @@ -113,7 +113,7 @@ cnpg_handler() { WORKDIR="${TMP_CRD_DIR}/$NAME" SOURCE="https://github.com/cloudnative-pg/cloudnative-pg/releases/download/${CNPG_VERSION}/cnpg-${CNPG_VERSION##v}.yaml" - exec_openapi + exec_openapi $API } certmanager_handler() { @@ -122,7 +122,7 @@ certmanager_handler() { WORKDIR="${TMP_CRD_DIR}/$NAME" SOURCE="https://github.com/cert-manager/cert-manager/releases/download/${CERTMANAGER_VERSION}/cert-manager.crds.yaml" - exec_openapi + exec_openapi $API } minio_handler() { @@ -131,7 +131,7 @@ minio_handler() { WORKDIR="${TMP_CRD_DIR}/$NAME" SOURCE="https://raw.githubusercontent.com/minio/operator/${MINIO_VERSION}/resources/base/crds/minio.min.io_tenants.yaml" - exec_openapi + exec_openapi $API } k8up_handler() { @@ -140,7 +140,7 @@ k8up_handler() { WORKDIR="${TMP_CRD_DIR}/$NAME" SOURCE="https://github.com/k8up-io/k8up/releases/download/k8up-${K8UP_VERSION}/k8up-crd.yaml" - exec_openapi + exec_openapi $API } handlers=(