mirror of
https://github.com/rancher/types.git
synced 2025-09-17 07:19:17 +00:00
Add generated code
This commit is contained in:
143
io.cattle.cluster/v1/zz_generated_cluster_controller.go
Normal file
143
io.cattle.cluster/v1/zz_generated_cluster_controller.go
Normal file
@@ -0,0 +1,143 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"sync"
|
||||
|
||||
"context"
|
||||
|
||||
"github.com/rancher/norman/clientbase"
|
||||
"github.com/rancher/norman/controller"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
"k8s.io/apimachinery/pkg/watch"
|
||||
"k8s.io/client-go/rest"
|
||||
"k8s.io/client-go/tools/cache"
|
||||
)
|
||||
|
||||
var (
|
||||
ClusterGroupVersionKind = schema.GroupVersionKind{
|
||||
Version: "v1",
|
||||
Group: "io.cattle.cluster",
|
||||
Kind: "Cluster",
|
||||
}
|
||||
ClusterResource = metav1.APIResource{
|
||||
Name: "clusters",
|
||||
SingularName: "cluster",
|
||||
Namespaced: false,
|
||||
Kind: ClusterGroupVersionKind.Kind,
|
||||
}
|
||||
)
|
||||
|
||||
type ClusterHandlerFunc func(key string, obj *Cluster) error
|
||||
|
||||
type ClusterController interface {
|
||||
Informer() cache.SharedIndexInformer
|
||||
AddHandler(handler ClusterHandlerFunc)
|
||||
Enqueue(namespace, name string)
|
||||
Start(threadiness int, ctx context.Context) error
|
||||
}
|
||||
|
||||
type ClusterInterface interface {
|
||||
Create(*Cluster) (*Cluster, error)
|
||||
Get(name string, opts metav1.GetOptions) (*Cluster, error)
|
||||
Update(*Cluster) (*Cluster, error)
|
||||
Delete(name string, options *metav1.DeleteOptions) error
|
||||
List(opts metav1.ListOptions) (*ClusterList, error)
|
||||
Watch(opts metav1.ListOptions) (watch.Interface, error)
|
||||
DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Controller() (ClusterController, error)
|
||||
}
|
||||
|
||||
type clusterController struct {
|
||||
controller.GenericController
|
||||
}
|
||||
|
||||
func (c *clusterController) AddHandler(handler ClusterHandlerFunc) {
|
||||
c.GenericController.AddHandler(func(key string) error {
|
||||
obj, exists, err := c.Informer().GetStore().GetByKey(key)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if !exists {
|
||||
return handler(key, nil)
|
||||
}
|
||||
return handler(key, obj.(*Cluster))
|
||||
})
|
||||
}
|
||||
|
||||
type clusterFactory struct {
|
||||
}
|
||||
|
||||
func (c clusterFactory) Object() runtime.Object {
|
||||
return &Cluster{}
|
||||
}
|
||||
|
||||
func (c clusterFactory) List() runtime.Object {
|
||||
return &ClusterList{}
|
||||
}
|
||||
|
||||
func NewClusterClient(namespace string, config rest.Config) (ClusterInterface, error) {
|
||||
objectClient, err := clientbase.NewObjectClient(namespace, config, &ClusterResource, ClusterGroupVersionKind, clusterFactory{})
|
||||
return &clusterClient{
|
||||
objectClient: objectClient,
|
||||
}, err
|
||||
}
|
||||
|
||||
func (s *clusterClient) Controller() (ClusterController, error) {
|
||||
s.Lock()
|
||||
defer s.Unlock()
|
||||
|
||||
if s.controller != nil {
|
||||
return s.controller, nil
|
||||
}
|
||||
|
||||
controller, err := controller.NewGenericController(ClusterGroupVersionKind.Kind+"Controller",
|
||||
s.objectClient)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
s.controller = &clusterController{
|
||||
GenericController: controller,
|
||||
}
|
||||
return s.controller, nil
|
||||
}
|
||||
|
||||
type clusterClient struct {
|
||||
sync.Mutex
|
||||
objectClient *clientbase.ObjectClient
|
||||
controller ClusterController
|
||||
}
|
||||
|
||||
func (s *clusterClient) Create(o *Cluster) (*Cluster, error) {
|
||||
obj, err := s.objectClient.Create(o)
|
||||
return obj.(*Cluster), err
|
||||
}
|
||||
|
||||
func (s *clusterClient) Get(name string, opts metav1.GetOptions) (*Cluster, error) {
|
||||
obj, err := s.objectClient.Get(name, opts)
|
||||
return obj.(*Cluster), err
|
||||
}
|
||||
|
||||
func (s *clusterClient) Update(o *Cluster) (*Cluster, error) {
|
||||
obj, err := s.objectClient.Update(o.Name, o)
|
||||
return obj.(*Cluster), err
|
||||
}
|
||||
|
||||
func (s *clusterClient) Delete(name string, options *metav1.DeleteOptions) error {
|
||||
return s.objectClient.Delete(name, options)
|
||||
}
|
||||
|
||||
func (s *clusterClient) List(opts metav1.ListOptions) (*ClusterList, error) {
|
||||
obj, err := s.objectClient.List(opts)
|
||||
return obj.(*ClusterList), err
|
||||
}
|
||||
|
||||
func (s *clusterClient) Watch(opts metav1.ListOptions) (watch.Interface, error) {
|
||||
return s.objectClient.Watch(opts)
|
||||
}
|
||||
|
||||
func (s *clusterClient) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
return s.objectClient.DeleteCollection(deleteOpts, listOpts)
|
||||
}
|
143
io.cattle.cluster/v1/zz_generated_cluster_node_controller.go
Normal file
143
io.cattle.cluster/v1/zz_generated_cluster_node_controller.go
Normal file
@@ -0,0 +1,143 @@
|
||||
package v1
|
||||
|
||||
import (
|
||||
"sync"
|
||||
|
||||
"context"
|
||||
|
||||
"github.com/rancher/norman/clientbase"
|
||||
"github.com/rancher/norman/controller"
|
||||
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
|
||||
"k8s.io/apimachinery/pkg/runtime"
|
||||
"k8s.io/apimachinery/pkg/runtime/schema"
|
||||
"k8s.io/apimachinery/pkg/watch"
|
||||
"k8s.io/client-go/rest"
|
||||
"k8s.io/client-go/tools/cache"
|
||||
)
|
||||
|
||||
var (
|
||||
ClusterNodeGroupVersionKind = schema.GroupVersionKind{
|
||||
Version: "v1",
|
||||
Group: "io.cattle.cluster",
|
||||
Kind: "ClusterNode",
|
||||
}
|
||||
ClusterNodeResource = metav1.APIResource{
|
||||
Name: "clusternodes",
|
||||
SingularName: "clusternode",
|
||||
Namespaced: false,
|
||||
Kind: ClusterNodeGroupVersionKind.Kind,
|
||||
}
|
||||
)
|
||||
|
||||
type ClusterNodeHandlerFunc func(key string, obj *ClusterNode) error
|
||||
|
||||
type ClusterNodeController interface {
|
||||
Informer() cache.SharedIndexInformer
|
||||
AddHandler(handler ClusterNodeHandlerFunc)
|
||||
Enqueue(namespace, name string)
|
||||
Start(threadiness int, ctx context.Context) error
|
||||
}
|
||||
|
||||
type ClusterNodeInterface interface {
|
||||
Create(*ClusterNode) (*ClusterNode, error)
|
||||
Get(name string, opts metav1.GetOptions) (*ClusterNode, error)
|
||||
Update(*ClusterNode) (*ClusterNode, error)
|
||||
Delete(name string, options *metav1.DeleteOptions) error
|
||||
List(opts metav1.ListOptions) (*ClusterNodeList, error)
|
||||
Watch(opts metav1.ListOptions) (watch.Interface, error)
|
||||
DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error
|
||||
Controller() (ClusterNodeController, error)
|
||||
}
|
||||
|
||||
type clusterNodeController struct {
|
||||
controller.GenericController
|
||||
}
|
||||
|
||||
func (c *clusterNodeController) AddHandler(handler ClusterNodeHandlerFunc) {
|
||||
c.GenericController.AddHandler(func(key string) error {
|
||||
obj, exists, err := c.Informer().GetStore().GetByKey(key)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if !exists {
|
||||
return handler(key, nil)
|
||||
}
|
||||
return handler(key, obj.(*ClusterNode))
|
||||
})
|
||||
}
|
||||
|
||||
type clusterNodeFactory struct {
|
||||
}
|
||||
|
||||
func (c clusterNodeFactory) Object() runtime.Object {
|
||||
return &ClusterNode{}
|
||||
}
|
||||
|
||||
func (c clusterNodeFactory) List() runtime.Object {
|
||||
return &ClusterNodeList{}
|
||||
}
|
||||
|
||||
func NewClusterNodeClient(namespace string, config rest.Config) (ClusterNodeInterface, error) {
|
||||
objectClient, err := clientbase.NewObjectClient(namespace, config, &ClusterNodeResource, ClusterNodeGroupVersionKind, clusterNodeFactory{})
|
||||
return &clusterNodeClient{
|
||||
objectClient: objectClient,
|
||||
}, err
|
||||
}
|
||||
|
||||
func (s *clusterNodeClient) Controller() (ClusterNodeController, error) {
|
||||
s.Lock()
|
||||
defer s.Unlock()
|
||||
|
||||
if s.controller != nil {
|
||||
return s.controller, nil
|
||||
}
|
||||
|
||||
controller, err := controller.NewGenericController(ClusterNodeGroupVersionKind.Kind+"Controller",
|
||||
s.objectClient)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
s.controller = &clusterNodeController{
|
||||
GenericController: controller,
|
||||
}
|
||||
return s.controller, nil
|
||||
}
|
||||
|
||||
type clusterNodeClient struct {
|
||||
sync.Mutex
|
||||
objectClient *clientbase.ObjectClient
|
||||
controller ClusterNodeController
|
||||
}
|
||||
|
||||
func (s *clusterNodeClient) Create(o *ClusterNode) (*ClusterNode, error) {
|
||||
obj, err := s.objectClient.Create(o)
|
||||
return obj.(*ClusterNode), err
|
||||
}
|
||||
|
||||
func (s *clusterNodeClient) Get(name string, opts metav1.GetOptions) (*ClusterNode, error) {
|
||||
obj, err := s.objectClient.Get(name, opts)
|
||||
return obj.(*ClusterNode), err
|
||||
}
|
||||
|
||||
func (s *clusterNodeClient) Update(o *ClusterNode) (*ClusterNode, error) {
|
||||
obj, err := s.objectClient.Update(o.Name, o)
|
||||
return obj.(*ClusterNode), err
|
||||
}
|
||||
|
||||
func (s *clusterNodeClient) Delete(name string, options *metav1.DeleteOptions) error {
|
||||
return s.objectClient.Delete(name, options)
|
||||
}
|
||||
|
||||
func (s *clusterNodeClient) List(opts metav1.ListOptions) (*ClusterNodeList, error) {
|
||||
obj, err := s.objectClient.List(opts)
|
||||
return obj.(*ClusterNodeList), err
|
||||
}
|
||||
|
||||
func (s *clusterNodeClient) Watch(opts metav1.ListOptions) (watch.Interface, error) {
|
||||
return s.objectClient.Watch(opts)
|
||||
}
|
||||
|
||||
func (s *clusterNodeClient) DeleteCollection(deleteOpts *metav1.DeleteOptions, listOpts metav1.ListOptions) error {
|
||||
return s.objectClient.DeleteCollection(deleteOpts, listOpts)
|
||||
}
|
563
io.cattle.cluster/v1/zz_generated_deepcopy.go
Normal file
563
io.cattle.cluster/v1/zz_generated_deepcopy.go
Normal file
@@ -0,0 +1,563 @@
|
||||
// +build !ignore_autogenerated
|
||||
|
||||
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
|
||||
|
||||
package v1
|
||||
|
||||
import (
|
||||
core_v1 "k8s.io/api/core/v1"
|
||||
conversion "k8s.io/apimachinery/pkg/conversion"
|
||||
runtime "k8s.io/apimachinery/pkg/runtime"
|
||||
reflect "reflect"
|
||||
)
|
||||
|
||||
func init() {
|
||||
SchemeBuilder.Register(RegisterDeepCopies)
|
||||
}
|
||||
|
||||
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public
|
||||
// to allow building arbitrary schemes.
|
||||
//
|
||||
// Deprecated: deepcopy registration will go away when static deepcopy is fully implemented.
|
||||
func RegisterDeepCopies(scheme *runtime.Scheme) error {
|
||||
return scheme.AddGeneratedDeepCopyFuncs(
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*AKSConfig).DeepCopyInto(out.(*AKSConfig))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&AKSConfig{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*Cluster).DeepCopyInto(out.(*Cluster))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&Cluster{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*ClusterComponentStatus).DeepCopyInto(out.(*ClusterComponentStatus))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&ClusterComponentStatus{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*ClusterCondition).DeepCopyInto(out.(*ClusterCondition))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&ClusterCondition{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*ClusterList).DeepCopyInto(out.(*ClusterList))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&ClusterList{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*ClusterNode).DeepCopyInto(out.(*ClusterNode))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&ClusterNode{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*ClusterNodeList).DeepCopyInto(out.(*ClusterNodeList))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&ClusterNodeList{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*ClusterSpec).DeepCopyInto(out.(*ClusterSpec))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&ClusterSpec{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*ClusterStatus).DeepCopyInto(out.(*ClusterStatus))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&ClusterStatus{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*ETCDService).DeepCopyInto(out.(*ETCDService))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&ETCDService{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*GKEConfig).DeepCopyInto(out.(*GKEConfig))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&GKEConfig{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*KubeAPIService).DeepCopyInto(out.(*KubeAPIService))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&KubeAPIService{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*KubeControllerService).DeepCopyInto(out.(*KubeControllerService))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&KubeControllerService{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*KubeletService).DeepCopyInto(out.(*KubeletService))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&KubeletService{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*KubeproxyService).DeepCopyInto(out.(*KubeproxyService))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&KubeproxyService{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*RKEConfig).DeepCopyInto(out.(*RKEConfig))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&RKEConfig{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*RKEConfigHost).DeepCopyInto(out.(*RKEConfigHost))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&RKEConfigHost{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*RKEConfigServices).DeepCopyInto(out.(*RKEConfigServices))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&RKEConfigServices{})},
|
||||
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
|
||||
in.(*SchedulerService).DeepCopyInto(out.(*SchedulerService))
|
||||
return nil
|
||||
}, InType: reflect.TypeOf(&SchedulerService{})},
|
||||
)
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *AKSConfig) DeepCopyInto(out *AKSConfig) {
|
||||
*out = *in
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AKSConfig.
|
||||
func (in *AKSConfig) DeepCopy() *AKSConfig {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(AKSConfig)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *Cluster) DeepCopyInto(out *Cluster) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
in.Spec.DeepCopyInto(&out.Spec)
|
||||
if in.Status != nil {
|
||||
in, out := &in.Status, &out.Status
|
||||
if *in == nil {
|
||||
*out = nil
|
||||
} else {
|
||||
*out = new(ClusterStatus)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.
|
||||
func (in *Cluster) DeepCopy() *Cluster {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(Cluster)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *Cluster) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ClusterComponentStatus) DeepCopyInto(out *ClusterComponentStatus) {
|
||||
*out = *in
|
||||
if in.Conditions != nil {
|
||||
in, out := &in.Conditions, &out.Conditions
|
||||
*out = make([]core_v1.ComponentCondition, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterComponentStatus.
|
||||
func (in *ClusterComponentStatus) DeepCopy() *ClusterComponentStatus {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ClusterComponentStatus)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ClusterCondition) DeepCopyInto(out *ClusterCondition) {
|
||||
*out = *in
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterCondition.
|
||||
func (in *ClusterCondition) DeepCopy() *ClusterCondition {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ClusterCondition)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ClusterList) DeepCopyInto(out *ClusterList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]Cluster, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList.
|
||||
func (in *ClusterList) DeepCopy() *ClusterList {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ClusterList)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ClusterList) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ClusterNode) DeepCopyInto(out *ClusterNode) {
|
||||
*out = *in
|
||||
in.Node.DeepCopyInto(&out.Node)
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterNode.
|
||||
func (in *ClusterNode) DeepCopy() *ClusterNode {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ClusterNode)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ClusterNode) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ClusterNodeList) DeepCopyInto(out *ClusterNodeList) {
|
||||
*out = *in
|
||||
out.TypeMeta = in.TypeMeta
|
||||
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
|
||||
if in.Items != nil {
|
||||
in, out := &in.Items, &out.Items
|
||||
*out = make([]ClusterNode, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterNodeList.
|
||||
func (in *ClusterNodeList) DeepCopy() *ClusterNodeList {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ClusterNodeList)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
|
||||
func (in *ClusterNodeList) DeepCopyObject() runtime.Object {
|
||||
if c := in.DeepCopy(); c != nil {
|
||||
return c
|
||||
} else {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ClusterSpec) DeepCopyInto(out *ClusterSpec) {
|
||||
*out = *in
|
||||
if in.GKEConfig != nil {
|
||||
in, out := &in.GKEConfig, &out.GKEConfig
|
||||
if *in == nil {
|
||||
*out = nil
|
||||
} else {
|
||||
*out = new(GKEConfig)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
}
|
||||
if in.AKSConfig != nil {
|
||||
in, out := &in.AKSConfig, &out.AKSConfig
|
||||
if *in == nil {
|
||||
*out = nil
|
||||
} else {
|
||||
*out = new(AKSConfig)
|
||||
**out = **in
|
||||
}
|
||||
}
|
||||
if in.RKEConfig != nil {
|
||||
in, out := &in.RKEConfig, &out.RKEConfig
|
||||
if *in == nil {
|
||||
*out = nil
|
||||
} else {
|
||||
*out = new(RKEConfig)
|
||||
(*in).DeepCopyInto(*out)
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec.
|
||||
func (in *ClusterSpec) DeepCopy() *ClusterSpec {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ClusterSpec)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ClusterStatus) DeepCopyInto(out *ClusterStatus) {
|
||||
*out = *in
|
||||
if in.Conditions != nil {
|
||||
in, out := &in.Conditions, &out.Conditions
|
||||
*out = make([]ClusterCondition, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
if in.ComponentStatuses != nil {
|
||||
in, out := &in.ComponentStatuses, &out.ComponentStatuses
|
||||
*out = make([]ClusterComponentStatus, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
if in.Capacity != nil {
|
||||
in, out := &in.Capacity, &out.Capacity
|
||||
*out = make(core_v1.ResourceList, len(*in))
|
||||
for key, val := range *in {
|
||||
(*out)[key] = val.DeepCopy()
|
||||
}
|
||||
}
|
||||
if in.Allocatable != nil {
|
||||
in, out := &in.Allocatable, &out.Allocatable
|
||||
*out = make(core_v1.ResourceList, len(*in))
|
||||
for key, val := range *in {
|
||||
(*out)[key] = val.DeepCopy()
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus.
|
||||
func (in *ClusterStatus) DeepCopy() *ClusterStatus {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ClusterStatus)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *ETCDService) DeepCopyInto(out *ETCDService) {
|
||||
*out = *in
|
||||
out.baseService = in.baseService
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ETCDService.
|
||||
func (in *ETCDService) DeepCopy() *ETCDService {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(ETCDService)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *GKEConfig) DeepCopyInto(out *GKEConfig) {
|
||||
*out = *in
|
||||
if in.Labels != nil {
|
||||
in, out := &in.Labels, &out.Labels
|
||||
*out = make(map[string]string, len(*in))
|
||||
for key, val := range *in {
|
||||
(*out)[key] = val
|
||||
}
|
||||
}
|
||||
out.UpdateConfig = in.UpdateConfig
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GKEConfig.
|
||||
func (in *GKEConfig) DeepCopy() *GKEConfig {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(GKEConfig)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *KubeAPIService) DeepCopyInto(out *KubeAPIService) {
|
||||
*out = *in
|
||||
out.baseService = in.baseService
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeAPIService.
|
||||
func (in *KubeAPIService) DeepCopy() *KubeAPIService {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(KubeAPIService)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *KubeControllerService) DeepCopyInto(out *KubeControllerService) {
|
||||
*out = *in
|
||||
out.baseService = in.baseService
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeControllerService.
|
||||
func (in *KubeControllerService) DeepCopy() *KubeControllerService {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(KubeControllerService)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *KubeletService) DeepCopyInto(out *KubeletService) {
|
||||
*out = *in
|
||||
out.baseService = in.baseService
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeletService.
|
||||
func (in *KubeletService) DeepCopy() *KubeletService {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(KubeletService)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *KubeproxyService) DeepCopyInto(out *KubeproxyService) {
|
||||
*out = *in
|
||||
out.baseService = in.baseService
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new KubeproxyService.
|
||||
func (in *KubeproxyService) DeepCopy() *KubeproxyService {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(KubeproxyService)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *RKEConfig) DeepCopyInto(out *RKEConfig) {
|
||||
*out = *in
|
||||
if in.Hosts != nil {
|
||||
in, out := &in.Hosts, &out.Hosts
|
||||
*out = make([]RKEConfigHost, len(*in))
|
||||
for i := range *in {
|
||||
(*in)[i].DeepCopyInto(&(*out)[i])
|
||||
}
|
||||
}
|
||||
out.Services = in.Services
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RKEConfig.
|
||||
func (in *RKEConfig) DeepCopy() *RKEConfig {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(RKEConfig)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *RKEConfigHost) DeepCopyInto(out *RKEConfigHost) {
|
||||
*out = *in
|
||||
if in.Role != nil {
|
||||
in, out := &in.Role, &out.Role
|
||||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RKEConfigHost.
|
||||
func (in *RKEConfigHost) DeepCopy() *RKEConfigHost {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(RKEConfigHost)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *RKEConfigServices) DeepCopyInto(out *RKEConfigServices) {
|
||||
*out = *in
|
||||
out.Etcd = in.Etcd
|
||||
out.KubeAPI = in.KubeAPI
|
||||
out.KubeController = in.KubeController
|
||||
out.Scheduler = in.Scheduler
|
||||
out.Kubelet = in.Kubelet
|
||||
out.Kubeproxy = in.Kubeproxy
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new RKEConfigServices.
|
||||
func (in *RKEConfigServices) DeepCopy() *RKEConfigServices {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(RKEConfigServices)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
||||
|
||||
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
|
||||
func (in *SchedulerService) DeepCopyInto(out *SchedulerService) {
|
||||
*out = *in
|
||||
out.baseService = in.baseService
|
||||
return
|
||||
}
|
||||
|
||||
// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SchedulerService.
|
||||
func (in *SchedulerService) DeepCopy() *SchedulerService {
|
||||
if in == nil {
|
||||
return nil
|
||||
}
|
||||
out := new(SchedulerService)
|
||||
in.DeepCopyInto(out)
|
||||
return out
|
||||
}
|
Reference in New Issue
Block a user