We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8549466 + 5c754a3 commit 9552d12Copy full SHA for 9552d12
plugins/addon/type.go
@@ -75,6 +75,7 @@ type {{.Resource.Kind}}Status struct {
75
}
76
77
// +kubebuilder:object:root=true
78
+{{ if not .Resource.Namespaced }} // +kubebuilder:resource:scope=Cluster {{ end }}
79
80
// {{.Resource.Kind}} is the Schema for the {{ .Resource.Resource }} API
81
type {{.Resource.Kind}} struct {
@@ -108,6 +109,7 @@ func (o *{{.Resource.Kind}}) SetCommonStatus(s addonv1alpha1.CommonStatus) {
108
109
110
111
112
113
114
// {{.Resource.Kind}}List contains a list of {{.Resource.Kind}}
115
type {{.Resource.Kind}}List struct {
0 commit comments