-
Notifications
You must be signed in to change notification settings - Fork 123
/
register.go
52 lines (42 loc) · 1.89 KB
/
register.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*
Copyright 2022 Upbound Inc.
*/
package v1beta1
import (
"reflect"
"k8s.io/apimachinery/pkg/runtime/schema"
"sigs.k8s.io/controller-runtime/pkg/scheme"
)
// Package type metadata.
const (
Group = "aws.upbound.io"
Version = "v1beta1"
)
var (
// SchemeGroupVersion is group version used to register these objects
SchemeGroupVersion = schema.GroupVersion{Group: Group, Version: Version}
// SchemeBuilder is used to add go types to the GroupVersionKind scheme
SchemeBuilder = &scheme.Builder{GroupVersion: SchemeGroupVersion}
)
// ProviderConfig type metadata.
var (
ProviderConfigKind = reflect.TypeOf(ProviderConfig{}).Name()
ProviderConfigGroupKind = schema.GroupKind{Group: Group, Kind: ProviderConfigKind}.String()
ProviderConfigKindAPIVersion = ProviderConfigKind + "." + SchemeGroupVersion.String()
ProviderConfigGroupVersionKind = SchemeGroupVersion.WithKind(ProviderConfigKind)
)
// ProviderConfigUsage type metadata.
var (
ProviderConfigUsageKind = reflect.TypeOf(ProviderConfigUsage{}).Name()
ProviderConfigUsageGroupKind = schema.GroupKind{Group: Group, Kind: ProviderConfigUsageKind}.String()
ProviderConfigUsageKindAPIVersion = ProviderConfigUsageKind + "." + SchemeGroupVersion.String()
ProviderConfigUsageGroupVersionKind = SchemeGroupVersion.WithKind(ProviderConfigUsageKind)
ProviderConfigUsageListKind = reflect.TypeOf(ProviderConfigUsageList{}).Name()
ProviderConfigUsageListGroupKind = schema.GroupKind{Group: Group, Kind: ProviderConfigUsageListKind}.String()
ProviderConfigUsageListKindAPIVersion = ProviderConfigUsageListKind + "." + SchemeGroupVersion.String()
ProviderConfigUsageListGroupVersionKind = SchemeGroupVersion.WithKind(ProviderConfigUsageListKind)
)
func init() {
SchemeBuilder.Register(&ProviderConfig{}, &ProviderConfigList{})
SchemeBuilder.Register(&ProviderConfigUsage{}, &ProviderConfigUsageList{})
}