Skip to content

Commit

Permalink
update the codegen script and regenerate apis
Browse files Browse the repository at this point in the history
  • Loading branch information
sugangli committed May 10, 2022
1 parent 814697b commit 8648305
Show file tree
Hide file tree
Showing 177 changed files with 355 additions and 264 deletions.
7 changes: 0 additions & 7 deletions hack/update-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,13 @@ ${CODEGEN_PKG}/generate-groups.sh \
--go-header-file ${SCRIPT_ROOT}/hack/boilerplate.go.txt

echo "Generating openapi for BackendConfig v1beta1"
go install ${OPENAPI_PKG}/cmd/openapi-gen
${GOPATH}/bin/openapi-gen \
--output-file-base zz_generated.openapi \
--input-dirs k8s.io/ingress-gce/pkg/apis/backendconfig/v1beta1\
--output-package k8s.io/ingress-gce/pkg/apis/backendconfig/v1beta1 \
--go-header-file ${SCRIPT_ROOT}/hack/boilerplate.go.txt

echo "Generating openapi for BackendConfig v1"
go install ${OPENAPI_PKG}/cmd/openapi-gen
${GOPATH}/bin/openapi-gen \
--output-file-base zz_generated.openapi \
--input-dirs k8s.io/ingress-gce/pkg/apis/backendconfig/v1\
Expand All @@ -58,7 +56,6 @@ ${CODEGEN_PKG}/generate-groups.sh \
--go-header-file ${SCRIPT_ROOT}/hack/boilerplate.go.txt

echo "Generating openapi for FrontendConfig v1beta1"
go install ${OPENAPI_PKG}/cmd/openapi-gen
${GOPATH}/bin/openapi-gen \
--output-file-base zz_generated.openapi \
--input-dirs k8s.io/ingress-gce/pkg/apis/frontendconfig/v1beta1\
Expand All @@ -73,7 +70,6 @@ ${CODEGEN_PKG}/generate-groups.sh \
--go-header-file ${SCRIPT_ROOT}/hack/boilerplate.go.txt

echo "Generating openapi for ServiceNetworkEndpointGroup v1beta1"
go install ${OPENAPI_PKG}/cmd/openapi-gen
${GOPATH}/bin/openapi-gen \
--output-file-base zz_generated.openapi \
--input-dirs k8s.io/ingress-gce/pkg/apis/svcneg/v1beta1\
Expand All @@ -88,15 +84,13 @@ ${CODEGEN_PKG}/generate-groups.sh \
--go-header-file ${SCRIPT_ROOT}/hack/boilerplate.go.txt

echo "Generating openapi for ServiceAttachment v1beta1"
go install ${OPENAPI_PKG}/cmd/openapi-gen
${GOPATH}/bin/openapi-gen \
--output-file-base zz_generated.openapi \
--input-dirs k8s.io/ingress-gce/pkg/apis/serviceattachment/v1beta1\
--output-package k8s.io/ingress-gce/pkg/apis/serviceattachment/v1beta1 \
--go-header-file ${SCRIPT_ROOT}/hack/boilerplate.go.txt

echo "Generating openapi for ServiceAttachment v1"
go install ${OPENAPI_PKG}/cmd/openapi-gen
${GOPATH}/bin/openapi-gen \
--output-file-base zz_generated.openapi \
--input-dirs k8s.io/ingress-gce/pkg/apis/serviceattachment/v1\
Expand All @@ -119,7 +113,6 @@ ${CODEGEN_PKG}/generate-groups.sh \
--plural-exceptions=GCPIngressParams:GCPIngressParams

echo "Generating openapi for GCPIngressParams v1beta1"
go install ${OPENAPI_PKG}/cmd/openapi-gen
${GOPATH}/bin/openapi-gen \
--output-file-base zz_generated.openapi \
--input-dirs k8s.io/ingress-gce/pkg/apis/ingparams/v1beta1\
Expand Down
1 change: 0 additions & 1 deletion hack/update-experimental-codegen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ ${CODEGEN_PKG}/generate-groups.sh \
--go-header-file ${SCRIPT_ROOT}/hack/boilerplate.go.txt

echo "Generating openapi for Workload v1alpha1"
go install ${OPENAPI_PKG}/cmd/openapi-gen
${GOPATH}/bin/openapi-gen \
--output-file-base zz_generated.openapi \
--input-dirs k8s.io/ingress-gce/pkg/experimental/apis/workload/v1alpha1 \
Expand Down
2 changes: 1 addition & 1 deletion pkg/apis/backendconfig/v1/zz_generated.deepcopy.go

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

40 changes: 25 additions & 15 deletions pkg/apis/backendconfig/v1/zz_generated.openapi.go

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

2 changes: 1 addition & 1 deletion pkg/apis/backendconfig/v1beta1/zz_generated.deepcopy.go

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

40 changes: 25 additions & 15 deletions pkg/apis/backendconfig/v1beta1/zz_generated.openapi.go

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

2 changes: 1 addition & 1 deletion pkg/apis/frontendconfig/v1beta1/zz_generated.deepcopy.go

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

18 changes: 11 additions & 7 deletions pkg/apis/frontendconfig/v1beta1/zz_generated.openapi.go

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

2 changes: 1 addition & 1 deletion pkg/apis/ingparams/v1beta1/zz_generated.deepcopy.go

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

Loading

0 comments on commit 8648305

Please sign in to comment.