pass api url as arg
All checks were successful
ci/woodpecker/pr/build-package Pipeline was successful

This commit is contained in:
Robert Kaussow 2024-04-02 14:53:12 +02:00
parent 5cd274e430
commit bdae118386
Signed by: xoxys
GPG Key ID: 4E692A2EAECC03C0

View File

@ -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=(