Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gateway-api: bump version to 1.0 and add a script for update. #226

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gateway-api/kcl.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "gateway-api"
edition = "0.0.1"
version = "0.1.0"
version = "0.2.0"

[dependencies]
k8s = "1.28"
43 changes: 43 additions & 0 deletions gateway-api/update.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
#!/bin/bash

set -o errexit
set -o nounset
set -eoux pipefail

VERSION="v1.1.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I planned to use version 1.0 for this PR, but I obviously forgot to change it here. (:


rm -rf gateway-api
git clone https://github.com/kubernetes-sigs/gateway-api.git -b ${VERSION} --depth=1

for API in gateway-api/config/crd/standard/*
do
if [ "$(basename "${API}")" = "kustomization.yaml" ];then
continue
fi
kcl-openapi generate model --crd -f $API --skip-validation -t standard
done

for API in gateway-api/config/crd/experimental/*
do
if [ "$(basename "${API}")" = "kustomization.yaml" ];then
continue
fi
kcl-openapi generate model --crd -f $API --skip-validation -t experimental
done

rm -rf standard/models/k8s
rm -rf experimental/models/k8s

mkdir -p v1 v1alpha2 v1beta1

mv standard/models/*_v1_*.k v1/ || true
mv standard/models/*_v1alpha2_*.k v1alpha2/ || true
mv standard/models/*_v1beta1_*.k v1beta1/ || true

mv experimental/models/*_v1_*.k v1/ || true
mv experimental/models/*_v1alpha2_*.k v1alpha2/ || true
mv experimental/models/*_v1beta1_*.k v1beta1/ || true

rm -rf standard
rm -rf experimental
rm -rf gateway-api
Loading
Loading