Skip to content

Commit

Permalink
Merge pull request kubernetes-sigs#1395 from justinsb/support_cluster…
Browse files Browse the repository at this point in the history
…_scoped_addons

declarative pattern: Support cluster scoped types
  • Loading branch information
k8s-ci-robot authored Feb 29, 2020
2 parents 8549466 + 5c754a3 commit 9552d12
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions plugins/addon/type.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 9552d12

Please sign in to comment.