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 +302
-5
lines changed Expand file tree Collapse file tree 5 files changed +302
-5
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ ARCH ?= amd64
44
44
ALL_ARCH = amd64 arm arm64 ppc64le s390x
45
45
46
46
# Produce CRDs that work back to Kubernetes 1.11 (no version conversion)
47
- CRD_OPTIONS ?= "crd:trivialVersions=true"
47
+ CRD_OPTIONS ?= "crd:trivialVersions=true, preserveUnknownFields=false "
48
48
49
49
TOOLS_DIR := hack/tools
50
50
CONTROLLER_GEN_BIN := bin/controller-gen
@@ -116,11 +116,20 @@ 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/...
120
122
121
123
.PHONY : generate-manifests
122
124
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 )
125
+ $(CONTROLLER_GEN ) \
126
+ $(CRD_OPTIONS ) \
127
+ rbac:roleName=manager-role \
128
+ webhook \
129
+ paths=" ./..." \
130
+ output:crd:dir=$(CRD_ROOT ) \
131
+ output:webhook:dir=$(WEBHOOK_ROOT ) \
132
+ output:rbac:dir=$(RBAC_ROOT )
124
133
125
134
.PHONY : modules
126
135
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