File tree Expand file tree Collapse file tree 3 files changed +9
-211
lines changed Expand file tree Collapse file tree 3 files changed +9
-211
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ if ! which mvn > /dev/null 2>&1; then
27
27
fi
28
28
29
29
SCRIPT_ROOT=$( dirname " ${BASH_SOURCE} " )
30
- CLIENT_ROOT=" ${SCRIPT_ROOT} /.."
30
+ CLIENT_ROOT=" ${SCRIPT_ROOT} /../kubernetes "
31
31
32
32
pushd " ${SCRIPT_ROOT} " > /dev/null
33
33
SCRIPT_ROOT=` pwd`
@@ -37,7 +37,7 @@ pushd "${CLIENT_ROOT}" > /dev/null
37
37
CLIENT_ROOT=` pwd`
38
38
popd > /dev/null
39
39
40
- PACKAGE_NAME=${PACKAGE_NAME:- k8sclient }
40
+ PACKAGE_NAME=${PACKAGE_NAME:- client }
41
41
42
42
if [[ ! -n ${SWAGGER_FILE-} ]]; then
43
43
if [[ ! -n ${KUBE_ROOT-} ]]; then
@@ -59,9 +59,9 @@ echo "--- Generating client ..."
59
59
mvn -f " ${SCRIPT_ROOT} /pom.xml" clean generate-sources -Dgenerator.spec.path=" ${SCRIPT_ROOT} /swagger.json" -Dgenerator.output.path=" ${CLIENT_ROOT} " -Dgenerator.package.name=${PACKAGE_NAME}
60
60
61
61
echo " --- Patching generated code..."
62
- cat " ${CLIENT_ROOT} /README.prefix" " ${CLIENT_ROOT} /README.md" > " ${CLIENT_ROOT} /README.new"
63
- rm " ${CLIENT_ROOT} /README.md"
64
- mv " ${CLIENT_ROOT} /README.new" " ${CLIENT_ROOT} /README.md"
65
- cp " ${SCRIPT_ROOT} /LICENSE" " ${CLIENT_ROOT} "
66
-
62
+ find " ${CLIENT_ROOT} /test" -type f -name \* .py -exec sed -i ' s/\bclient/kubernetes.client/g' {} +
63
+ find " kubernetes/" -type f -name \* .md -exec sed -i ' s/\bclient/kubernetes.client/g' {} +
64
+ find " kubernetes/" -type f -name \* .md -exec sed -i ' s/kubernetes.client-python/client-python/g' {} +
65
+ rm " ${CLIENT_ROOT} /LICENSE"
67
66
echo " ---Done."
67
+
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ if ! which virtualenv > /dev/null 2>&1; then
27
27
fi
28
28
29
29
SCRIPT_ROOT=$( dirname " ${BASH_SOURCE} " )
30
- CLIENT_ROOT=" ${SCRIPT_ROOT} /.."
30
+ CLIENT_ROOT=" ${SCRIPT_ROOT} /../kubernetes "
31
31
32
32
pushd " ${SCRIPT_ROOT} " > /dev/null
33
33
SCRIPT_ROOT=` pwd`
@@ -46,7 +46,7 @@ SAVEIFS=$IFS
46
46
trap " IFS=$SAVEIFS " EXIT SIGINT
47
47
IFS=,
48
48
49
- SOURCES=" ${CLIENT_ROOT} /k8sutil /*.py,${SCRIPT_ROOT} /*.py,${CLIENT_ROOT} /examples/*.py"
49
+ SOURCES=" ${CLIENT_ROOT} /util /*.py,${SCRIPT_ROOT} /*.py,${CLIENT_ROOT} /examples/*.py"
50
50
51
51
echo " --- Updating tools"
52
52
pip install --upgrade pep8
You can’t perform that action at this time.
0 commit comments