1
0
mirror of https://github.com/rancher/types.git synced 2025-09-01 05:09:10 +00:00

Generated changes

This commit is contained in:
Alena Prokharchyk
2018-07-11 16:48:03 -07:00
parent b840a3a9e6
commit 15d6dfa2d0
154 changed files with 875 additions and 2048 deletions

View File

@@ -1,30 +1,10 @@
package v1
import (
reflect "reflect"
batch_v1 "k8s.io/api/batch/v1"
conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
)
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.(*JobList).DeepCopyInto(out.(*JobList))
return nil
}, InType: reflect.TypeOf(&JobList{})},
)
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *JobList) DeepCopyInto(out *JobList) {
*out = *in
@@ -54,7 +34,6 @@ func (in *JobList) DeepCopy() *JobList {
func (in *JobList) DeepCopyObject() runtime.Object {
if c := in.DeepCopy(); c != nil {
return c
} else {
return nil
}
return nil
}

View File

@@ -97,7 +97,7 @@ func (l *jobLister) Get(namespace, name string) (*v1.Job, error) {
return nil, errors.NewNotFound(schema.GroupResource{
Group: JobGroupVersionKind.Group,
Resource: "job",
}, name)
}, key)
}
return obj.(*v1.Job), nil
}