From 71709c71cc213fa54c1b78f0986689f4cbd98297 Mon Sep 17 00:00:00 2001 From: Erlis Balla Date: Tue, 18 Jun 2024 08:40:34 +0200 Subject: [PATCH 1/2] fix(): remove unused module --- api/v1alpha1/webhook_suite_test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/api/v1alpha1/webhook_suite_test.go b/api/v1alpha1/webhook_suite_test.go index 3f002a2..7985228 100644 --- a/api/v1alpha1/webhook_suite_test.go +++ b/api/v1alpha1/webhook_suite_test.go @@ -30,7 +30,6 @@ import ( admissionv1beta1 "k8s.io/api/admission/v1" - admissionv1beta1 "k8s.io/api/admission/v1beta1" //+kubebuilder:scaffold:imports "k8s.io/apimachinery/pkg/runtime" ctrl "sigs.k8s.io/controller-runtime" From 960251c9f4f34acd3b5c1dc9e7d2d0710add074d Mon Sep 17 00:00:00 2001 From: Erlis Balla Date: Tue, 23 Jul 2024 11:37:56 +0200 Subject: [PATCH 2/2] fix(): fix broken automatically generated manifests --- ...hatcop.redhat.io_gcpauthengineconfigs.yaml | 2 +- config/rbac/role.yaml | 3 ++ config/webhook/manifests.yaml | 45 ++----------------- 3 files changed, 7 insertions(+), 43 deletions(-) diff --git a/config/crd/bases/redhatcop.redhat.io_gcpauthengineconfigs.yaml b/config/crd/bases/redhatcop.redhat.io_gcpauthengineconfigs.yaml index df9f098..86b1743 100644 --- a/config/crd/bases/redhatcop.redhat.io_gcpauthengineconfigs.yaml +++ b/config/crd/bases/redhatcop.redhat.io_gcpauthengineconfigs.yaml @@ -363,4 +363,4 @@ spec: served: true storage: true subresources: - status: {} \ No newline at end of file + status: {} diff --git a/config/rbac/role.yaml b/config/rbac/role.yaml index df6ba0c..a60dff4 100644 --- a/config/rbac/role.yaml +++ b/config/rbac/role.yaml @@ -287,6 +287,9 @@ rules: - get - patch - update +- apiGroups: + - redhatcop.redhat.io + resources: - githubsecretengineconfigs verbs: - create diff --git a/config/webhook/manifests.yaml b/config/webhook/manifests.yaml index 5a4c767..c41a50d 100644 --- a/config/webhook/manifests.yaml +++ b/config/webhook/manifests.yaml @@ -89,28 +89,9 @@ webhooks: service: name: webhook-service namespace: system - path: /mutate-redhatcop-redhat-io-v1alpha1-gcpauthengineconfig - failurePolicy: Fail - name: mgcpauthengineconfig.kb.io - rules: - - apiGroups: - - redhatcop.redhat.io - apiVersions: - - v1alpha1 - operations: - - CREATE - resources: - - gcpauthengineconfigs - sideEffects: None -- admissionReviewVersions: - - v1 - clientConfig: - service: - name: webhook-service - namespace: system - path: /mutate-redhatcop-redhat-io-v1alpha1-gcpauthenginerole + path: /mutate-redhatcop-redhat-io-v1alpha1-databasesecretengineconfig failurePolicy: Fail - name: mgcpauthenginerole.kb.io + name: mdatabasesecretengineconfig.kb.io rules: - apiGroups: - redhatcop.redhat.io @@ -119,7 +100,7 @@ webhooks: operations: - CREATE resources: - - gcpauthengineroles + - databasesecretengineconfigs sideEffects: None - admissionReviewVersions: - v1 @@ -198,26 +179,6 @@ webhooks: resources: - gcpauthengineroles sideEffects: None -- admissionReviewVersions: - - v1 - clientConfig: - service: - name: webhook-service - namespace: system - path: /mutate-redhatcop-redhat-io-v1alpha1-gcpauthengineconfig - failurePolicy: Fail - name: mgcpauthengineconfig.kb.io - rules: - - apiGroups: - - redhatcop.redhat.io - apiVersions: - - v1alpha1 - operations: - - CREATE - - UPDATE - resources: - - gcpauthengineconfigs - sideEffects: None - admissionReviewVersions: - v1 clientConfig: