Skip to content

Commit

Permalink
pin crd-gen to v1.0.6 to make CI pass
Browse files Browse the repository at this point in the history
  • Loading branch information
yue9944882 committed Oct 14, 2021
1 parent c40a928 commit 58cf34f
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
10 changes: 7 additions & 3 deletions client-java-contrib/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@ FROM docker:stable

# install git, bash, kind, kubectl and clone the kubernetes-client/gen code base
RUN apk add --no-cache git bash && \
wget -O /usr/bin/kind https://kind.sigs.k8s.io/dl/v0.8.1/kind-linux-amd64 && \
wget -O /usr/bin/kind https://kind.sigs.k8s.io/dl/v0.11.1/kind-linux-amd64 && \
chmod +x /usr/bin/kind && \
wget -O /usr/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.18.0/bin/linux/amd64/kubectl && \
wget -O /usr/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/v1.20.2/bin/linux/amd64/kubectl && \
chmod +x /usr/bin/kubectl && \
git clone https://github.com/kubernetes-client/gen.git
git clone https://github.com/kubernetes-client/gen.git && \
cd gen && \
git checkout 729332ad08f0f4d98983b7beb027e2f657236ef9
# 729332ad08f0f4d98983b7beb027e2f657236ef9 is the last commit using python2 interpreter


COPY Dockerfile.gen gen/openapi/openapi-generator/Dockerfile
COPY generate.sh generate.sh
Expand Down
2 changes: 1 addition & 1 deletion client-java-contrib/admissionreview/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ docker run --rm \
-v $LOCAL_MANIFEST_FILE:$LOCAL_MANIFEST_FILE \
-v /var/run/docker.sock:/var/run/docker.sock \
-v $PWD:$PWD \
-it ghcr.io/yue9944882/crd-model-gen:v1.0.3 \
-it ghcr.io/yue9944882/crd-model-gen:v1.0.6 \
sh -c "source /gen/openapi/java-crd-cmd.sh -n v1 -p io.kubernetes.client.admissionreview -l 2 -o $PWD/gen < $LOCAL_MANIFEST_FILE"
2 changes: 1 addition & 1 deletion client-java-contrib/cert-manager/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# under src/main/java/io/cert/manager/models.

DEFAULT_IMAGE_NAME=docker.pkg.github.com/kubernetes-client/java/crd-model-gen
DEFAULT_IMAGE_TAG=v1.0.3
DEFAULT_IMAGE_TAG=v1.0.6
IMAGE_NAME=${IMAGE_NAME:=$DEFAULT_IMAGE_NAME}
IMAGE_TAG=${IMAGE_TAG:=$DEFAULT_IMAGE_TAG}

Expand Down
2 changes: 1 addition & 1 deletion client-java-contrib/prometheus-operator/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# under src/main/java/io/cert/manager/models.

DEFAULT_IMAGE_NAME=docker.pkg.github.com/kubernetes-client/java/crd-model-gen
DEFAULT_IMAGE_TAG=v1.0.3
DEFAULT_IMAGE_TAG=v1.0.6
IMAGE_NAME=${IMAGE_NAME:=$DEFAULT_IMAGE_NAME}
IMAGE_TAG=${IMAGE_TAG:=$DEFAULT_IMAGE_TAG}

Expand Down

0 comments on commit 58cf34f

Please sign in to comment.