mirror of
https://github.com/argoproj/argo-cd.git
synced 2026-04-04 07:48:48 +02:00
19 lines
568 B
Bash
Executable File
19 lines
568 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -o errexit
|
|
set -o nounset
|
|
set -o pipefail
|
|
|
|
PROJECT_ROOT=$(cd $(dirname "$0")/.. ; pwd)
|
|
CODEGEN_PKG=${PROJECT_ROOT}/vendor/k8s.io/kube-openapi
|
|
VERSION="v1alpha1"
|
|
|
|
go run ${CODEGEN_PKG}/cmd/openapi-gen/openapi-gen.go \
|
|
--go-header-file ${PROJECT_ROOT}/hack/custom-boilerplate.go.txt \
|
|
--input-dirs github.com/argoproj/argo-cd/pkg/apis/application/${VERSION} \
|
|
--output-package github.com/argoproj/argo-cd/pkg/apis/application/${VERSION} \
|
|
--report-filename pkg/apis/api-rules/violation_exceptions.list \
|
|
$@
|
|
|
|
go run ./hack/gen-crd-spec/main.go
|