File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ package v1
1919import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
2020
2121// +genclient
22+ // +genclient:nonNamespaced
2223// +kubebuilder:object:root=true
2324// +kubebuilder:resource:scope=Cluster
2425// +kubebuilder:storageversion
Original file line number Diff line number Diff line change 1+ /*
2+ Copyright The CloudNativePG Contributors
3+
4+ Licensed under the Apache License, Version 2.0 (the "License");
5+ you may not use this file except in compliance with the License.
6+ You may obtain a copy of the License at
7+
8+ http://www.apache.org/licenses/LICENSE-2.0
9+
10+ Unless required by applicable law or agreed to in writing, software
11+ distributed under the License is distributed on an "AS IS" BASIS,
12+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+ See the License for the specific language governing permissions and
14+ limitations under the License.
15+ */
16+
17+ // Package v1 contains API Schema definitions for the postgresql v1 API group
18+ // +kubebuilder:object:generate=true
19+ // +groupName=postgresql.cnpg.io
20+ package v1
Original file line number Diff line number Diff line change @@ -14,9 +14,6 @@ See the License for the specific language governing permissions and
1414limitations under the License.
1515*/
1616
17- // Package v1 contains API Schema definitions for the postgresql v1 API group
18- // +kubebuilder:object:generate=true
19- // +groupName=postgresql.cnpg.io
2017package v1
2118
2219import (
@@ -51,11 +48,11 @@ const (
5148)
5249
5350var (
54- // GroupVersion is group version used to register these objects
55- GroupVersion = schema.GroupVersion {Group : "postgresql.cnpg.io" , Version : "v1" }
51+ // SchemeGroupVersion is group version used to register these objects
52+ SchemeGroupVersion = schema.GroupVersion {Group : "postgresql.cnpg.io" , Version : "v1" }
5653
5754 // SchemeBuilder is used to add go types to the GroupVersionKind scheme
58- SchemeBuilder = & scheme.Builder {GroupVersion : GroupVersion }
55+ SchemeBuilder = & scheme.Builder {GroupVersion : SchemeGroupVersion }
5956
6057 // AddToScheme adds the types in this group-version to the given scheme.
6158 AddToScheme = SchemeBuilder .AddToScheme
You can’t perform that action at this time.
0 commit comments