-
Notifications
You must be signed in to change notification settings - Fork 4.7k
/
install.go
57 lines (50 loc) · 1.71 KB
/
install.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
53
54
55
56
57
package legacy
import (
"k8s.io/apimachinery/pkg/runtime"
"k8s.io/apimachinery/pkg/runtime/schema"
)
var (
GroupName = ""
GroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1"}
InternalGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
)
// DEPRECATED
func Kind(kind string) schema.GroupKind {
return schema.GroupKind{Group: GroupName, Kind: kind}
}
// DEPRECATED
func GroupVersionKind(kind string) schema.GroupVersionKind {
return schema.GroupVersionKind{Group: GroupName, Version: GroupVersion.Version, Kind: kind}
}
// DEPRECATED
func Resource(resource string) schema.GroupResource {
return schema.GroupResource{Group: GroupName, Resource: resource}
}
func InstallInternalLegacyAll(scheme *runtime.Scheme) {
InstallInternalLegacyApps(scheme)
InstallInternalLegacyAuthorization(scheme)
InstallInternalLegacyBuild(scheme)
InstallInternalLegacyImage(scheme)
InstallInternalLegacyNetwork(scheme)
InstallInternalLegacyOAuth(scheme)
InstallInternalLegacyProject(scheme)
InstallInternalLegacyQuota(scheme)
InstallInternalLegacyRoute(scheme)
InstallInternalLegacySecurity(scheme)
InstallInternalLegacyTemplate(scheme)
InstallInternalLegacyUser(scheme)
}
func InstallExternalLegacyAll(scheme *runtime.Scheme) {
InstallExternalLegacyApps(scheme)
InstallExternalLegacyAuthorization(scheme)
InstallExternalLegacyBuild(scheme)
InstallExternalLegacyImage(scheme)
InstallExternalLegacyNetwork(scheme)
InstallExternalLegacyOAuth(scheme)
InstallExternalLegacyProject(scheme)
InstallExternalLegacyQuota(scheme)
InstallExternalLegacyRoute(scheme)
InstallExternalLegacySecurity(scheme)
InstallExternalLegacyTemplate(scheme)
InstallExternalLegacyUser(scheme)
}