Skip to content

Commit edfdeed

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

File tree

5 files changed

+13
-115
lines changed

5 files changed

+13
-115
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ lint: licensecheck go-lint oas-lint
7070
#? crd: Generates CRD using controller-gen
7171
.PHONY: crd
7272
crd: controller-gen-install
73-
${CONTROLLER_GEN} crd:crdVersions=v1 paths="./endpoint/..." output:crd:stdout > docs/contributing/crd-source/crd-manifest.yaml
73+
${CONTROLLER_GEN} crd:crdVersions=v1 paths="./endpoint/..." output:crd:stdout > docs/sources/crd/crd-manifest.yaml
7474

7575
#? test: The verify target runs tasks similar to the CI tasks, but without code coverage
7676
.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)