File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ docker run \
25
25
-v " $( pwd) " :" $( pwd) " \
26
26
-ti \
27
27
--network host \
28
- docker.pkg.github.com/kubernetes-client/java/crd-model-gen:v1.0.0 \
28
+ docker.pkg.github.com/kubernetes-client/java/crd-model-gen:v1.0.1 \
29
29
/generate.sh \
30
30
-u https://github.com/jetstack/cert-manager/releases/download/v0.16.1/cert-manager.crds.yaml \
31
31
-n io.cert-manager \
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ kubectl get crd -o name \
60
60
echo " $L failed publishing openapi schema because it's attached non-structral-schema condition."
61
61
exit 1
62
62
fi
63
- if [[ $( kubectl get $L -o jsonpath=' {.preserveUnknownFields}' ) == " true" ]]; then
63
+ if [[ $( kubectl get $L -o jsonpath=' {.spec. preserveUnknownFields}' ) == " true" ]]; then
64
64
echo " $L failed publishing openapi schema because it explicitly disabled unknown fields pruning."
65
65
exit 1
66
66
fi
Original file line number Diff line number Diff line change 16
16
# This script generates the model classes from a released version of cert-manager CRDs
17
17
# under src/main/java/io/cert/manager/models.
18
18
19
- # build the crdgen image which includes all the toolchains needed for code generation
20
- docker build .. -t crdgen
21
-
22
19
# a crdgen container is run in a way that:
23
20
# 1. it has access to the docker daemon on the host so that it is able to create sibling container on the host
24
21
# 2. it runs on the host network so that it is able to communicate with the KinD cluster it launched on the host
@@ -28,7 +25,8 @@ docker run \
28
25
-v " $( pwd) " :" $( pwd) " \
29
26
-ti \
30
27
--network host \
31
- crdgen /generate.sh \
28
+ docker.pkg.github.com/kubernetes-client/java/crd-model-gen:v1.0.1 \
29
+ /generate.sh \
32
30
-u https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.38.1/example/prometheus-operator-crd/monitoring.coreos.com_alertmanagers.yaml \
33
31
-u https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.38.1/example/prometheus-operator-crd/monitoring.coreos.com_thanosrulers.yaml \
34
32
-u https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/v0.38.1/example/prometheus-operator-crd/monitoring.coreos.com_podmonitors.yaml \
You can’t perform that action at this time.
0 commit comments