Skip to content

Commit

Permalink
feat: codegen script (#487)
Browse files Browse the repository at this point in the history
  • Loading branch information
lingsamuel authored May 25, 2021
1 parent 1d7b143 commit 36de069
Show file tree
Hide file tree
Showing 58 changed files with 934 additions and 725 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ coverage.txt
test/e2e/coverage.txt
apisix-ingress-controller
.actions/openwhisk-utilities

.generated
2 changes: 1 addition & 1 deletion .licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ header:
- '.github/PULL_REQUEST_TEMPLATE'
- 'pkg/kube/apisix/client/**'
- '**/zz_generated.deepcopy.go'

- 'utils/generate-groups.sh'
comment: on-failure
17 changes: 17 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -199,3 +199,20 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

=======================================================================
Apache APISIX Ingress Controller Subcomponents:

The Apache Ingress Controller project contains subcomponents with separate copyright
notices and license terms. Your use of the source code for the these
subcomponents is subject to the terms and conditions of the following
licenses.

========================================================================
Apache 2.0 licenses
========================================================================

The following components are provided under the Apache License. See project link for details.
The text of each license is the standard Apache 2.0 license.

files from kubernetes/code-generator: https://github.com/kubernetes/code-generator/ Apache 2.0
9 changes: 9 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,12 @@ release-src:
mv $(RELEASE_SRC).tgz release/$(RELEASE_SRC).tgz
mv $(RELEASE_SRC).tgz.asc release/$(RELEASE_SRC).tgz.asc
mv $(RELEASE_SRC).tgz.sha512 release/$(RELEASE_SRC).tgz.sha512

.PHONY: gen-tools
gen-tools:
go mod download
go install k8s.io/code-generator/cmd/{client-gen,lister-gen,informer-gen,deepcopy-gen}

.PHONY: codegen
codegen: gen-tools
./utils/update-codegen.sh
7 changes: 3 additions & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ require (
github.com/stretchr/testify v1.6.1
go.uber.org/multierr v1.3.0
go.uber.org/zap v1.13.0
golang.org/x/mod v0.3.0 // indirect
golang.org/x/net v0.0.0-20201224014010-6772e930b67b
golang.org/x/tools v0.0.0-20200616133436-c1934b75d054 // indirect
gopkg.in/yaml.v2 v2.3.0
golang.org/x/net v0.0.0-20210224082022-3d97a244fca7
gopkg.in/yaml.v2 v2.4.0
k8s.io/api v0.20.2
k8s.io/apimachinery v0.20.2
k8s.io/client-go v0.20.2
k8s.io/code-generator v0.21.1
)
52 changes: 52 additions & 0 deletions go.sum

Large diffs are not rendered by default.

29 changes: 14 additions & 15 deletions pkg/kube/apisix/apis/config/v1/zz_generated.deepcopy.go

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

29 changes: 14 additions & 15 deletions pkg/kube/apisix/apis/config/v2alpha1/zz_generated.deepcopy.go

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

29 changes: 14 additions & 15 deletions pkg/kube/apisix/client/clientset/versioned/clientset.go

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

29 changes: 14 additions & 15 deletions pkg/kube/apisix/client/clientset/versioned/doc.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.

29 changes: 14 additions & 15 deletions pkg/kube/apisix/client/clientset/versioned/fake/doc.go

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

29 changes: 14 additions & 15 deletions pkg/kube/apisix/client/clientset/versioned/fake/register.go

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

29 changes: 14 additions & 15 deletions pkg/kube/apisix/client/clientset/versioned/scheme/doc.go

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

29 changes: 14 additions & 15 deletions pkg/kube/apisix/client/clientset/versioned/scheme/register.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.

Loading

0 comments on commit 36de069

Please sign in to comment.