Skip to content

Commit 6eb3b53

Browse files
committed
chore(crd): update controller-gen to v0.17.2
1 parent 7ae0405 commit 6eb3b53

File tree

5 files changed

+17
-114
lines changed

5 files changed

+17
-114
lines changed

Makefile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,13 @@ lint: licensecheck go-lint oas-lint
6969

7070
#? crd: Generates CRD using controller-gen
7171
.PHONY: crd
72+
<<<<<<< HEAD
7273
crd: controller-gen-install
7374
${CONTROLLER_GEN} crd:crdVersions=v1 paths="./endpoint/..." output:crd:stdout > docs/contributing/crd-source/crd-manifest.yaml
75+
=======
76+
crd: controller-gen
77+
${CONTROLLER_GEN} crd:crdVersions=v1 paths="./endpoint/..." output:crd:stdout > docs/sources/crd/crd-manifest.yaml
78+
>>>>>>> 7faaaae5 (chore(crd): update controller-gen to v0.17.2)
7479

7580
#? test: The verify target runs tasks similar to the CI tasks, but without code coverage
7681
.PHONY: test

docs/sources/crd/crd-manifest.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ kind: CustomResourceDefinition
44
metadata:
55
annotations:
66
api-approved.kubernetes.io: https://github.com/kubernetes-sigs/external-dns/pull/2007
7-
controller-gen.kubebuilder.io/version: v0.15.0
7+
controller-gen.kubebuilder.io/version: v0.17.2
88
name: dnsendpoints.externaldns.k8s.io
99
spec:
1010
group: externaldns.k8s.io

endpoint/endpoint.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ type EndpointKey struct {
204204
}
205205

206206
// Endpoint is a high-level way of a connection between a service and an IP
207+
// +kubebuilder:object:generate=true
207208
type Endpoint struct {
208209
// The hostname of the DNS record
209210
DNSName string `json:"dnsName,omitempty"`
@@ -337,6 +338,7 @@ func FilterEndpointsByOwnerID(ownerID string, eps []*Endpoint) []*Endpoint {
337338
}
338339

339340
// DNSEndpointSpec defines the desired state of DNSEndpoint
341+
// +kubebuilder:object:generate=true
340342
type DNSEndpointSpec struct {
341343
Endpoints []*Endpoint `json:"endpoints,omitempty"`
342344
}

endpoint/zz_generated.deepcopy.go

Lines changed: 8 additions & 112 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

scripts/install-tools.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
# limitations under the License.
1616

1717
# renovate: datasource=github-releases depName=kubernetes-sigs/controller-tools
18-
CONTROLLER_TOOLS_GENERATOR_VERSION=v0.15.0
18+
CONTROLLER_TOOLS_GENERATOR_VERSION=v0.17.2
1919
# renovate: datasource=github-releases depName=golangci/golangci-lint
2020
GOLANG_CI_LINTER_VERSION=v2.0.2
2121

0 commit comments

Comments
 (0)