Skip to content

Commit c215d77

Browse files
authored
Merge pull request #2670 from rebhuroy/feature_2619
Update generate.sh
2 parents dc1b352 + 7bae762 commit c215d77

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

client-java-contrib/generate.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ kind create cluster
4949
# install CRDs to the KinD cluster and dump the swagger spec
5050
for url in "${CRD_URLS[@]}"; do
5151
if [[ ! -z $url ]]; then
52-
kubectl apply -f "$url"
52+
kubectl create -f "$url"
5353
fi
5454
done
5555

@@ -82,4 +82,4 @@ bash java-crd-cmd.sh -n "${KUBERNETES_CRD_GROUP_PREFIX}" -p "${PACKAGE_NAME}" -l
8282
# only keep the model classes
8383
mkdir -p "${OUTPUT_DIR}/src/main/java/${PACKAGE_NAME//.//}"
8484
cp -r "${OUTPUT_DIR}/gen/src/main/java/${PACKAGE_NAME//.//}/models" "${OUTPUT_DIR}/src/main/java/${PACKAGE_NAME//.//}"
85-
rm -rf "${OUTPUT_DIR}/gen"
85+
rm -rf "${OUTPUT_DIR}/gen"

0 commit comments

Comments
 (0)