forked from openshift/client-go
-
Notifications
You must be signed in to change notification settings - Fork 0
/
utils.go
33 lines (29 loc) · 1.51 KB
/
utils.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
// Code generated by applyconfiguration-gen. DO NOT EDIT.
package applyconfigurations
import (
v1beta1 "github.com/openshift/api/helm/v1beta1"
helmv1beta1 "github.com/openshift/client-go/helm/applyconfigurations/helm/v1beta1"
schema "k8s.io/apimachinery/pkg/runtime/schema"
)
// ForKind returns an apply configuration type for the given GroupVersionKind, or nil if no
// apply configuration type exists for the given GroupVersionKind.
func ForKind(kind schema.GroupVersionKind) interface{} {
switch kind {
// Group=helm.openshift.io, Version=v1beta1
case v1beta1.SchemeGroupVersion.WithKind("ConnectionConfig"):
return &helmv1beta1.ConnectionConfigApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("ConnectionConfigNamespaceScoped"):
return &helmv1beta1.ConnectionConfigNamespaceScopedApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("HelmChartRepository"):
return &helmv1beta1.HelmChartRepositoryApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("HelmChartRepositorySpec"):
return &helmv1beta1.HelmChartRepositorySpecApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("HelmChartRepositoryStatus"):
return &helmv1beta1.HelmChartRepositoryStatusApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("ProjectHelmChartRepository"):
return &helmv1beta1.ProjectHelmChartRepositoryApplyConfiguration{}
case v1beta1.SchemeGroupVersion.WithKind("ProjectHelmChartRepositorySpec"):
return &helmv1beta1.ProjectHelmChartRepositorySpecApplyConfiguration{}
}
return nil
}