Skip to content

Commit 6445a4c

Browse files
authored
fix: version in update script
Signed-off-by: Shane Utt <[email protected]>
1 parent d6f8023 commit 6445a4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

update.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ echo "// WARNING! generated file do not edit" > src/apis/standard/mod.rs
4949
for API in "${STANDARD_APIS[@]}"
5050
do
5151
echo "generating standard api ${API}"
52-
curl -sSL "https://raw.githubusercontent.com/kubernetes-sigs/gateway-api/main/config/crd/standard/gateway.networking.k8s.io_${API}.yaml?ref=${VERSION}" | kopium -Af - > src/apis/standard/${API}.rs
52+
curl -sSL "https://raw.githubusercontent.com/kubernetes-sigs/gateway-api/${VERSION}/config/crd/standard/gateway.networking.k8s.io_${API}.yaml" | kopium -Af - > src/apis/standard/${API}.rs
5353
echo "pub mod ${API};" >> src/apis/standard/mod.rs
5454
done
5555

@@ -58,6 +58,6 @@ echo "// WARNING! generated file do not edit" > src/apis/experimental/mod.rs
5858
for API in "${EXPERIMENTAL_APIS[@]}"
5959
do
6060
echo "generating experimental api $API"
61-
curl -sSL "https://raw.githubusercontent.com/kubernetes-sigs/gateway-api/main/config/crd/experimental/gateway.networking.k8s.io_${API}.yaml?ref=${VERSION}" | kopium -Af - > src/apis/experimental/${API}.rs
61+
curl -sSL "https://raw.githubusercontent.com/kubernetes-sigs/gateway-api/${VERSION}/config/crd/experimental/gateway.networking.k8s.io_${API}.yaml" | kopium -Af - > src/apis/experimental/${API}.rs
6262
echo "pub mod ${API};" >> src/apis/experimental/mod.rs
6363
done

0 commit comments

Comments
 (0)