Created
July 30, 2021 09:54
-
-
Save mmontes11/799e0caa75e70267373d8e7df57cdecb to your computer and use it in GitHub Desktop.
CRD code generation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| set -o errexit | |
| set -o nounset | |
| set -o pipefail | |
| SCRIPT_ROOT=$(dirname "${BASH_SOURCE[0]}")/.. | |
| CODEGEN_PKG=${CODEGEN_PKG:-$( | |
| cd "${SCRIPT_ROOT}" | |
| ls -d -1 ./vendor/k8s.io/code-generator 2>/dev/null || echo ../code-generator | |
| )} | |
| GO_PKG="github.com/mmontes11/echoperator/pkg" | |
| bash "${CODEGEN_PKG}"/generate-groups.sh "all" \ | |
| ${GO_PKG}/echo/v1alpha1/apis \ | |
| ${GO_PKG} \ | |
| echo:v1alpha1 \ | |
| --go-header-file "${SCRIPT_ROOT}"/codegen/boilerplate.go.txt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment