We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8ff17b commit 1ee19f1Copy full SHA for 1ee19f1
hack/update-crd.sh
@@ -18,7 +18,15 @@
18
set -o nounset
19
set -o pipefail
20
21
-## find or download controller-gen
+SCRIPT_ROOT=$(unset CDPATH && cd $(dirname "${BASH_SOURCE[0]}")/.. && pwd)
22
+
23
+if [ ${SCRIPT_ROOT}/client != $(pwd) ]
24
+then
25
+ echo "NOTE: This script should be run from client directory only";
26
+ exit 1;
27
+fi
28
29
+# find or download controller-gen
30
CONTROLLER_GEN=$(which controller-gen)
31
32
if [ "$CONTROLLER_GEN" = "" ]
@@ -37,7 +45,6 @@ then
37
45
exit 1;
38
46
fi
39
47
40
-SCRIPT_ROOT=$(unset CDPATH && cd $(dirname "${BASH_SOURCE[0]}")/.. && pwd)
41
48
$CONTROLLER_GEN crd:trivialVersions=true,preserveUnknownFields=false paths=${SCRIPT_ROOT}/client/apis/volumesnapshot/v1beta1
42
49
43
50
# To use your own boilerplate text use:
0 commit comments