From b3e4bf2ad5048b5b2b05e5c106b616eead5b7871 Mon Sep 17 00:00:00 2001 From: Georg Molau Date: Tue, 27 Feb 2024 22:15:20 +0100 Subject: [PATCH] Remove `genclient:Namespaced` tag This tag isn't used by controller-tools, only `nonNamespaced` is. Context: https://cloud-native.slack.com/archives/CLAJ40HV3/p1708794732147909 Tested by running `make generate` and verifying that there is no diff. Signed-off-by: Georg Molau [georg.molau@gmail.com](mailto:georg.molau@gmail.com) Signed-off-by: Georg Molau --- api/v1/receiver_types.go | 1 - api/v1beta1/alert_types.go | 1 - api/v1beta1/provider_types.go | 1 - api/v1beta1/receiver_types.go | 1 - api/v1beta2/alert_types.go | 1 - api/v1beta2/provider_types.go | 1 - api/v1beta2/receiver_types.go | 1 - api/v1beta3/alert_types.go | 1 - api/v1beta3/provider_types.go | 1 - 9 files changed, 9 deletions(-) diff --git a/api/v1/receiver_types.go b/api/v1/receiver_types.go index de3e72c1e..afd7bda4e 100644 --- a/api/v1/receiver_types.go +++ b/api/v1/receiver_types.go @@ -122,7 +122,6 @@ func (in *Receiver) GetInterval() time.Duration { } // +genclient -// +genclient:Namespaced // +kubebuilder:storageversion // +kubebuilder:object:root=true // +kubebuilder:subresource:status diff --git a/api/v1beta1/alert_types.go b/api/v1beta1/alert_types.go index 97bca9a99..cc27aad2f 100644 --- a/api/v1beta1/alert_types.go +++ b/api/v1beta1/alert_types.go @@ -67,7 +67,6 @@ type AlertStatus struct { } // +genclient -// +genclient:Namespaced // +kubebuilder:object:root=true // +kubebuilder:subresource:status // +kubebuilder:deprecatedversion:warning="v1beta1 Alert is deprecated, upgrade to v1beta3" diff --git a/api/v1beta1/provider_types.go b/api/v1beta1/provider_types.go index 7cece20fb..b0cc5c650 100644 --- a/api/v1beta1/provider_types.go +++ b/api/v1beta1/provider_types.go @@ -110,7 +110,6 @@ type ProviderStatus struct { } // +genclient -// +genclient:Namespaced // +kubebuilder:object:root=true // +kubebuilder:subresource:status // +kubebuilder:deprecatedversion:warning="v1beta1 Provider is deprecated, upgrade to v1beta3" diff --git a/api/v1beta1/receiver_types.go b/api/v1beta1/receiver_types.go index 50fe28040..1a282dc9f 100644 --- a/api/v1beta1/receiver_types.go +++ b/api/v1beta1/receiver_types.go @@ -97,7 +97,6 @@ func (in *Receiver) SetConditions(conditions []metav1.Condition) { } // +genclient -// +genclient:Namespaced // +kubebuilder:object:root=true // +kubebuilder:subresource:status // +kubebuilder:deprecatedversion:warning="v1beta1 Receiver is deprecated, upgrade to v1" diff --git a/api/v1beta2/alert_types.go b/api/v1beta2/alert_types.go index f270837c3..8ac97e880 100644 --- a/api/v1beta2/alert_types.go +++ b/api/v1beta2/alert_types.go @@ -88,7 +88,6 @@ type AlertStatus struct { } // +genclient -// +genclient:Namespaced // +kubebuilder:object:root=true // +kubebuilder:subresource:status // +kubebuilder:deprecatedversion:warning="v1beta2 Alert is deprecated, upgrade to v1beta3" diff --git a/api/v1beta2/provider_types.go b/api/v1beta2/provider_types.go index 10604b831..d87b16235 100644 --- a/api/v1beta2/provider_types.go +++ b/api/v1beta2/provider_types.go @@ -131,7 +131,6 @@ type ProviderStatus struct { } // +genclient -// +genclient:Namespaced // +kubebuilder:object:root=true // +kubebuilder:subresource:status // +kubebuilder:deprecatedversion:warning="v1beta2 Provider is deprecated, upgrade to v1beta3" diff --git a/api/v1beta2/receiver_types.go b/api/v1beta2/receiver_types.go index ad801ae5e..3fbd07b00 100644 --- a/api/v1beta2/receiver_types.go +++ b/api/v1beta2/receiver_types.go @@ -129,7 +129,6 @@ func (in *Receiver) GetInterval() time.Duration { } // +genclient -// +genclient:Namespaced // +kubebuilder:object:root=true // +kubebuilder:subresource:status // +kubebuilder:deprecatedversion:warning="v1beta2 Receiver is deprecated, upgrade to v1" diff --git a/api/v1beta3/alert_types.go b/api/v1beta3/alert_types.go index b3d4b691f..722d98999 100644 --- a/api/v1beta3/alert_types.go +++ b/api/v1beta3/alert_types.go @@ -75,7 +75,6 @@ type AlertSpec struct { } // +genclient -// +genclient:Namespaced // +kubebuilder:storageversion // +kubebuilder:object:root=true // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description="" diff --git a/api/v1beta3/provider_types.go b/api/v1beta3/provider_types.go index 23e4acead..89f279440 100644 --- a/api/v1beta3/provider_types.go +++ b/api/v1beta3/provider_types.go @@ -122,7 +122,6 @@ type ProviderSpec struct { } // +genclient -// +genclient:Namespaced // +kubebuilder:storageversion // +kubebuilder:object:root=true // +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp",description=""