-
Notifications
You must be signed in to change notification settings - Fork 344
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Juraci Paixão Kröhling <[email protected]>
- Loading branch information
1 parent
dc0b118
commit 2c80e47
Showing
13 changed files
with
866 additions
and
503 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
|
||
OPENAPIGEN=openapi-gen | ||
command -v ${OPENAPIGEN} > /dev/null | ||
if [ $? != 0 ]; then | ||
if [ -n ${GOPATH} ]; then | ||
OPENAPIGEN="${GOPATH}/bin/openapi-gen" | ||
fi | ||
fi | ||
|
||
# generate the CRD(s) | ||
operator-sdk generate crds | ||
RT=$? | ||
if [ ${RT} != 0 ]; then | ||
echo "Failed to generate CRDs." | ||
exit ${RT} | ||
fi | ||
|
||
# revert the APIs that are not managed by us | ||
for revert in deploy/crds/kafka.strimzi.io_kafkas_crd.yaml deploy/crds/kafka.strimzi.io_kafkausers_crd.yaml; do | ||
if [ -f "${revert}" ]; then | ||
rm "${revert}" | ||
fi | ||
done | ||
|
||
# generate the schema validation (openapi) stubs | ||
${OPENAPIGEN} --logtostderr=true -o "" -i ./pkg/apis/jaegertracing/v1 -O zz_generated.openapi -p ./pkg/apis/jaegertracing/v1 -h /dev/null -r "-" | ||
RT=$? | ||
if [ ${RT} != 0 ]; then | ||
echo "Failed to generate the openapi (schema validation) stubs." | ||
exit ${RT} | ||
fi | ||
|
||
# generate the Kubernetes stubs | ||
operator-sdk generate k8s | ||
RT=$? | ||
if [ ${RT} != 0 ]; then | ||
echo "Failed to generate the Kubernetes stubs." | ||
exit ${RT} | ||
fi |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains 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
Oops, something went wrong.