diff --git a/plugins/addon/type.go b/plugins/addon/type.go index 84d1ecb33d3..94d3ef5e459 100644 --- a/plugins/addon/type.go +++ b/plugins/addon/type.go @@ -75,6 +75,7 @@ type {{.Resource.Kind}}Status struct { } // +kubebuilder:object:root=true +{{ if not .Resource.Namespaced }} // +kubebuilder:resource:scope=Cluster {{ end }} // {{.Resource.Kind}} is the Schema for the {{ .Resource.Resource }} API type {{.Resource.Kind}} struct { @@ -108,6 +109,7 @@ func (o *{{.Resource.Kind}}) SetCommonStatus(s addonv1alpha1.CommonStatus) { } // +kubebuilder:object:root=true +{{ if not .Resource.Namespaced }} // +kubebuilder:resource:scope=Cluster {{ end }} // {{.Resource.Kind}}List contains a list of {{.Resource.Kind}} type {{.Resource.Kind}}List struct {