Skip to content

Commit 17bd8a8

Browse files
author
CloudNativePG Automated Updates
committed
chore: sync API
1 parent d4a1b16 commit 17bd8a8

3 files changed

Lines changed: 24 additions & 6 deletions

File tree

pkg/api/v1/clusterimagecatalog_types.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package v1
1919
import 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

pkg/api/v1/doc.go

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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

pkg/api/v1/groupversion_info.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ See the License for the specific language governing permissions and
1414
limitations 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
2017
package v1
2118

2219
import (
@@ -51,11 +48,11 @@ const (
5148
)
5249

5350
var (
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

0 commit comments

Comments
 (0)