Skip to content

Commit

Permalink
Adding scope: Namespaced to all CRDs. (#137)
Browse files Browse the repository at this point in the history
Signed-off-by: Houston Putman <[email protected]>
  • Loading branch information
HoustonPutman committed Sep 24, 2020
1 parent 1f8f43b commit 418890b
Show file tree
Hide file tree
Showing 9 changed files with 12 additions and 6 deletions.
2 changes: 2 additions & 0 deletions api/v1beta1/solrbackup_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,8 @@ func (sb *SolrBackup) PersistenceJobName() string {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:scope=Namespaced

// SolrBackup is the Schema for the solrbackups API
// +kubebuilder:categories=all
// +kubebuilder:subresource:status
Expand Down
1 change: 1 addition & 0 deletions api/v1beta1/solrcloud_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -747,6 +747,7 @@ type ZookeeperConnectionInfo struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:scope=Namespaced

// SolrCloud is the Schema for the solrclouds API
// +kubebuilder:resource:shortName=solr
Expand Down
1 change: 1 addition & 0 deletions api/v1beta1/solrcollection_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ type SolrCollectionStatus struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:scope=Namespaced

// SolrCollection is the Schema for the solrcollections API
type SolrCollection struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1beta1/solrcollectionalias_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ type SolrCollectionAliasStatus struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:scope=Namespaced

// SolrCollectionAlias is the Schema for the solrcollectionaliases API
type SolrCollectionAlias struct {
Expand Down
1 change: 1 addition & 0 deletions api/v1beta1/solrprometheusexporter_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ type SolrPrometheusExporterStatus struct {
}

// +kubebuilder:object:root=true
// +kubebuilder:resource:scope=Namespaced

// SolrPrometheusExporter is the Schema for the solrprometheusexporters API
// +kubebuilder:resource:shortName=solrmetrics
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/solr.bloomberg.com_solrbackups.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ spec:
listKind: SolrBackupList
plural: solrbackups
singular: solrbackup
scope: ""
scope: Namespaced
subresources:
status: {}
validation:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
listKind: SolrCollectionAliasList
plural: solrcollectionaliases
singular: solrcollectionalias
scope: ""
scope: Namespaced
validation:
openAPIV3Schema:
description: SolrCollectionAlias is the Schema for the solrcollectionaliases
Expand Down
2 changes: 1 addition & 1 deletion config/crd/bases/solr.bloomberg.com_solrcollections.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ spec:
listKind: SolrCollectionList
plural: solrcollections
singular: solrcollection
scope: ""
scope: Namespaced
validation:
openAPIV3Schema:
description: SolrCollection is the Schema for the solrcollections API
Expand Down
6 changes: 3 additions & 3 deletions helm/solr-operator/crds/crds.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ spec:
listKind: SolrBackupList
plural: solrbackups
singular: solrbackup
scope: ""
scope: Namespaced
subresources:
status: {}
validation:
Expand Down Expand Up @@ -9160,7 +9160,7 @@ spec:
listKind: SolrCollectionAliasList
plural: solrcollectionaliases
singular: solrcollectionalias
scope: ""
scope: Namespaced
validation:
openAPIV3Schema:
description: SolrCollectionAlias is the Schema for the solrcollectionaliases
Expand Down Expand Up @@ -9241,7 +9241,7 @@ spec:
listKind: SolrCollectionList
plural: solrcollections
singular: solrcollection
scope: ""
scope: Namespaced
validation:
openAPIV3Schema:
description: SolrCollection is the Schema for the solrcollections API
Expand Down

0 comments on commit 418890b

Please sign in to comment.