From 3cbea8536e5ee211c1de7ae175ed8d912e4b7d7c Mon Sep 17 00:00:00 2001 From: Jordan Olshevski Date: Mon, 20 Nov 2023 13:04:33 -0600 Subject: [PATCH] Try older crd version --- .../v1/config/crd/enotest.azure.io_testresources.yaml | 5 +++-- internal/controllers/reconciliation/fixtures/v1/types.go | 1 + .../reconciliation/fixtures/v1/zz_generated.deepcopy.go | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/internal/controllers/reconciliation/fixtures/v1/config/crd/enotest.azure.io_testresources.yaml b/internal/controllers/reconciliation/fixtures/v1/config/crd/enotest.azure.io_testresources.yaml index 228b7c60..4ec1cd42 100644 --- a/internal/controllers/reconciliation/fixtures/v1/config/crd/enotest.azure.io_testresources.yaml +++ b/internal/controllers/reconciliation/fixtures/v1/config/crd/enotest.azure.io_testresources.yaml @@ -1,9 +1,10 @@ --- -apiVersion: apiextensions.k8s.io/v1 +apiVersion: apiextensions.k8s.io/v1beta1 kind: CustomResourceDefinition metadata: annotations: - controller-gen.kubebuilder.io/version: v0.13.0 + controller-gen.kubebuilder.io/version: v0.11.3 + creationTimestamp: null name: testresources.enotest.azure.io spec: group: enotest.azure.io diff --git a/internal/controllers/reconciliation/fixtures/v1/types.go b/internal/controllers/reconciliation/fixtures/v1/types.go index f1362289..37d8021d 100644 --- a/internal/controllers/reconciliation/fixtures/v1/types.go +++ b/internal/controllers/reconciliation/fixtures/v1/types.go @@ -8,6 +8,7 @@ import ( "sigs.k8s.io/controller-runtime/pkg/scheme" ) +// TODO: Sed //go:generate controller-gen object crd rbac:roleName=resourceprovider paths=./... var ( diff --git a/internal/controllers/reconciliation/fixtures/v1/zz_generated.deepcopy.go b/internal/controllers/reconciliation/fixtures/v1/zz_generated.deepcopy.go index d666b0de..62308d7c 100644 --- a/internal/controllers/reconciliation/fixtures/v1/zz_generated.deepcopy.go +++ b/internal/controllers/reconciliation/fixtures/v1/zz_generated.deepcopy.go @@ -1,4 +1,5 @@ //go:build !ignore_autogenerated +// +build !ignore_autogenerated // Code generated by controller-gen. DO NOT EDIT.