Skip to content

Commit 1bf796d

Browse files
committed
Workaround certificates issue in generating typescript model
Signed-off-by: Angel Misevski <[email protected]>
1 parent 505b25d commit 1bf796d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

build/typescript-model/generate.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,18 @@ WORK_DIR=${SCRIPT_DIR}/workdir
66
echo "[INFO] Using the following folder to store all build files ${SCRIPT_DIR}/workdir"
77
mkdir -p $WORK_DIR
88

9-
GEN_REVISION=5c6d90b260fd94af32157f304f971778c899b5e2
9+
GEN_REVISION=a3aef4de7a1d5dab72021aa282fffd8bc8a022ca
1010

1111
k8s_client_gen() {
1212
[ ! -d $WORK_DIR/gen ] && git clone https://github.com/kubernetes-client/gen.git $WORK_DIR/gen || echo "kubernetes-client/gen is already cloned into $WORK_DIR/gen"
1313

1414
echo "[INFO] Checking out gen to ${GEN_REVISION}"
1515
pushd "$WORK_DIR/gen"
16-
git checkout ${GEN_REVISION}
16+
git reset --hard ${GEN_REVISION}
1717
popd
18+
# Workaround for issue https://github.com/nodesource/distributions/issues/1266 -- new certs are needed.
19+
# This should be removed when updating GEN_REVISION
20+
sed -i '/ENTRYPOINT/i RUN apt-get -y install ca-certificates' $WORK_DIR/gen/openapi/openapi-generator/Dockerfile
1821

1922
echo "[INFO] preparing config files for gen"
2023
# Remove the contents of custom objects spec so that we aren't bundling any extra objects

0 commit comments

Comments
 (0)