Skip to content

Commit

Permalink
Re-generate the client with a current generator
Browse files Browse the repository at this point in the history
This brings a number of improvements and will make it easier to
track forthcoming changes in 1.27.

Signed-off-by: Stephen Kitt <[email protected]>
  • Loading branch information
skitt authored and novad03 committed Mar 21, 2023
1 parent dda4868 commit 1adf7e8
Show file tree
Hide file tree
Showing 11 changed files with 145 additions and 23 deletions.
41 changes: 32 additions & 9 deletions pkg/client/clientset/versioned/clientset.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion pkg/client/clientset/versioned/fake/clientset_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

79 changes: 75 additions & 4 deletions pkg/client/informers/externalversions/factory.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 9 additions & 2 deletions scripts/codegen
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,23 @@ GOPATH="$(go env GOPATH)"
K8S_IO_DIR="${GOPATH:-$HOME/go}/src/k8s.io"
CODEGEN_SCRIPT_DIR="${K8S_IO_DIR}/code-generator"
CODEGEN_SCRIPT="${CODEGEN_SCRIPT_DIR}/generate-groups.sh"
CODEGEN_RELEASE_TAG=kubernetes-1.19.10
GENGO_BOILERPLATE_DIR="${K8S_IO_DIR}/gengo"
GENGO_BOILERPLATE="${GENGO_BOILERPLATE_DIR}/boilerplate/boilerplate.go.txt"
CODEGEN_RELEASE_TAG=kubernetes-1.26.2

if [ ! -f "$CODEGEN_SCRIPT" ]; then
echo "$CODEGEN_SCRIPT does not exist - downloading..."
(
git clone --branch $CODEGEN_RELEASE_TAG https://github.com/kubernetes/code-generator "${CODEGEN_SCRIPT_DIR}"
cd "${CODEGEN_SCRIPT_DIR}"
go mod vendor
echo "Successsfully checked out release tag $CODEGEN_RELEASE_TAG"
echo "Successfully checked out release tag $CODEGEN_RELEASE_TAG"
)
fi

if [ ! -f "$GENGO_BOILERPLATE" ]; then
echo "$GENGO_BOILERPLATE does not exist - downloading..."
git clone https://github.com/kubernetes/gengo "${GENGO_BOILERPLATE_DIR}"
fi

"${CODEGEN_SCRIPT}" all github.com/submariner-io/submariner/pkg/client github.com/submariner-io/submariner/pkg/apis submariner.io:v1

0 comments on commit 1adf7e8

Please sign in to comment.