This repository was archived by the owner on Jul 30, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +304
-4
lines changed Expand file tree Collapse file tree 5 files changed +304
-4
lines changed Original file line number Diff line number Diff line change @@ -116,11 +116,23 @@ generate: $(CONTROLLER_GEN) ## Generate code
116
116
117
117
.PHONY : generate-deepcopy
118
118
generate-deepcopy : $(CONTROLLER_GEN ) # # Generate deepcopy files
119
- $(CONTROLLER_GEN ) object:headerFile=./hack/boilerplate/boilerplate.generatego.txt paths=./api/...
119
+ $(CONTROLLER_GEN ) \
120
+ object:headerFile=./hack/boilerplate/boilerplate.generatego.txt \
121
+ paths=./api/... \
122
+ crd:preserveUnknownFields=false \
123
+ output:crd:dir=./config/crd/bases
120
124
121
125
.PHONY : generate-manifests
122
126
generate-manifests : $(CONTROLLER_GEN ) # # Generate manifests e.g. CRD, RBAC etc
123
- $(CONTROLLER_GEN ) $(CRD_OPTIONS ) rbac:roleName=manager-role webhook paths=" ./..." output:crd:dir=$(CRD_ROOT ) output:webhook:dir=$(WEBHOOK_ROOT ) output:rbac:dir=$(RBAC_ROOT )
127
+ $(CONTROLLER_GEN ) \
128
+ $(CRD_OPTIONS ) \
129
+ rbac:roleName=manager-role \
130
+ webhook \
131
+ paths=" ./..." \
132
+ crd:preserveUnknownFields=false \
133
+ output:crd:dir=$(CRD_ROOT ) \
134
+ output:webhook:dir=$(WEBHOOK_ROOT ) \
135
+ output:rbac:dir=$(RBAC_ROOT )
124
136
125
137
.PHONY : modules
126
138
modules : # # Runs go mod to ensure modules are up to date.
Original file line number Diff line number Diff line change 3
3
apiVersion : apiextensions.k8s.io/v1beta1
4
4
kind : CustomResourceDefinition
5
5
metadata :
6
+ annotations :
7
+ controller-gen.kubebuilder.io/version : v0.2.5
6
8
creationTimestamp : null
7
9
name : kubeadmconfigs.bootstrap.cluster.x-k8s.io
8
10
spec :
14
16
listKind : KubeadmConfigList
15
17
plural : kubeadmconfigs
16
18
singular : kubeadmconfig
19
+ preserveUnknownFields : false
17
20
scope : Namespaced
18
21
subresources :
19
22
status : {}
Original file line number Diff line number Diff line change 3
3
apiVersion : apiextensions.k8s.io/v1beta1
4
4
kind : CustomResourceDefinition
5
5
metadata :
6
+ annotations :
7
+ controller-gen.kubebuilder.io/version : v0.2.5
6
8
creationTimestamp : null
7
9
name : kubeadmconfigtemplates.bootstrap.cluster.x-k8s.io
8
10
spec :
14
16
listKind : KubeadmConfigTemplateList
15
17
plural : kubeadmconfigtemplates
16
18
singular : kubeadmconfigtemplate
19
+ preserveUnknownFields : false
17
20
scope : Namespaced
18
21
validation :
19
22
openAPIV3Schema :
Original file line number Diff line number Diff line change 5
5
require (
6
6
github.com/golangci/golangci-lint v1.18.0
7
7
sigs.k8s.io/cluster-api/hack/tools v0.0.0-20190926205936-6fc621a1c6af
8
- sigs.k8s.io/controller-tools v0.2.1
8
+ sigs.k8s.io/controller-tools v0.2.5
9
9
)
You can’t perform that action at this time.
0 commit comments