chore: ad option to generate single crds #81

Merged
xoxys merged 2 commits from generate-parts into main 2024-04-02 12:57:13 +00:00
Showing only changes of commit bdae118386 - Show all commits

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