@@ -24,24 +24,7 @@ import (
2424 "sigs.k8s.io/controller-runtime/pkg/scheme"
2525)
2626
27- var (
28- // GroupVersion is group version used to register these objects
29- GroupVersion = schema.GroupVersion {Group : "postgresql.cnpg.io" , Version : "v1" }
30-
31- // ClusterGVK is the triple to reach Cluster resources in k8s
32- ClusterGVK = schema.GroupVersionResource {
33- Group : GroupVersion .Group ,
34- Version : GroupVersion .Version ,
35- Resource : "clusters" ,
36- }
37-
38- // PoolerGVK is the triple to reach Pooler resources in k8s
39- PoolerGVK = schema.GroupVersionResource {
40- Group : GroupVersion .Group ,
41- Version : GroupVersion .Version ,
42- Resource : "poolers" ,
43- }
44-
27+ const (
4528 // ClusterKind is the kind name of Clusters
4629 ClusterKind = "Cluster"
4730
5740 // ClusterImageCatalogKind is the kind name of the cluster-wide image catalogs
5841 ClusterImageCatalogKind = "ClusterImageCatalog"
5942
43+ // PublicationKind is the kind name of publications
44+ PublicationKind = "Publication"
45+
46+ // SubscriptionKind is the kind name of subscriptions
47+ SubscriptionKind = "Subscription"
48+
49+ // DatabaseKind is the kind name of databases
50+ DatabaseKind = "Database"
51+ )
52+
53+ var (
54+ // GroupVersion is group version used to register these objects
55+ GroupVersion = schema.GroupVersion {Group : "postgresql.cnpg.io" , Version : "v1" }
56+
6057 // SchemeBuilder is used to add go types to the GroupVersionKind scheme
6158 SchemeBuilder = & scheme.Builder {GroupVersion : GroupVersion }
6259
0 commit comments