Merge pull request #48544 from sttts/sttts-typed-deepcopy-1.8

Automatic merge from submit-queue (batch tested with PRs 46094, 48544, 48807, 49102, 44174)

Static deepcopy – phase 1

This PR is the follow-up of https://github.com/kubernetes/kubernetes/pull/36412, replacing the
dynamic reflection based deepcopy with static DeepCopy+DeepCopyInto methods on API types.

This PR **does not yet** include the code dropping the cloner from the scheme and all the
porting of the calls to scheme.Copy. This will be part of a follow-up "Phase 2" PR.

A couple of the commits will go in first:
- [x] audit: fix deepcopy registration  https://github.com/kubernetes/kubernetes/pull/48599
- [x] apimachinery+apiserver: separate test types in their own packages #48601 
- [x] client-go: remove TPR example #48604
- [x] apimachinery: remove unneeded GetObjectKind() impls #48608 
- [x] sanity check against origin, that OpenShift's types are fine for static deepcopy https://github.com/deads2k/origin/pull/34

TODO **after** review here:
- [x] merge https://github.com/kubernetes/gengo/pull/32 and update vendoring commit
This commit is contained in:
Kubernetes Submit Queue 2017-07-18 11:20:51 -07:00 committed by GitHub
commit 5bbdfc6661
277 changed files with 32518 additions and 15608 deletions

21
Godeps/Godeps.json generated
View File

@ -2231,7 +2231,6 @@
}, },
{ {
"ImportPath": "github.com/pelletier/go-buffruneio", "ImportPath": "github.com/pelletier/go-buffruneio",
"Comment": "v0.1.0",
"Rev": "df1e16fde7fc330a0ca68167c23bf7ed6ac31d6d" "Rev": "df1e16fde7fc330a0ca68167c23bf7ed6ac31d6d"
}, },
{ {
@ -2985,43 +2984,43 @@
}, },
{ {
"ImportPath": "k8s.io/gengo/args", "ImportPath": "k8s.io/gengo/args",
"Rev": "c79c13d131b0a8f42d05faa6491c12e94ccc6f30" "Rev": "712a17394a0980fabbcf3d968972e185d80c0fa4"
}, },
{ {
"ImportPath": "k8s.io/gengo/examples/deepcopy-gen/generators", "ImportPath": "k8s.io/gengo/examples/deepcopy-gen/generators",
"Rev": "c79c13d131b0a8f42d05faa6491c12e94ccc6f30" "Rev": "712a17394a0980fabbcf3d968972e185d80c0fa4"
}, },
{ {
"ImportPath": "k8s.io/gengo/examples/defaulter-gen/generators", "ImportPath": "k8s.io/gengo/examples/defaulter-gen/generators",
"Rev": "c79c13d131b0a8f42d05faa6491c12e94ccc6f30" "Rev": "712a17394a0980fabbcf3d968972e185d80c0fa4"
}, },
{ {
"ImportPath": "k8s.io/gengo/examples/import-boss/generators", "ImportPath": "k8s.io/gengo/examples/import-boss/generators",
"Rev": "c79c13d131b0a8f42d05faa6491c12e94ccc6f30" "Rev": "712a17394a0980fabbcf3d968972e185d80c0fa4"
}, },
{ {
"ImportPath": "k8s.io/gengo/examples/set-gen/generators", "ImportPath": "k8s.io/gengo/examples/set-gen/generators",
"Rev": "c79c13d131b0a8f42d05faa6491c12e94ccc6f30" "Rev": "712a17394a0980fabbcf3d968972e185d80c0fa4"
}, },
{ {
"ImportPath": "k8s.io/gengo/examples/set-gen/sets", "ImportPath": "k8s.io/gengo/examples/set-gen/sets",
"Rev": "c79c13d131b0a8f42d05faa6491c12e94ccc6f30" "Rev": "712a17394a0980fabbcf3d968972e185d80c0fa4"
}, },
{ {
"ImportPath": "k8s.io/gengo/generator", "ImportPath": "k8s.io/gengo/generator",
"Rev": "c79c13d131b0a8f42d05faa6491c12e94ccc6f30" "Rev": "712a17394a0980fabbcf3d968972e185d80c0fa4"
}, },
{ {
"ImportPath": "k8s.io/gengo/namer", "ImportPath": "k8s.io/gengo/namer",
"Rev": "c79c13d131b0a8f42d05faa6491c12e94ccc6f30" "Rev": "712a17394a0980fabbcf3d968972e185d80c0fa4"
}, },
{ {
"ImportPath": "k8s.io/gengo/parser", "ImportPath": "k8s.io/gengo/parser",
"Rev": "c79c13d131b0a8f42d05faa6491c12e94ccc6f30" "Rev": "712a17394a0980fabbcf3d968972e185d80c0fa4"
}, },
{ {
"ImportPath": "k8s.io/gengo/types", "ImportPath": "k8s.io/gengo/types",
"Rev": "c79c13d131b0a8f42d05faa6491c12e94ccc6f30" "Rev": "712a17394a0980fabbcf3d968972e185d80c0fa4"
}, },
{ {
"ImportPath": "k8s.io/heapster/metrics/api/v1/types", "ImportPath": "k8s.io/heapster/metrics/api/v1/types",

View File

@ -13,10 +13,12 @@ go_library(
"doc.go", "doc.go",
"register.go", "register.go",
"types.go", "types.go",
"zz_generated.deepcopy.go",
], ],
tags = ["automanaged"], tags = ["automanaged"],
deps = [ deps = [
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
], ],

View File

@ -14,5 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
// +k8s:deepcopy-gen=package,register
// +groupName=kubeadm.k8s.io // +groupName=kubeadm.k8s.io
package kubeadm // import "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm" package kubeadm // import "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm"

View File

@ -22,6 +22,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
) )
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type MasterConfiguration struct { type MasterConfiguration struct {
metav1.TypeMeta metav1.TypeMeta
@ -86,6 +88,8 @@ type Etcd struct {
Image string Image string
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type NodeConfiguration struct { type NodeConfiguration struct {
metav1.TypeMeta metav1.TypeMeta

View File

@ -14,12 +14,14 @@ go_library(
"doc.go", "doc.go",
"register.go", "register.go",
"types.go", "types.go",
"zz_generated.deepcopy.go",
"zz_generated.defaults.go", "zz_generated.defaults.go",
], ],
tags = ["automanaged"], tags = ["automanaged"],
deps = [ deps = [
"//cmd/kubeadm/app/constants:go_default_library", "//cmd/kubeadm/app/constants:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
], ],

View File

@ -16,4 +16,5 @@ limitations under the License.
// +k8s:defaulter-gen=TypeMeta // +k8s:defaulter-gen=TypeMeta
// +groupName=kubeadm.k8s.io // +groupName=kubeadm.k8s.io
// +k8s:deepcopy-gen=package
package v1alpha1 // import "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1alpha1" package v1alpha1 // import "k8s.io/kubernetes/cmd/kubeadm/app/apis/kubeadm/v1alpha1"

View File

@ -22,6 +22,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
) )
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type MasterConfiguration struct { type MasterConfiguration struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
@ -86,6 +88,8 @@ type Etcd struct {
Image string `json:"image"` Image string `json:"image"`
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type NodeConfiguration struct { type NodeConfiguration struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`

View File

@ -0,0 +1,229 @@
// +build !ignore_autogenerated
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
package v1alpha1
import (
conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect"
)
// Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc {
return []conversion.GeneratedDeepCopyFunc{
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*API).DeepCopyInto(out.(*API))
return nil
}, InType: reflect.TypeOf(&API{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Etcd).DeepCopyInto(out.(*Etcd))
return nil
}, InType: reflect.TypeOf(&Etcd{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*MasterConfiguration).DeepCopyInto(out.(*MasterConfiguration))
return nil
}, InType: reflect.TypeOf(&MasterConfiguration{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Networking).DeepCopyInto(out.(*Networking))
return nil
}, InType: reflect.TypeOf(&Networking{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*NodeConfiguration).DeepCopyInto(out.(*NodeConfiguration))
return nil
}, InType: reflect.TypeOf(&NodeConfiguration{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*TokenDiscovery).DeepCopyInto(out.(*TokenDiscovery))
return nil
}, InType: reflect.TypeOf(&TokenDiscovery{})},
}
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *API) DeepCopyInto(out *API) {
*out = *in
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new API.
func (x *API) DeepCopy() *API {
if x == nil {
return nil
}
out := new(API)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Etcd) DeepCopyInto(out *Etcd) {
*out = *in
if in.Endpoints != nil {
in, out := &in.Endpoints, &out.Endpoints
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.ExtraArgs != nil {
in, out := &in.ExtraArgs, &out.ExtraArgs
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Etcd.
func (x *Etcd) DeepCopy() *Etcd {
if x == nil {
return nil
}
out := new(Etcd)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *MasterConfiguration) DeepCopyInto(out *MasterConfiguration) {
*out = *in
out.TypeMeta = in.TypeMeta
out.API = in.API
in.Etcd.DeepCopyInto(&out.Etcd)
out.Networking = in.Networking
if in.AuthorizationModes != nil {
in, out := &in.AuthorizationModes, &out.AuthorizationModes
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.APIServerExtraArgs != nil {
in, out := &in.APIServerExtraArgs, &out.APIServerExtraArgs
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
if in.ControllerManagerExtraArgs != nil {
in, out := &in.ControllerManagerExtraArgs, &out.ControllerManagerExtraArgs
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
if in.SchedulerExtraArgs != nil {
in, out := &in.SchedulerExtraArgs, &out.SchedulerExtraArgs
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
if in.APIServerCertSANs != nil {
in, out := &in.APIServerCertSANs, &out.APIServerCertSANs
*out = make([]string, len(*in))
copy(*out, *in)
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new MasterConfiguration.
func (x *MasterConfiguration) DeepCopy() *MasterConfiguration {
if x == nil {
return nil
}
out := new(MasterConfiguration)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *MasterConfiguration) DeepCopyObject() runtime.Object {
if c := x.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 *Networking) DeepCopyInto(out *Networking) {
*out = *in
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Networking.
func (x *Networking) DeepCopy() *Networking {
if x == nil {
return nil
}
out := new(Networking)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *NodeConfiguration) DeepCopyInto(out *NodeConfiguration) {
*out = *in
out.TypeMeta = in.TypeMeta
if in.DiscoveryTokenAPIServers != nil {
in, out := &in.DiscoveryTokenAPIServers, &out.DiscoveryTokenAPIServers
*out = make([]string, len(*in))
copy(*out, *in)
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NodeConfiguration.
func (x *NodeConfiguration) DeepCopy() *NodeConfiguration {
if x == nil {
return nil
}
out := new(NodeConfiguration)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *NodeConfiguration) DeepCopyObject() runtime.Object {
if c := x.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 *TokenDiscovery) DeepCopyInto(out *TokenDiscovery) {
*out = *in
if in.Addresses != nil {
in, out := &in.Addresses, &out.Addresses
*out = make([]string, len(*in))
copy(*out, *in)
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TokenDiscovery.
func (x *TokenDiscovery) DeepCopy() *TokenDiscovery {
if x == nil {
return nil
}
out := new(TokenDiscovery)
x.DeepCopyInto(out)
return out
}

View File

@ -0,0 +1,235 @@
// +build !ignore_autogenerated
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
package kubeadm
import (
conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect"
)
// Deprecated: register deep-copy functions.
func init() {
SchemeBuilder.Register(RegisterDeepCopies)
}
// Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*API).DeepCopyInto(out.(*API))
return nil
}, InType: reflect.TypeOf(&API{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Etcd).DeepCopyInto(out.(*Etcd))
return nil
}, InType: reflect.TypeOf(&Etcd{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*MasterConfiguration).DeepCopyInto(out.(*MasterConfiguration))
return nil
}, InType: reflect.TypeOf(&MasterConfiguration{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Networking).DeepCopyInto(out.(*Networking))
return nil
}, InType: reflect.TypeOf(&Networking{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*NodeConfiguration).DeepCopyInto(out.(*NodeConfiguration))
return nil
}, InType: reflect.TypeOf(&NodeConfiguration{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*TokenDiscovery).DeepCopyInto(out.(*TokenDiscovery))
return nil
}, InType: reflect.TypeOf(&TokenDiscovery{})},
)
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *API) DeepCopyInto(out *API) {
*out = *in
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new API.
func (x *API) DeepCopy() *API {
if x == nil {
return nil
}
out := new(API)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Etcd) DeepCopyInto(out *Etcd) {
*out = *in
if in.Endpoints != nil {
in, out := &in.Endpoints, &out.Endpoints
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.ExtraArgs != nil {
in, out := &in.ExtraArgs, &out.ExtraArgs
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Etcd.
func (x *Etcd) DeepCopy() *Etcd {
if x == nil {
return nil
}
out := new(Etcd)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *MasterConfiguration) DeepCopyInto(out *MasterConfiguration) {
*out = *in
out.TypeMeta = in.TypeMeta
out.API = in.API
in.Etcd.DeepCopyInto(&out.Etcd)
out.Networking = in.Networking
if in.AuthorizationModes != nil {
in, out := &in.AuthorizationModes, &out.AuthorizationModes
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.APIServerExtraArgs != nil {
in, out := &in.APIServerExtraArgs, &out.APIServerExtraArgs
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
if in.ControllerManagerExtraArgs != nil {
in, out := &in.ControllerManagerExtraArgs, &out.ControllerManagerExtraArgs
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
if in.SchedulerExtraArgs != nil {
in, out := &in.SchedulerExtraArgs, &out.SchedulerExtraArgs
*out = make(map[string]string, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
if in.APIServerCertSANs != nil {
in, out := &in.APIServerCertSANs, &out.APIServerCertSANs
*out = make([]string, len(*in))
copy(*out, *in)
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new MasterConfiguration.
func (x *MasterConfiguration) DeepCopy() *MasterConfiguration {
if x == nil {
return nil
}
out := new(MasterConfiguration)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *MasterConfiguration) DeepCopyObject() runtime.Object {
if c := x.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 *Networking) DeepCopyInto(out *Networking) {
*out = *in
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Networking.
func (x *Networking) DeepCopy() *Networking {
if x == nil {
return nil
}
out := new(Networking)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *NodeConfiguration) DeepCopyInto(out *NodeConfiguration) {
*out = *in
out.TypeMeta = in.TypeMeta
if in.DiscoveryTokenAPIServers != nil {
in, out := &in.DiscoveryTokenAPIServers, &out.DiscoveryTokenAPIServers
*out = make([]string, len(*in))
copy(*out, *in)
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NodeConfiguration.
func (x *NodeConfiguration) DeepCopy() *NodeConfiguration {
if x == nil {
return nil
}
out := new(NodeConfiguration)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *NodeConfiguration) DeepCopyObject() runtime.Object {
if c := x.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 *TokenDiscovery) DeepCopyInto(out *TokenDiscovery) {
*out = *in
if in.Addresses != nil {
in, out := &in.Addresses, &out.Addresses
*out = make([]string, len(*in))
copy(*out, *in)
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TokenDiscovery.
func (x *TokenDiscovery) DeepCopy() *TokenDiscovery {
if x == nil {
return nil
}
out := new(TokenDiscovery)
x.DeepCopyInto(out)
return out
}

View File

@ -13,10 +13,12 @@ go_library(
"doc.go", "doc.go",
"register.go", "register.go",
"types.go", "types.go",
"zz_generated.deepcopy.go",
], ],
tags = ["automanaged"], tags = ["automanaged"],
deps = [ deps = [
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
], ],

View File

@ -14,5 +14,6 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
// +k8s:deepcopy-gen=package,register
// +groupName=testgroup.k8s.io // +groupName=testgroup.k8s.io
package testgroup // import "k8s.io/kubernetes/cmd/libs/go2idl/client-gen/test_apis/testgroup" package testgroup // import "k8s.io/kubernetes/cmd/libs/go2idl/client-gen/test_apis/testgroup"

View File

@ -19,6 +19,7 @@ package testgroup
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type TestType struct { type TestType struct {
metav1.TypeMeta metav1.TypeMeta
@ -26,6 +27,8 @@ type TestType struct {
Status TestTypeStatus Status TestTypeStatus
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type TestTypeList struct { type TestTypeList struct {
metav1.TypeMeta metav1.TypeMeta
metav1.ListMeta metav1.ListMeta

View File

@ -14,11 +14,13 @@ go_library(
"register.go", "register.go",
"types.generated.go", "types.generated.go",
"types.go", "types.go",
"zz_generated.deepcopy.go",
], ],
tags = ["automanaged"], tags = ["automanaged"],
deps = [ deps = [
"//vendor/github.com/ugorji/go/codec:go_default_library", "//vendor/github.com/ugorji/go/codec:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library", "//vendor/k8s.io/apimachinery/pkg/types:go_default_library",

View File

@ -14,6 +14,7 @@ See the License for the specific language governing permissions and
limitations under the License. limitations under the License.
*/ */
// +k8s:deepcopy-gen=package,register
// +k8s:openapi-gen=true // +k8s:openapi-gen=true
// +groupName=testgroup.k8s.io // +groupName=testgroup.k8s.io
package v1 package v1

View File

@ -19,6 +19,7 @@ package v1
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type TestType struct { type TestType struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
@ -32,6 +33,8 @@ type TestType struct {
Status TestTypeStatus `json:"status,omitempty"` Status TestTypeStatus `json:"status,omitempty"`
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type TestTypeList struct { type TestTypeList struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
// +optional // +optional

View File

@ -0,0 +1,129 @@
// +build !ignore_autogenerated
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
package v1
import (
conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect"
)
// Deprecated: register deep-copy functions.
func init() {
SchemeBuilder.Register(RegisterDeepCopies)
}
// Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*TestType).DeepCopyInto(out.(*TestType))
return nil
}, InType: reflect.TypeOf(&TestType{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*TestTypeList).DeepCopyInto(out.(*TestTypeList))
return nil
}, InType: reflect.TypeOf(&TestTypeList{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*TestTypeStatus).DeepCopyInto(out.(*TestTypeStatus))
return nil
}, InType: reflect.TypeOf(&TestTypeStatus{})},
)
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *TestType) DeepCopyInto(out *TestType) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
out.Status = in.Status
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TestType.
func (x *TestType) DeepCopy() *TestType {
if x == nil {
return nil
}
out := new(TestType)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *TestType) DeepCopyObject() runtime.Object {
if c := x.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 *TestTypeList) DeepCopyInto(out *TestTypeList) {
*out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]TestType, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TestTypeList.
func (x *TestTypeList) DeepCopy() *TestTypeList {
if x == nil {
return nil
}
out := new(TestTypeList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *TestTypeList) DeepCopyObject() runtime.Object {
if c := x.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 *TestTypeStatus) DeepCopyInto(out *TestTypeStatus) {
*out = *in
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TestTypeStatus.
func (x *TestTypeStatus) DeepCopy() *TestTypeStatus {
if x == nil {
return nil
}
out := new(TestTypeStatus)
x.DeepCopyInto(out)
return out
}

View File

@ -0,0 +1,129 @@
// +build !ignore_autogenerated
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
package testgroup
import (
conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect"
)
// Deprecated: register deep-copy functions.
func init() {
SchemeBuilder.Register(RegisterDeepCopies)
}
// Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*TestType).DeepCopyInto(out.(*TestType))
return nil
}, InType: reflect.TypeOf(&TestType{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*TestTypeList).DeepCopyInto(out.(*TestTypeList))
return nil
}, InType: reflect.TypeOf(&TestTypeList{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*TestTypeStatus).DeepCopyInto(out.(*TestTypeStatus))
return nil
}, InType: reflect.TypeOf(&TestTypeStatus{})},
)
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *TestType) DeepCopyInto(out *TestType) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
out.Status = in.Status
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TestType.
func (x *TestType) DeepCopy() *TestType {
if x == nil {
return nil
}
out := new(TestType)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *TestType) DeepCopyObject() runtime.Object {
if c := x.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 *TestTypeList) DeepCopyInto(out *TestTypeList) {
*out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]TestType, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TestTypeList.
func (x *TestTypeList) DeepCopy() *TestTypeList {
if x == nil {
return nil
}
out := new(TestTypeList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *TestTypeList) DeepCopyObject() runtime.Object {
if c := x.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 *TestTypeStatus) DeepCopyInto(out *TestTypeStatus) {
*out = *in
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TestTypeStatus.
func (x *TestTypeStatus) DeepCopy() *TestTypeStatus {
if x == nil {
return nil
}
out := new(TestTypeStatus)
x.DeepCopyInto(out)
return out
}

View File

@ -93,6 +93,7 @@ type ClusterStatus struct {
// +genclient=true // +genclient=true
// +nonNamespaced=true // +nonNamespaced=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Information about a registered cluster in a federated kubernetes setup. Clusters are not namespaced and have unique names in the federation. // Information about a registered cluster in a federated kubernetes setup. Clusters are not namespaced and have unique names in the federation.
type Cluster struct { type Cluster struct {
@ -110,6 +111,8 @@ type Cluster struct {
Status ClusterStatus Status ClusterStatus
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// A list of all the kubernetes clusters registered to the federation // A list of all the kubernetes clusters registered to the federation
type ClusterList struct { type ClusterList struct {
metav1.TypeMeta metav1.TypeMeta

View File

@ -93,6 +93,7 @@ type ClusterStatus struct {
} }
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// +nonNamespaced=true // +nonNamespaced=true
// Information about a registered cluster in a federated kubernetes setup. Clusters are not namespaced and have unique names in the federation. // Information about a registered cluster in a federated kubernetes setup. Clusters are not namespaced and have unique names in the federation.
@ -111,6 +112,8 @@ type Cluster struct {
Status ClusterStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` Status ClusterStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// A list of all the kubernetes clusters registered to the federation // A list of all the kubernetes clusters registered to the federation
type ClusterList struct { type ClusterList struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`

View File

@ -21,103 +21,156 @@ limitations under the License.
package v1beta1 package v1beta1
import ( import (
core_v1 "k8s.io/api/core/v1" v1 "k8s.io/api/core/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_Cluster, InType: reflect.TypeOf(&Cluster{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ClusterCondition, InType: reflect.TypeOf(&ClusterCondition{})}, in.(*Cluster).DeepCopyInto(out.(*Cluster))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ClusterList, InType: reflect.TypeOf(&ClusterList{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ClusterSelectorRequirement, InType: reflect.TypeOf(&ClusterSelectorRequirement{})}, }, InType: reflect.TypeOf(&Cluster{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ClusterSpec, InType: reflect.TypeOf(&ClusterSpec{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ClusterStatus, InType: reflect.TypeOf(&ClusterStatus{})}, in.(*ClusterCondition).DeepCopyInto(out.(*ClusterCondition))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_ServerAddressByClientCIDR, InType: reflect.TypeOf(&ServerAddressByClientCIDR{})}, 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.(*ClusterSelectorRequirement).DeepCopyInto(out.(*ClusterSelectorRequirement))
return nil
}, InType: reflect.TypeOf(&ClusterSelectorRequirement{})},
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.(*ServerAddressByClientCIDR).DeepCopyInto(out.(*ServerAddressByClientCIDR))
return nil
}, InType: reflect.TypeOf(&ServerAddressByClientCIDR{})},
) )
} }
// DeepCopy_v1beta1_Cluster is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1beta1_Cluster(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *Cluster) DeepCopyInto(out *Cluster) {
{
in := in.(*Cluster)
out := out.(*Cluster)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
in.Status.DeepCopyInto(&out.Status)
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.
func (x *Cluster) DeepCopy() *Cluster {
if x == nil {
return nil
}
out := new(Cluster)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Cluster) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
if err := DeepCopy_v1beta1_ClusterSpec(&in.Spec, &out.Spec, c); err != nil {
return err
}
if err := DeepCopy_v1beta1_ClusterStatus(&in.Status, &out.Status, c); err != nil {
return err
}
return nil return nil
} }
} }
// DeepCopy_v1beta1_ClusterCondition is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1beta1_ClusterCondition(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *ClusterCondition) DeepCopyInto(out *ClusterCondition) {
{
in := in.(*ClusterCondition)
out := out.(*ClusterCondition)
*out = *in *out = *in
out.LastProbeTime = in.LastProbeTime.DeepCopy() in.LastProbeTime.DeepCopyInto(&out.LastProbeTime)
out.LastTransitionTime = in.LastTransitionTime.DeepCopy() in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
return nil return
}
} }
// DeepCopy_v1beta1_ClusterList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterCondition.
func DeepCopy_v1beta1_ClusterList(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *ClusterCondition) DeepCopy() *ClusterCondition {
{ if x == nil {
in := in.(*ClusterList) return nil
out := out.(*ClusterList) }
out := new(ClusterCondition)
x.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 = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]Cluster, len(*in)) *out = make([]Cluster, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_v1beta1_Cluster(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList.
func (x *ClusterList) DeepCopy() *ClusterList {
if x == nil {
return nil
} }
out := new(ClusterList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *ClusterList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_v1beta1_ClusterSelectorRequirement is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1beta1_ClusterSelectorRequirement(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *ClusterSelectorRequirement) DeepCopyInto(out *ClusterSelectorRequirement) {
{
in := in.(*ClusterSelectorRequirement)
out := out.(*ClusterSelectorRequirement)
*out = *in *out = *in
if in.Values != nil { if in.Values != nil {
in, out := &in.Values, &out.Values in, out := &in.Values, &out.Values
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} }
return nil return
}
} }
// DeepCopy_v1beta1_ClusterSpec is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSelectorRequirement.
func DeepCopy_v1beta1_ClusterSpec(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *ClusterSelectorRequirement) DeepCopy() *ClusterSelectorRequirement {
{ if x == nil {
in := in.(*ClusterSpec) return nil
out := out.(*ClusterSpec) }
out := new(ClusterSelectorRequirement)
x.DeepCopyInto(out)
return out
}
// 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 *out = *in
if in.ServerAddressByClientCIDRs != nil { if in.ServerAddressByClientCIDRs != nil {
in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs
@ -126,26 +179,34 @@ func DeepCopy_v1beta1_ClusterSpec(in interface{}, out interface{}, c *conversion
} }
if in.SecretRef != nil { if in.SecretRef != nil {
in, out := &in.SecretRef, &out.SecretRef in, out := &in.SecretRef, &out.SecretRef
*out = new(core_v1.LocalObjectReference) if *in == nil {
*out = nil
} else {
*out = new(v1.LocalObjectReference)
**out = **in **out = **in
} }
return nil
} }
return
} }
// DeepCopy_v1beta1_ClusterStatus is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec.
func DeepCopy_v1beta1_ClusterStatus(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *ClusterSpec) DeepCopy() *ClusterSpec {
{ if x == nil {
in := in.(*ClusterStatus) return nil
out := out.(*ClusterStatus) }
out := new(ClusterSpec)
x.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 *out = *in
if in.Conditions != nil { if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions in, out := &in.Conditions, &out.Conditions
*out = make([]ClusterCondition, len(*in)) *out = make([]ClusterCondition, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_v1beta1_ClusterCondition(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
}
} }
} }
if in.Zones != nil { if in.Zones != nil {
@ -153,16 +214,31 @@ func DeepCopy_v1beta1_ClusterStatus(in interface{}, out interface{}, c *conversi
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} }
return nil return
}
} }
// DeepCopy_v1beta1_ServerAddressByClientCIDR is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus.
func DeepCopy_v1beta1_ServerAddressByClientCIDR(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *ClusterStatus) DeepCopy() *ClusterStatus {
{ if x == nil {
in := in.(*ServerAddressByClientCIDR)
out := out.(*ServerAddressByClientCIDR)
*out = *in
return nil return nil
} }
out := new(ClusterStatus)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ServerAddressByClientCIDR) DeepCopyInto(out *ServerAddressByClientCIDR) {
*out = *in
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ServerAddressByClientCIDR.
func (x *ServerAddressByClientCIDR) DeepCopy() *ServerAddressByClientCIDR {
if x == nil {
return nil
}
out := new(ServerAddressByClientCIDR)
x.DeepCopyInto(out)
return out
} }

View File

@ -21,122 +21,194 @@ limitations under the License.
package federation package federation
import ( import (
core_v1 "k8s.io/api/core/v1" v1 "k8s.io/api/core/v1"
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
api "k8s.io/kubernetes/pkg/api" api "k8s.io/kubernetes/pkg/api"
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_Cluster, InType: reflect.TypeOf(&Cluster{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_ClusterCondition, InType: reflect.TypeOf(&ClusterCondition{})}, in.(*Cluster).DeepCopyInto(out.(*Cluster))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_ClusterList, InType: reflect.TypeOf(&ClusterList{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_ClusterPreferences, InType: reflect.TypeOf(&ClusterPreferences{})}, }, InType: reflect.TypeOf(&Cluster{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_ClusterServiceIngress, InType: reflect.TypeOf(&ClusterServiceIngress{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_ClusterSpec, InType: reflect.TypeOf(&ClusterSpec{})}, in.(*ClusterCondition).DeepCopyInto(out.(*ClusterCondition))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_ClusterStatus, InType: reflect.TypeOf(&ClusterStatus{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_FederatedServiceIngress, InType: reflect.TypeOf(&FederatedServiceIngress{})}, }, InType: reflect.TypeOf(&ClusterCondition{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_ReplicaAllocationPreferences, InType: reflect.TypeOf(&ReplicaAllocationPreferences{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_federation_ServerAddressByClientCIDR, InType: reflect.TypeOf(&ServerAddressByClientCIDR{})}, in.(*ClusterList).DeepCopyInto(out.(*ClusterList))
return nil
}, InType: reflect.TypeOf(&ClusterList{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ClusterPreferences).DeepCopyInto(out.(*ClusterPreferences))
return nil
}, InType: reflect.TypeOf(&ClusterPreferences{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ClusterServiceIngress).DeepCopyInto(out.(*ClusterServiceIngress))
return nil
}, InType: reflect.TypeOf(&ClusterServiceIngress{})},
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.(*FederatedServiceIngress).DeepCopyInto(out.(*FederatedServiceIngress))
return nil
}, InType: reflect.TypeOf(&FederatedServiceIngress{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ReplicaAllocationPreferences).DeepCopyInto(out.(*ReplicaAllocationPreferences))
return nil
}, InType: reflect.TypeOf(&ReplicaAllocationPreferences{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ServerAddressByClientCIDR).DeepCopyInto(out.(*ServerAddressByClientCIDR))
return nil
}, InType: reflect.TypeOf(&ServerAddressByClientCIDR{})},
) )
} }
// DeepCopy_federation_Cluster is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_federation_Cluster(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *Cluster) DeepCopyInto(out *Cluster) {
{
in := in.(*Cluster)
out := out.(*Cluster)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
in.Status.DeepCopyInto(&out.Status)
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Cluster.
func (x *Cluster) DeepCopy() *Cluster {
if x == nil {
return nil
}
out := new(Cluster)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Cluster) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
if err := DeepCopy_federation_ClusterSpec(&in.Spec, &out.Spec, c); err != nil {
return err
}
if err := DeepCopy_federation_ClusterStatus(&in.Status, &out.Status, c); err != nil {
return err
}
return nil return nil
} }
} }
// DeepCopy_federation_ClusterCondition is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_federation_ClusterCondition(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *ClusterCondition) DeepCopyInto(out *ClusterCondition) {
{
in := in.(*ClusterCondition)
out := out.(*ClusterCondition)
*out = *in *out = *in
out.LastProbeTime = in.LastProbeTime.DeepCopy() in.LastProbeTime.DeepCopyInto(&out.LastProbeTime)
out.LastTransitionTime = in.LastTransitionTime.DeepCopy() in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
return nil return
}
} }
// DeepCopy_federation_ClusterList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterCondition.
func DeepCopy_federation_ClusterList(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *ClusterCondition) DeepCopy() *ClusterCondition {
{ if x == nil {
in := in.(*ClusterList) return nil
out := out.(*ClusterList) }
out := new(ClusterCondition)
x.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 = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]Cluster, len(*in)) *out = make([]Cluster, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_federation_Cluster(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterList.
func (x *ClusterList) DeepCopy() *ClusterList {
if x == nil {
return nil
} }
out := new(ClusterList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *ClusterList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_federation_ClusterPreferences is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_federation_ClusterPreferences(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *ClusterPreferences) DeepCopyInto(out *ClusterPreferences) {
{
in := in.(*ClusterPreferences)
out := out.(*ClusterPreferences)
*out = *in *out = *in
if in.MaxReplicas != nil { if in.MaxReplicas != nil {
in, out := &in.MaxReplicas, &out.MaxReplicas in, out := &in.MaxReplicas, &out.MaxReplicas
if *in == nil {
*out = nil
} else {
*out = new(int64) *out = new(int64)
**out = **in **out = **in
} }
return nil
} }
return
} }
// DeepCopy_federation_ClusterServiceIngress is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterPreferences.
func DeepCopy_federation_ClusterServiceIngress(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *ClusterPreferences) DeepCopy() *ClusterPreferences {
{ if x == nil {
in := in.(*ClusterServiceIngress) return nil
out := out.(*ClusterServiceIngress) }
out := new(ClusterPreferences)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ClusterServiceIngress) DeepCopyInto(out *ClusterServiceIngress) {
*out = *in *out = *in
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]core_v1.LoadBalancerIngress, len(*in)) *out = make([]v1.LoadBalancerIngress, len(*in))
copy(*out, *in) copy(*out, *in)
} }
return nil return
}
} }
// DeepCopy_federation_ClusterSpec is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterServiceIngress.
func DeepCopy_federation_ClusterSpec(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *ClusterServiceIngress) DeepCopy() *ClusterServiceIngress {
{ if x == nil {
in := in.(*ClusterSpec) return nil
out := out.(*ClusterSpec) }
out := new(ClusterServiceIngress)
x.DeepCopyInto(out)
return out
}
// 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 *out = *in
if in.ServerAddressByClientCIDRs != nil { if in.ServerAddressByClientCIDRs != nil {
in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs in, out := &in.ServerAddressByClientCIDRs, &out.ServerAddressByClientCIDRs
@ -145,26 +217,34 @@ func DeepCopy_federation_ClusterSpec(in interface{}, out interface{}, c *convers
} }
if in.SecretRef != nil { if in.SecretRef != nil {
in, out := &in.SecretRef, &out.SecretRef in, out := &in.SecretRef, &out.SecretRef
if *in == nil {
*out = nil
} else {
*out = new(api.LocalObjectReference) *out = new(api.LocalObjectReference)
**out = **in **out = **in
} }
return nil
} }
return
} }
// DeepCopy_federation_ClusterStatus is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterSpec.
func DeepCopy_federation_ClusterStatus(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *ClusterSpec) DeepCopy() *ClusterSpec {
{ if x == nil {
in := in.(*ClusterStatus) return nil
out := out.(*ClusterStatus) }
out := new(ClusterSpec)
x.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 *out = *in
if in.Conditions != nil { if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions in, out := &in.Conditions, &out.Conditions
*out = make([]ClusterCondition, len(*in)) *out = make([]ClusterCondition, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_federation_ClusterCondition(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
}
} }
} }
if in.Zones != nil { if in.Zones != nil {
@ -172,56 +252,79 @@ func DeepCopy_federation_ClusterStatus(in interface{}, out interface{}, c *conve
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} }
return nil return
}
} }
// DeepCopy_federation_FederatedServiceIngress is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterStatus.
func DeepCopy_federation_FederatedServiceIngress(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *ClusterStatus) DeepCopy() *ClusterStatus {
{ if x == nil {
in := in.(*FederatedServiceIngress) return nil
out := out.(*FederatedServiceIngress) }
out := new(ClusterStatus)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *FederatedServiceIngress) DeepCopyInto(out *FederatedServiceIngress) {
*out = *in *out = *in
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]ClusterServiceIngress, len(*in)) *out = make([]ClusterServiceIngress, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_federation_ClusterServiceIngress(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
} return
return nil
}
} }
// DeepCopy_federation_ReplicaAllocationPreferences is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new FederatedServiceIngress.
func DeepCopy_federation_ReplicaAllocationPreferences(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *FederatedServiceIngress) DeepCopy() *FederatedServiceIngress {
{ if x == nil {
in := in.(*ReplicaAllocationPreferences) return nil
out := out.(*ReplicaAllocationPreferences) }
out := new(FederatedServiceIngress)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ReplicaAllocationPreferences) DeepCopyInto(out *ReplicaAllocationPreferences) {
*out = *in *out = *in
if in.Clusters != nil { if in.Clusters != nil {
in, out := &in.Clusters, &out.Clusters in, out := &in.Clusters, &out.Clusters
*out = make(map[string]ClusterPreferences) *out = make(map[string]ClusterPreferences, len(*in))
for key, val := range *in { for key, val := range *in {
newVal := new(ClusterPreferences) newVal := new(ClusterPreferences)
if err := DeepCopy_federation_ClusterPreferences(&val, newVal, c); err != nil { val.DeepCopyInto(newVal)
return err
}
(*out)[key] = *newVal (*out)[key] = *newVal
} }
} }
return nil return
}
} }
// DeepCopy_federation_ServerAddressByClientCIDR is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ReplicaAllocationPreferences.
func DeepCopy_federation_ServerAddressByClientCIDR(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *ReplicaAllocationPreferences) DeepCopy() *ReplicaAllocationPreferences {
{ if x == nil {
in := in.(*ServerAddressByClientCIDR)
out := out.(*ServerAddressByClientCIDR)
*out = *in
return nil return nil
} }
out := new(ReplicaAllocationPreferences)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ServerAddressByClientCIDR) DeepCopyInto(out *ServerAddressByClientCIDR) {
*out = *in
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ServerAddressByClientCIDR.
func (x *ServerAddressByClientCIDR) DeepCopy() *ServerAddressByClientCIDR {
if x == nil {
return nil
}
out := new(ServerAddressByClientCIDR)
x.DeepCopyInto(out)
return out
} }

View File

@ -61,7 +61,10 @@ func init() {
} }
if err := scheme.AddGeneratedDeepCopyFuncs( if err := scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{ conversion.GeneratedDeepCopyFunc{
Fn: metav1.DeepCopy_v1_Time, Fn: func(in, out interface{}, c *conversion.Cloner) error {
in.(*metav1.Time).DeepCopyInto(out.(*metav1.Time))
return nil
},
InType: reflect.TypeOf(&metav1.Time{}), InType: reflect.TypeOf(&metav1.Time{}),
}, },
); err != nil { ); err != nil {

View File

@ -589,6 +589,7 @@ staging/src/k8s.io/apimachinery/pkg/apis/testapigroup/fuzzer
staging/src/k8s.io/apimachinery/pkg/apis/testapigroup/v1 staging/src/k8s.io/apimachinery/pkg/apis/testapigroup/v1
staging/src/k8s.io/apimachinery/pkg/conversion staging/src/k8s.io/apimachinery/pkg/conversion
staging/src/k8s.io/apimachinery/pkg/conversion/unstructured staging/src/k8s.io/apimachinery/pkg/conversion/unstructured
staging/src/k8s.io/apimachinery/pkg/labels
staging/src/k8s.io/apimachinery/pkg/openapi staging/src/k8s.io/apimachinery/pkg/openapi
staging/src/k8s.io/apimachinery/pkg/runtime/schema staging/src/k8s.io/apimachinery/pkg/runtime/schema
staging/src/k8s.io/apimachinery/pkg/runtime/serializer staging/src/k8s.io/apimachinery/pkg/runtime/serializer

View File

@ -39,7 +39,7 @@ function kfind() {
# include the "special" vendor directories which are actually part # include the "special" vendor directories which are actually part
# of the Kubernetes source tree - generators will use these for # of the Kubernetes source tree - generators will use these for
# including certain core API concepts. # including certain core API concepts.
find -H . ./vendor/k8s.io/apimachinery ./vendor/k8s.io/apiserver ./vendor/k8s.io/kube-aggregator ./vendor/k8s.io/apiextensions-apiserver ./vendor/k8s.io/metrics ./vendor/k8s.io/sample-apiserver ./vendor/k8s.io/api \ find -H . ./vendor/k8s.io/apimachinery ./vendor/k8s.io/apiserver ./vendor/k8s.io/kube-aggregator ./vendor/k8s.io/apiextensions-apiserver ./vendor/k8s.io/metrics ./vendor/k8s.io/sample-apiserver ./vendor/k8s.io/api ./vendor/k8s.io/client-go \
\( \ \( \
-not \( \ -not \( \
\( \ \( \

View File

@ -29,12 +29,23 @@ import (
type FakeAPIObject struct{} type FakeAPIObject struct{}
func (obj *FakeAPIObject) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } func (obj *FakeAPIObject) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind }
func (obj *FakeAPIObject) DeepCopyObject() runtime.Object {
if obj == nil {
return nil
}
clone := *obj
return &clone
}
type ExtensionAPIObject struct { type ExtensionAPIObject struct {
metav1.TypeMeta metav1.TypeMeta
metav1.ObjectMeta metav1.ObjectMeta
} }
func (obj *ExtensionAPIObject) DeepCopyObject() runtime.Object {
panic("ExtensionAPIObject does not support DeepCopy")
}
func TestGetReference(t *testing.T) { func TestGetReference(t *testing.T) {
// when vendoring kube, if you don't force the set of registered versions (like make test does) // when vendoring kube, if you don't force the set of registered versions (like make test does)

View File

@ -417,6 +417,7 @@ const (
// +genclient=true // +genclient=true
// +nonNamespaced=true // +nonNamespaced=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type PersistentVolume struct { type PersistentVolume struct {
metav1.TypeMeta metav1.TypeMeta
@ -483,6 +484,8 @@ type PersistentVolumeStatus struct {
Reason string Reason string
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type PersistentVolumeList struct { type PersistentVolumeList struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
@ -491,6 +494,7 @@ type PersistentVolumeList struct {
} }
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// PersistentVolumeClaim is a user's request for and claim to a persistent volume // PersistentVolumeClaim is a user's request for and claim to a persistent volume
type PersistentVolumeClaim struct { type PersistentVolumeClaim struct {
@ -507,6 +511,8 @@ type PersistentVolumeClaim struct {
Status PersistentVolumeClaimStatus Status PersistentVolumeClaimStatus
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type PersistentVolumeClaimList struct { type PersistentVolumeClaimList struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
@ -1839,6 +1845,8 @@ const (
RestartPolicyNever RestartPolicy = "Never" RestartPolicyNever RestartPolicy = "Never"
) )
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// PodList is a list of Pods. // PodList is a list of Pods.
type PodList struct { type PodList struct {
metav1.TypeMeta metav1.TypeMeta
@ -2356,6 +2364,8 @@ type PodStatus struct {
ContainerStatuses []ContainerStatus ContainerStatuses []ContainerStatus
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded // PodStatusResult is a wrapper for PodStatus returned by kubelet that can be encode/decoded
type PodStatusResult struct { type PodStatusResult struct {
metav1.TypeMeta metav1.TypeMeta
@ -2368,6 +2378,7 @@ type PodStatusResult struct {
} }
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Pod is a collection of containers, used as either input (create, update) or as output (list, get). // Pod is a collection of containers, used as either input (create, update) or as output (list, get).
type Pod struct { type Pod struct {
@ -2397,6 +2408,7 @@ type PodTemplateSpec struct {
} }
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// PodTemplate describes a template for creating copies of a predefined pod. // PodTemplate describes a template for creating copies of a predefined pod.
type PodTemplate struct { type PodTemplate struct {
@ -2409,6 +2421,8 @@ type PodTemplate struct {
Template PodTemplateSpec Template PodTemplateSpec
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// PodTemplateList is a list of PodTemplates. // PodTemplateList is a list of PodTemplates.
type PodTemplateList struct { type PodTemplateList struct {
metav1.TypeMeta metav1.TypeMeta
@ -2502,6 +2516,7 @@ type ReplicationControllerCondition struct {
} }
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ReplicationController represents the configuration of a replication controller. // ReplicationController represents the configuration of a replication controller.
type ReplicationController struct { type ReplicationController struct {
@ -2519,6 +2534,8 @@ type ReplicationController struct {
Status ReplicationControllerStatus Status ReplicationControllerStatus
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ReplicationControllerList is a collection of replication controllers. // ReplicationControllerList is a collection of replication controllers.
type ReplicationControllerList struct { type ReplicationControllerList struct {
metav1.TypeMeta metav1.TypeMeta
@ -2534,6 +2551,8 @@ const (
ClusterIPNone = "None" ClusterIPNone = "None"
) )
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ServiceList holds a list of services. // ServiceList holds a list of services.
type ServiceList struct { type ServiceList struct {
metav1.TypeMeta metav1.TypeMeta
@ -2732,6 +2751,7 @@ type ServicePort struct {
} }
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Service is a named abstraction of software service (for example, mysql) consisting of local port // Service is a named abstraction of software service (for example, mysql) consisting of local port
// (for example 3306) that the proxy listens on, and the selector that determines which pods // (for example 3306) that the proxy listens on, and the selector that determines which pods
@ -2751,6 +2771,7 @@ type Service struct {
} }
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ServiceAccount binds together: // ServiceAccount binds together:
// * a name, understood by users, and perhaps by peripheral systems, for an identity // * a name, understood by users, and perhaps by peripheral systems, for an identity
@ -2776,6 +2797,8 @@ type ServiceAccount struct {
AutomountServiceAccountToken *bool AutomountServiceAccountToken *bool
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ServiceAccountList is a list of ServiceAccount objects // ServiceAccountList is a list of ServiceAccount objects
type ServiceAccountList struct { type ServiceAccountList struct {
metav1.TypeMeta metav1.TypeMeta
@ -2786,6 +2809,7 @@ type ServiceAccountList struct {
} }
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Endpoints is a collection of endpoints that implement the actual service. Example: // Endpoints is a collection of endpoints that implement the actual service. Example:
// Name: "mysvc", // Name: "mysvc",
@ -2855,6 +2879,8 @@ type EndpointPort struct {
Protocol Protocol Protocol Protocol
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// EndpointsList is a list of endpoints. // EndpointsList is a list of endpoints.
type EndpointsList struct { type EndpointsList struct {
metav1.TypeMeta metav1.TypeMeta
@ -3126,6 +3152,7 @@ type ResourceList map[ResourceName]resource.Quantity
// +genclient=true // +genclient=true
// +nonNamespaced=true // +nonNamespaced=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Node is a worker node in Kubernetes // Node is a worker node in Kubernetes
// The name of the node according to etcd is in ObjectMeta.Name. // The name of the node according to etcd is in ObjectMeta.Name.
@ -3143,6 +3170,8 @@ type Node struct {
Status NodeStatus Status NodeStatus
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// NodeList is a list of nodes. // NodeList is a list of nodes.
type NodeList struct { type NodeList struct {
metav1.TypeMeta metav1.TypeMeta
@ -3186,6 +3215,7 @@ const (
// +genclient=true // +genclient=true
// +nonNamespaced=true // +nonNamespaced=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// A namespace provides a scope for Names. // A namespace provides a scope for Names.
// Use of multiple namespaces is optional // Use of multiple namespaces is optional
@ -3203,6 +3233,8 @@ type Namespace struct {
Status NamespaceStatus Status NamespaceStatus
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// NamespaceList is a list of Namespaces. // NamespaceList is a list of Namespaces.
type NamespaceList struct { type NamespaceList struct {
metav1.TypeMeta metav1.TypeMeta
@ -3212,6 +3244,8 @@ type NamespaceList struct {
Items []Namespace Items []Namespace
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Binding ties one object to another; for example, a pod is bound to a node by a scheduler. // Binding ties one object to another; for example, a pod is bound to a node by a scheduler.
// Deprecated in 1.7, please use the bindings subresource of pods instead. // Deprecated in 1.7, please use the bindings subresource of pods instead.
type Binding struct { type Binding struct {
@ -3245,6 +3279,8 @@ const (
DeletePropagationForeground DeletionPropagation = "Foreground" DeletePropagationForeground DeletionPropagation = "Foreground"
) )
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// DeleteOptions may be provided when deleting an API object // DeleteOptions may be provided when deleting an API object
// DEPRECATED: This type has been moved to meta/v1 and will be removed soon. // DEPRECATED: This type has been moved to meta/v1 and will be removed soon.
type DeleteOptions struct { type DeleteOptions struct {
@ -3276,6 +3312,8 @@ type DeleteOptions struct {
PropagationPolicy *DeletionPropagation PropagationPolicy *DeletionPropagation
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ListOptions is the query options to a standard REST list call, and has future support for // ListOptions is the query options to a standard REST list call, and has future support for
// watch calls. // watch calls.
// DEPRECATED: This type has been moved to meta/v1 and will be removed soon. // DEPRECATED: This type has been moved to meta/v1 and will be removed soon.
@ -3303,6 +3341,8 @@ type ListOptions struct {
TimeoutSeconds *int64 TimeoutSeconds *int64
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// PodLogOptions is the query options for a Pod's logs REST call // PodLogOptions is the query options for a Pod's logs REST call
type PodLogOptions struct { type PodLogOptions struct {
metav1.TypeMeta metav1.TypeMeta
@ -3335,6 +3375,8 @@ type PodLogOptions struct {
LimitBytes *int64 LimitBytes *int64
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// PodAttachOptions is the query options to a Pod's remote attach call // PodAttachOptions is the query options to a Pod's remote attach call
// TODO: merge w/ PodExecOptions below for stdin, stdout, etc // TODO: merge w/ PodExecOptions below for stdin, stdout, etc
type PodAttachOptions struct { type PodAttachOptions struct {
@ -3361,6 +3403,8 @@ type PodAttachOptions struct {
Container string Container string
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// PodExecOptions is the query options to a Pod's remote exec call // PodExecOptions is the query options to a Pod's remote exec call
type PodExecOptions struct { type PodExecOptions struct {
metav1.TypeMeta metav1.TypeMeta
@ -3384,6 +3428,8 @@ type PodExecOptions struct {
Command []string Command []string
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// PodPortForwardOptions is the query options to a Pod's port forward call // PodPortForwardOptions is the query options to a Pod's port forward call
type PodPortForwardOptions struct { type PodPortForwardOptions struct {
metav1.TypeMeta metav1.TypeMeta
@ -3393,6 +3439,8 @@ type PodPortForwardOptions struct {
Ports []int32 Ports []int32
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// PodProxyOptions is the query options to a Pod's proxy call // PodProxyOptions is the query options to a Pod's proxy call
type PodProxyOptions struct { type PodProxyOptions struct {
metav1.TypeMeta metav1.TypeMeta
@ -3401,6 +3449,8 @@ type PodProxyOptions struct {
Path string Path string
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// NodeProxyOptions is the query options to a Node's proxy call // NodeProxyOptions is the query options to a Node's proxy call
type NodeProxyOptions struct { type NodeProxyOptions struct {
metav1.TypeMeta metav1.TypeMeta
@ -3409,6 +3459,8 @@ type NodeProxyOptions struct {
Path string Path string
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ServiceProxyOptions is the query options to a Service's proxy call. // ServiceProxyOptions is the query options to a Service's proxy call.
type ServiceProxyOptions struct { type ServiceProxyOptions struct {
metav1.TypeMeta metav1.TypeMeta
@ -3422,6 +3474,7 @@ type ServiceProxyOptions struct {
} }
// ObjectReference contains enough information to let you inspect or modify the referred object. // ObjectReference contains enough information to let you inspect or modify the referred object.
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type ObjectReference struct { type ObjectReference struct {
// +optional // +optional
Kind string Kind string
@ -3454,6 +3507,8 @@ type LocalObjectReference struct {
Name string Name string
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type SerializedReference struct { type SerializedReference struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
@ -3478,6 +3533,7 @@ const (
) )
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Event is a report of an event somewhere in the cluster. // Event is a report of an event somewhere in the cluster.
// TODO: Decide whether to store these separately or with the object they apply to. // TODO: Decide whether to store these separately or with the object they apply to.
@ -3523,6 +3579,8 @@ type Event struct {
Type string Type string
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// EventList is a list of events. // EventList is a list of events.
type EventList struct { type EventList struct {
metav1.TypeMeta metav1.TypeMeta
@ -3532,6 +3590,8 @@ type EventList struct {
Items []Event Items []Event
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// List holds a list of objects, which may not be known by the server. // List holds a list of objects, which may not be known by the server.
type List struct { type List struct {
metav1.TypeMeta metav1.TypeMeta
@ -3582,6 +3642,7 @@ type LimitRangeSpec struct {
} }
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// LimitRange sets resource usage limits for each kind of resource in a Namespace // LimitRange sets resource usage limits for each kind of resource in a Namespace
type LimitRange struct { type LimitRange struct {
@ -3594,6 +3655,8 @@ type LimitRange struct {
Spec LimitRangeSpec Spec LimitRangeSpec
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// LimitRangeList is a list of LimitRange items. // LimitRangeList is a list of LimitRange items.
type LimitRangeList struct { type LimitRangeList struct {
metav1.TypeMeta metav1.TypeMeta
@ -3672,6 +3735,7 @@ type ResourceQuotaStatus struct {
} }
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ResourceQuota sets aggregate quota restrictions enforced per namespace // ResourceQuota sets aggregate quota restrictions enforced per namespace
type ResourceQuota struct { type ResourceQuota struct {
@ -3688,6 +3752,8 @@ type ResourceQuota struct {
Status ResourceQuotaStatus Status ResourceQuotaStatus
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ResourceQuotaList is a list of ResourceQuota items // ResourceQuotaList is a list of ResourceQuota items
type ResourceQuotaList struct { type ResourceQuotaList struct {
metav1.TypeMeta metav1.TypeMeta
@ -3699,6 +3765,7 @@ type ResourceQuotaList struct {
} }
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Secret holds secret data of a certain type. The total bytes of the values in // Secret holds secret data of a certain type. The total bytes of the values in
// the Data field must be less than MaxSecretSize bytes. // the Data field must be less than MaxSecretSize bytes.
@ -3803,6 +3870,8 @@ const (
TLSPrivateKeyKey = "tls.key" TLSPrivateKeyKey = "tls.key"
) )
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type SecretList struct { type SecretList struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
@ -3812,6 +3881,7 @@ type SecretList struct {
} }
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ConfigMap holds configuration data for components or applications to consume. // ConfigMap holds configuration data for components or applications to consume.
type ConfigMap struct { type ConfigMap struct {
@ -3825,6 +3895,8 @@ type ConfigMap struct {
Data map[string]string Data map[string]string
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ConfigMapList is a resource containing a list of ConfigMap objects. // ConfigMapList is a resource containing a list of ConfigMap objects.
type ConfigMapList struct { type ConfigMapList struct {
metav1.TypeMeta metav1.TypeMeta
@ -3895,6 +3967,7 @@ type ComponentCondition struct {
// +genclient=true // +genclient=true
// +nonNamespaced=true // +nonNamespaced=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ComponentStatus (and ComponentStatusList) holds the cluster validation info. // ComponentStatus (and ComponentStatusList) holds the cluster validation info.
type ComponentStatus struct { type ComponentStatus struct {
@ -3906,6 +3979,8 @@ type ComponentStatus struct {
Conditions []ComponentCondition Conditions []ComponentCondition
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type ComponentStatusList struct { type ComponentStatusList struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
@ -3969,6 +4044,8 @@ type SELinuxOptions struct {
Level string Level string
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// RangeAllocation is an opaque API object (not exposed to end users) that can be persisted to record // RangeAllocation is an opaque API object (not exposed to end users) that can be persisted to record
// the global allocation state of the cluster. The schema of Range and Data generic, in that Range // the global allocation state of the cluster. The schema of Range and Data generic, in that Range
// should be a string representation of the inputs to a range (for instance, for IP allocation it // should be a string representation of the inputs to a range (for instance, for IP allocation it

View File

@ -33,11 +33,11 @@ type Time struct {
time.Time `protobuf:"-"` time.Time `protobuf:"-"`
} }
// DeepCopy returns a deep-copy of the Time value. The underlying time.Time // DeepCopyInto creates a deep-copy of the Time value. The underlying time.Time
// type is effectively immutable in the time API, so it is safe to // type is effectively immutable in the time API, so it is safe to
// copy-by-assign, despite the presence of (unexported) Pointer fields. // copy-by-assign, despite the presence of (unexported) Pointer fields.
func (t Time) DeepCopy() Time { func (t *Time) DeepCopyInto(out *Time) {
return t *out = *t
} }
// String returns the representation of the time. // String returns the representation of the time.

View File

@ -23,6 +23,8 @@ package unversioned
// TypeMeta describes an individual object in an API response or request // TypeMeta describes an individual object in an API response or request
// with strings representing the type of the object and its API schema version. // with strings representing the type of the object and its API schema version.
// Structures that are versioned or persisted should inline TypeMeta. // Structures that are versioned or persisted should inline TypeMeta.
//
// +k8s:deepcopy-gen=false
type TypeMeta struct { type TypeMeta struct {
// Kind is a string value representing the REST resource this object represents. // Kind is a string value representing the REST resource this object represents.
// Servers may infer this from the endpoint the client submits requests to. // Servers may infer this from the endpoint the client submits requests to.

File diff suppressed because it is too large Load Diff

View File

@ -10,12 +10,15 @@ load(
go_library( go_library(
name = "go_default_library", name = "go_default_library",
srcs = [ srcs = [
"doc.go",
"register.go", "register.go",
"types.go", "types.go",
"zz_generated.deepcopy.go",
], ],
tags = ["automanaged"], tags = ["automanaged"],
deps = [ deps = [
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library",

19
pkg/apis/abac/doc.go Normal file
View File

@ -0,0 +1,19 @@
/*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// +k8s:deepcopy-gen=package
package abac

View File

@ -20,6 +20,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
) )
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Policy contains a single ABAC policy rule // Policy contains a single ABAC policy rule
type Policy struct { type Policy struct {
metav1.TypeMeta metav1.TypeMeta

View File

@ -12,8 +12,10 @@ go_library(
name = "go_default_library", name = "go_default_library",
srcs = [ srcs = [
"conversion.go", "conversion.go",
"doc.go",
"register.go", "register.go",
"types.go", "types.go",
"zz_generated.deepcopy.go",
], ],
tags = ["automanaged"], tags = ["automanaged"],
deps = [ deps = [

20
pkg/apis/abac/v0/doc.go Normal file
View File

@ -0,0 +1,20 @@
/*
Copyright 2016 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// +k8s:deepcopy-gen=package,register
// +groupName=abac.authorization.kubernetes.io
package v0 // import "k8s.io/kubernetes/pkg/apis/abac/v0"

View File

@ -21,6 +21,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
) )
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Policy contains a single ABAC policy rule // Policy contains a single ABAC policy rule
type Policy struct { type Policy struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`

View File

@ -0,0 +1,69 @@
// +build !ignore_autogenerated
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
package v0
import (
conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect"
)
// Deprecated: register deep-copy functions.
func init() {
SchemeBuilder.Register(RegisterDeepCopies)
}
// Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Policy).DeepCopyInto(out.(*Policy))
return nil
}, InType: reflect.TypeOf(&Policy{})},
)
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Policy) DeepCopyInto(out *Policy) {
*out = *in
out.TypeMeta = in.TypeMeta
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Policy.
func (x *Policy) DeepCopy() *Policy {
if x == nil {
return nil
}
out := new(Policy)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Policy) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil
}
}

View File

@ -21,6 +21,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
) )
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Policy contains a single ABAC policy rule // Policy contains a single ABAC policy rule
type Policy struct { type Policy struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`

View File

@ -26,35 +26,65 @@ import (
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_Policy, InType: reflect.TypeOf(&Policy{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1beta1_PolicySpec, InType: reflect.TypeOf(&PolicySpec{})}, in.(*Policy).DeepCopyInto(out.(*Policy))
return nil
}, InType: reflect.TypeOf(&Policy{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PolicySpec).DeepCopyInto(out.(*PolicySpec))
return nil
}, InType: reflect.TypeOf(&PolicySpec{})},
) )
} }
// DeepCopy_v1beta1_Policy is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1beta1_Policy(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *Policy) DeepCopyInto(out *Policy) {
{
in := in.(*Policy)
out := out.(*Policy)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
out.Spec = in.Spec
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Policy.
func (x *Policy) DeepCopy() *Policy {
if x == nil {
return nil
}
out := new(Policy)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Policy) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_v1beta1_PolicySpec is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1beta1_PolicySpec(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *PolicySpec) DeepCopyInto(out *PolicySpec) {
{
in := in.(*PolicySpec)
out := out.(*PolicySpec)
*out = *in *out = *in
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PolicySpec.
func (x *PolicySpec) DeepCopy() *PolicySpec {
if x == nil {
return nil return nil
} }
out := new(PolicySpec)
x.DeepCopyInto(out)
return out
} }

View File

@ -0,0 +1,84 @@
// +build !ignore_autogenerated
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
package abac
import (
conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect"
)
// Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc {
return []conversion.GeneratedDeepCopyFunc{
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Policy).DeepCopyInto(out.(*Policy))
return nil
}, InType: reflect.TypeOf(&Policy{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PolicySpec).DeepCopyInto(out.(*PolicySpec))
return nil
}, InType: reflect.TypeOf(&PolicySpec{})},
}
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Policy) DeepCopyInto(out *Policy) {
*out = *in
out.TypeMeta = in.TypeMeta
out.Spec = in.Spec
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Policy.
func (x *Policy) DeepCopy() *Policy {
if x == nil {
return nil
}
out := new(Policy)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Policy) DeepCopyObject() runtime.Object {
if c := x.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 *PolicySpec) DeepCopyInto(out *PolicySpec) {
*out = *in
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PolicySpec.
func (x *PolicySpec) DeepCopy() *PolicySpec {
if x == nil {
return nil
}
out := new(PolicySpec)
x.DeepCopyInto(out)
return out
}

View File

@ -23,6 +23,8 @@ import (
"k8s.io/kubernetes/pkg/apis/authentication" "k8s.io/kubernetes/pkg/apis/authentication"
) )
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// AdmissionReview describes an admission request. // AdmissionReview describes an admission request.
type AdmissionReview struct { type AdmissionReview struct {
metav1.TypeMeta metav1.TypeMeta

View File

@ -23,6 +23,8 @@ import (
"k8s.io/apiserver/pkg/admission" "k8s.io/apiserver/pkg/admission"
) )
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// AdmissionReview describes an admission request. // AdmissionReview describes an admission request.
type AdmissionReview struct { type AdmissionReview struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`

View File

@ -21,80 +21,106 @@ limitations under the License.
package v1alpha1 package v1alpha1
import ( import (
v1 "k8s.io/api/authentication/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
meta_v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_AdmissionReview, InType: reflect.TypeOf(&AdmissionReview{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_AdmissionReviewSpec, InType: reflect.TypeOf(&AdmissionReviewSpec{})}, in.(*AdmissionReview).DeepCopyInto(out.(*AdmissionReview))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_AdmissionReviewStatus, InType: reflect.TypeOf(&AdmissionReviewStatus{})}, return nil
}, InType: reflect.TypeOf(&AdmissionReview{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*AdmissionReviewSpec).DeepCopyInto(out.(*AdmissionReviewSpec))
return nil
}, InType: reflect.TypeOf(&AdmissionReviewSpec{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*AdmissionReviewStatus).DeepCopyInto(out.(*AdmissionReviewStatus))
return nil
}, InType: reflect.TypeOf(&AdmissionReviewStatus{})},
) )
} }
// DeepCopy_v1alpha1_AdmissionReview is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1alpha1_AdmissionReview(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *AdmissionReview) DeepCopyInto(out *AdmissionReview) {
{
in := in.(*AdmissionReview)
out := out.(*AdmissionReview)
*out = *in *out = *in
if err := DeepCopy_v1alpha1_AdmissionReviewSpec(&in.Spec, &out.Spec, c); err != nil { out.TypeMeta = in.TypeMeta
return err in.Spec.DeepCopyInto(&out.Spec)
} in.Status.DeepCopyInto(&out.Status)
if err := DeepCopy_v1alpha1_AdmissionReviewStatus(&in.Status, &out.Status, c); err != nil { return
return err }
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionReview.
func (x *AdmissionReview) DeepCopy() *AdmissionReview {
if x == nil {
return nil
} }
out := new(AdmissionReview)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *AdmissionReview) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_v1alpha1_AdmissionReviewSpec is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1alpha1_AdmissionReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *AdmissionReviewSpec) DeepCopyInto(out *AdmissionReviewSpec) {
{
in := in.(*AdmissionReviewSpec)
out := out.(*AdmissionReviewSpec)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.Object); err != nil { out.Kind = in.Kind
return err in.Object.DeepCopyInto(&out.Object)
} else { in.OldObject.DeepCopyInto(&out.OldObject)
out.Object = *newVal.(*runtime.RawExtension) out.Resource = in.Resource
} in.UserInfo.DeepCopyInto(&out.UserInfo)
if newVal, err := c.DeepCopy(&in.OldObject); err != nil { return
return err
} else {
out.OldObject = *newVal.(*runtime.RawExtension)
}
if err := v1.DeepCopy_v1_UserInfo(&in.UserInfo, &out.UserInfo, c); err != nil {
return err
}
return nil
}
} }
// DeepCopy_v1alpha1_AdmissionReviewStatus is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionReviewSpec.
func DeepCopy_v1alpha1_AdmissionReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *AdmissionReviewSpec) DeepCopy() *AdmissionReviewSpec {
{ if x == nil {
in := in.(*AdmissionReviewStatus) return nil
out := out.(*AdmissionReviewStatus) }
out := new(AdmissionReviewSpec)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AdmissionReviewStatus) DeepCopyInto(out *AdmissionReviewStatus) {
*out = *in *out = *in
if in.Result != nil { if in.Result != nil {
in, out := &in.Result, &out.Result in, out := &in.Result, &out.Result
if newVal, err := c.DeepCopy(*in); err != nil { if *in == nil {
return err *out = nil
} else { } else {
*out = newVal.(*meta_v1.Status) *out = new(v1.Status)
(*in).DeepCopyInto(*out)
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionReviewStatus.
func (x *AdmissionReviewStatus) DeepCopy() *AdmissionReviewStatus {
if x == nil {
return nil return nil
} }
out := new(AdmissionReviewStatus)
x.DeepCopyInto(out)
return out
} }

View File

@ -24,83 +24,111 @@ import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1" v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
authentication "k8s.io/kubernetes/pkg/apis/authentication"
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admission_AdmissionReview, InType: reflect.TypeOf(&AdmissionReview{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admission_AdmissionReviewSpec, InType: reflect.TypeOf(&AdmissionReviewSpec{})}, in.(*AdmissionReview).DeepCopyInto(out.(*AdmissionReview))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admission_AdmissionReviewStatus, InType: reflect.TypeOf(&AdmissionReviewStatus{})}, return nil
}, InType: reflect.TypeOf(&AdmissionReview{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*AdmissionReviewSpec).DeepCopyInto(out.(*AdmissionReviewSpec))
return nil
}, InType: reflect.TypeOf(&AdmissionReviewSpec{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*AdmissionReviewStatus).DeepCopyInto(out.(*AdmissionReviewStatus))
return nil
}, InType: reflect.TypeOf(&AdmissionReviewStatus{})},
) )
} }
// DeepCopy_admission_AdmissionReview is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_admission_AdmissionReview(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *AdmissionReview) DeepCopyInto(out *AdmissionReview) {
{
in := in.(*AdmissionReview)
out := out.(*AdmissionReview)
*out = *in *out = *in
if err := DeepCopy_admission_AdmissionReviewSpec(&in.Spec, &out.Spec, c); err != nil { out.TypeMeta = in.TypeMeta
return err in.Spec.DeepCopyInto(&out.Spec)
} in.Status.DeepCopyInto(&out.Status)
if err := DeepCopy_admission_AdmissionReviewStatus(&in.Status, &out.Status, c); err != nil { return
return err }
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionReview.
func (x *AdmissionReview) DeepCopy() *AdmissionReview {
if x == nil {
return nil
} }
out := new(AdmissionReview)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *AdmissionReview) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_admission_AdmissionReviewSpec is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_admission_AdmissionReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *AdmissionReviewSpec) DeepCopyInto(out *AdmissionReviewSpec) {
{
in := in.(*AdmissionReviewSpec)
out := out.(*AdmissionReviewSpec)
*out = *in *out = *in
// in.Object is kind 'Interface' out.Kind = in.Kind
if in.Object != nil { if in.Object == nil {
if newVal, err := c.DeepCopy(&in.Object); err != nil { out.Object = nil
return err
} else { } else {
out.Object = *newVal.(*runtime.Object) out.Object = in.Object.DeepCopyObject()
} }
} if in.OldObject == nil {
// in.OldObject is kind 'Interface' out.OldObject = nil
if in.OldObject != nil {
if newVal, err := c.DeepCopy(&in.OldObject); err != nil {
return err
} else { } else {
out.OldObject = *newVal.(*runtime.Object) out.OldObject = in.OldObject.DeepCopyObject()
}
}
if err := authentication.DeepCopy_authentication_UserInfo(&in.UserInfo, &out.UserInfo, c); err != nil {
return err
}
return nil
} }
out.Resource = in.Resource
in.UserInfo.DeepCopyInto(&out.UserInfo)
return
} }
// DeepCopy_admission_AdmissionReviewStatus is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionReviewSpec.
func DeepCopy_admission_AdmissionReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *AdmissionReviewSpec) DeepCopy() *AdmissionReviewSpec {
{ if x == nil {
in := in.(*AdmissionReviewStatus) return nil
out := out.(*AdmissionReviewStatus) }
out := new(AdmissionReviewSpec)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *AdmissionReviewStatus) DeepCopyInto(out *AdmissionReviewStatus) {
*out = *in *out = *in
if in.Result != nil { if in.Result != nil {
in, out := &in.Result, &out.Result in, out := &in.Result, &out.Result
if newVal, err := c.DeepCopy(*in); err != nil { if *in == nil {
return err *out = nil
} else { } else {
*out = newVal.(*v1.Status) *out = new(v1.Status)
(*in).DeepCopyInto(*out)
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionReviewStatus.
func (x *AdmissionReviewStatus) DeepCopy() *AdmissionReviewStatus {
if x == nil {
return nil return nil
} }
out := new(AdmissionReviewStatus)
x.DeepCopyInto(out)
return out
} }

View File

@ -22,6 +22,7 @@ import (
// +genclient=true // +genclient=true
// +nonNamespaced=true // +nonNamespaced=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// InitializerConfiguration describes the configuration of initializers. // InitializerConfiguration describes the configuration of initializers.
type InitializerConfiguration struct { type InitializerConfiguration struct {
@ -40,6 +41,8 @@ type InitializerConfiguration struct {
Initializers []Initializer Initializers []Initializer
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// InitializerConfigurationList is a list of InitializerConfiguration. // InitializerConfigurationList is a list of InitializerConfiguration.
type InitializerConfigurationList struct { type InitializerConfigurationList struct {
metav1.TypeMeta metav1.TypeMeta
@ -120,6 +123,7 @@ const (
// +genclient=true // +genclient=true
// +nonNamespaced=true // +nonNamespaced=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ExternalAdmissionHookConfiguration describes the configuration of initializers. // ExternalAdmissionHookConfiguration describes the configuration of initializers.
type ExternalAdmissionHookConfiguration struct { type ExternalAdmissionHookConfiguration struct {
@ -133,6 +137,8 @@ type ExternalAdmissionHookConfiguration struct {
ExternalAdmissionHooks []ExternalAdmissionHook ExternalAdmissionHooks []ExternalAdmissionHook
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ExternalAdmissionHookConfigurationList is a list of ExternalAdmissionHookConfiguration. // ExternalAdmissionHookConfigurationList is a list of ExternalAdmissionHookConfiguration.
type ExternalAdmissionHookConfigurationList struct { type ExternalAdmissionHookConfigurationList struct {
metav1.TypeMeta metav1.TypeMeta

View File

@ -21,190 +21,288 @@ limitations under the License.
package admissionregistration package admissionregistration
import ( import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admissionregistration_AdmissionHookClientConfig, InType: reflect.TypeOf(&AdmissionHookClientConfig{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admissionregistration_ExternalAdmissionHook, InType: reflect.TypeOf(&ExternalAdmissionHook{})}, in.(*AdmissionHookClientConfig).DeepCopyInto(out.(*AdmissionHookClientConfig))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admissionregistration_ExternalAdmissionHookConfiguration, InType: reflect.TypeOf(&ExternalAdmissionHookConfiguration{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admissionregistration_ExternalAdmissionHookConfigurationList, InType: reflect.TypeOf(&ExternalAdmissionHookConfigurationList{})}, }, InType: reflect.TypeOf(&AdmissionHookClientConfig{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admissionregistration_Initializer, InType: reflect.TypeOf(&Initializer{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admissionregistration_InitializerConfiguration, InType: reflect.TypeOf(&InitializerConfiguration{})}, in.(*ExternalAdmissionHook).DeepCopyInto(out.(*ExternalAdmissionHook))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admissionregistration_InitializerConfigurationList, InType: reflect.TypeOf(&InitializerConfigurationList{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admissionregistration_Rule, InType: reflect.TypeOf(&Rule{})}, }, InType: reflect.TypeOf(&ExternalAdmissionHook{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admissionregistration_RuleWithOperations, InType: reflect.TypeOf(&RuleWithOperations{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_admissionregistration_ServiceReference, InType: reflect.TypeOf(&ServiceReference{})}, in.(*ExternalAdmissionHookConfiguration).DeepCopyInto(out.(*ExternalAdmissionHookConfiguration))
return nil
}, InType: reflect.TypeOf(&ExternalAdmissionHookConfiguration{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ExternalAdmissionHookConfigurationList).DeepCopyInto(out.(*ExternalAdmissionHookConfigurationList))
return nil
}, InType: reflect.TypeOf(&ExternalAdmissionHookConfigurationList{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Initializer).DeepCopyInto(out.(*Initializer))
return nil
}, InType: reflect.TypeOf(&Initializer{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*InitializerConfiguration).DeepCopyInto(out.(*InitializerConfiguration))
return nil
}, InType: reflect.TypeOf(&InitializerConfiguration{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*InitializerConfigurationList).DeepCopyInto(out.(*InitializerConfigurationList))
return nil
}, InType: reflect.TypeOf(&InitializerConfigurationList{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Rule).DeepCopyInto(out.(*Rule))
return nil
}, InType: reflect.TypeOf(&Rule{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*RuleWithOperations).DeepCopyInto(out.(*RuleWithOperations))
return nil
}, InType: reflect.TypeOf(&RuleWithOperations{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ServiceReference).DeepCopyInto(out.(*ServiceReference))
return nil
}, InType: reflect.TypeOf(&ServiceReference{})},
) )
} }
// DeepCopy_admissionregistration_AdmissionHookClientConfig is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_admissionregistration_AdmissionHookClientConfig(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *AdmissionHookClientConfig) DeepCopyInto(out *AdmissionHookClientConfig) {
{
in := in.(*AdmissionHookClientConfig)
out := out.(*AdmissionHookClientConfig)
*out = *in *out = *in
out.Service = in.Service
if in.CABundle != nil { if in.CABundle != nil {
in, out := &in.CABundle, &out.CABundle in, out := &in.CABundle, &out.CABundle
*out = make([]byte, len(*in)) *out = make([]byte, len(*in))
copy(*out, *in) copy(*out, *in)
} }
return nil return
}
} }
// DeepCopy_admissionregistration_ExternalAdmissionHook is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new AdmissionHookClientConfig.
func DeepCopy_admissionregistration_ExternalAdmissionHook(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *AdmissionHookClientConfig) DeepCopy() *AdmissionHookClientConfig {
{ if x == nil {
in := in.(*ExternalAdmissionHook) return nil
out := out.(*ExternalAdmissionHook)
*out = *in
if err := DeepCopy_admissionregistration_AdmissionHookClientConfig(&in.ClientConfig, &out.ClientConfig, c); err != nil {
return err
} }
out := new(AdmissionHookClientConfig)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ExternalAdmissionHook) DeepCopyInto(out *ExternalAdmissionHook) {
*out = *in
in.ClientConfig.DeepCopyInto(&out.ClientConfig)
if in.Rules != nil { if in.Rules != nil {
in, out := &in.Rules, &out.Rules in, out := &in.Rules, &out.Rules
*out = make([]RuleWithOperations, len(*in)) *out = make([]RuleWithOperations, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_admissionregistration_RuleWithOperations(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
}
} }
} }
if in.FailurePolicy != nil { if in.FailurePolicy != nil {
in, out := &in.FailurePolicy, &out.FailurePolicy in, out := &in.FailurePolicy, &out.FailurePolicy
if *in == nil {
*out = nil
} else {
*out = new(FailurePolicyType) *out = new(FailurePolicyType)
**out = **in **out = **in
} }
return nil
} }
return
} }
// DeepCopy_admissionregistration_ExternalAdmissionHookConfiguration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ExternalAdmissionHook.
func DeepCopy_admissionregistration_ExternalAdmissionHookConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *ExternalAdmissionHook) DeepCopy() *ExternalAdmissionHook {
{ if x == nil {
in := in.(*ExternalAdmissionHookConfiguration) return nil
out := out.(*ExternalAdmissionHookConfiguration)
*out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
out := new(ExternalAdmissionHook)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ExternalAdmissionHookConfiguration) DeepCopyInto(out *ExternalAdmissionHookConfiguration) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
if in.ExternalAdmissionHooks != nil { if in.ExternalAdmissionHooks != nil {
in, out := &in.ExternalAdmissionHooks, &out.ExternalAdmissionHooks in, out := &in.ExternalAdmissionHooks, &out.ExternalAdmissionHooks
*out = make([]ExternalAdmissionHook, len(*in)) *out = make([]ExternalAdmissionHook, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_admissionregistration_ExternalAdmissionHook(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ExternalAdmissionHookConfiguration.
func (x *ExternalAdmissionHookConfiguration) DeepCopy() *ExternalAdmissionHookConfiguration {
if x == nil {
return nil
} }
out := new(ExternalAdmissionHookConfiguration)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *ExternalAdmissionHookConfiguration) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_admissionregistration_ExternalAdmissionHookConfigurationList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_admissionregistration_ExternalAdmissionHookConfigurationList(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *ExternalAdmissionHookConfigurationList) DeepCopyInto(out *ExternalAdmissionHookConfigurationList) {
{
in := in.(*ExternalAdmissionHookConfigurationList)
out := out.(*ExternalAdmissionHookConfigurationList)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]ExternalAdmissionHookConfiguration, len(*in)) *out = make([]ExternalAdmissionHookConfiguration, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_admissionregistration_ExternalAdmissionHookConfiguration(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ExternalAdmissionHookConfigurationList.
func (x *ExternalAdmissionHookConfigurationList) DeepCopy() *ExternalAdmissionHookConfigurationList {
if x == nil {
return nil
} }
out := new(ExternalAdmissionHookConfigurationList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *ExternalAdmissionHookConfigurationList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_admissionregistration_Initializer is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_admissionregistration_Initializer(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *Initializer) DeepCopyInto(out *Initializer) {
{
in := in.(*Initializer)
out := out.(*Initializer)
*out = *in *out = *in
if in.Rules != nil { if in.Rules != nil {
in, out := &in.Rules, &out.Rules in, out := &in.Rules, &out.Rules
*out = make([]Rule, len(*in)) *out = make([]Rule, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_admissionregistration_Rule(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
}
} }
} }
if in.FailurePolicy != nil { if in.FailurePolicy != nil {
in, out := &in.FailurePolicy, &out.FailurePolicy in, out := &in.FailurePolicy, &out.FailurePolicy
if *in == nil {
*out = nil
} else {
*out = new(FailurePolicyType) *out = new(FailurePolicyType)
**out = **in **out = **in
} }
return nil
} }
return
} }
// DeepCopy_admissionregistration_InitializerConfiguration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Initializer.
func DeepCopy_admissionregistration_InitializerConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *Initializer) DeepCopy() *Initializer {
{ if x == nil {
in := in.(*InitializerConfiguration) return nil
out := out.(*InitializerConfiguration)
*out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
out := new(Initializer)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *InitializerConfiguration) DeepCopyInto(out *InitializerConfiguration) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
if in.Initializers != nil { if in.Initializers != nil {
in, out := &in.Initializers, &out.Initializers in, out := &in.Initializers, &out.Initializers
*out = make([]Initializer, len(*in)) *out = make([]Initializer, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_admissionregistration_Initializer(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new InitializerConfiguration.
func (x *InitializerConfiguration) DeepCopy() *InitializerConfiguration {
if x == nil {
return nil
} }
out := new(InitializerConfiguration)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *InitializerConfiguration) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_admissionregistration_InitializerConfigurationList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_admissionregistration_InitializerConfigurationList(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *InitializerConfigurationList) DeepCopyInto(out *InitializerConfigurationList) {
{
in := in.(*InitializerConfigurationList)
out := out.(*InitializerConfigurationList)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]InitializerConfiguration, len(*in)) *out = make([]InitializerConfiguration, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_admissionregistration_InitializerConfiguration(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new InitializerConfigurationList.
func (x *InitializerConfigurationList) DeepCopy() *InitializerConfigurationList {
if x == nil {
return nil
} }
out := new(InitializerConfigurationList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *InitializerConfigurationList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_admissionregistration_Rule is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_admissionregistration_Rule(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *Rule) DeepCopyInto(out *Rule) {
{
in := in.(*Rule)
out := out.(*Rule)
*out = *in *out = *in
if in.APIGroups != nil { if in.APIGroups != nil {
in, out := &in.APIGroups, &out.APIGroups in, out := &in.APIGroups, &out.APIGroups
@ -221,34 +319,53 @@ func DeepCopy_admissionregistration_Rule(in interface{}, out interface{}, c *con
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} }
return nil return
}
} }
// DeepCopy_admissionregistration_RuleWithOperations is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Rule.
func DeepCopy_admissionregistration_RuleWithOperations(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *Rule) DeepCopy() *Rule {
{ if x == nil {
in := in.(*RuleWithOperations) return nil
out := out.(*RuleWithOperations) }
out := new(Rule)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *RuleWithOperations) DeepCopyInto(out *RuleWithOperations) {
*out = *in *out = *in
if in.Operations != nil { if in.Operations != nil {
in, out := &in.Operations, &out.Operations in, out := &in.Operations, &out.Operations
*out = make([]OperationType, len(*in)) *out = make([]OperationType, len(*in))
copy(*out, *in) copy(*out, *in)
} }
if err := DeepCopy_admissionregistration_Rule(&in.Rule, &out.Rule, c); err != nil { in.Rule.DeepCopyInto(&out.Rule)
return err return
}
return nil
}
} }
// DeepCopy_admissionregistration_ServiceReference is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new RuleWithOperations.
func DeepCopy_admissionregistration_ServiceReference(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *RuleWithOperations) DeepCopy() *RuleWithOperations {
{ if x == nil {
in := in.(*ServiceReference)
out := out.(*ServiceReference)
*out = *in
return nil return nil
} }
out := new(RuleWithOperations)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ServiceReference) DeepCopyInto(out *ServiceReference) {
*out = *in
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ServiceReference.
func (x *ServiceReference) DeepCopy() *ServiceReference {
if x == nil {
return nil
}
out := new(ServiceReference)
x.DeepCopyInto(out)
return out
} }

View File

@ -23,6 +23,7 @@ import (
) )
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// StatefulSet represents a set of pods with consistent identities. // StatefulSet represents a set of pods with consistent identities.
// Identities are defined as: // Identities are defined as:
@ -188,6 +189,8 @@ type StatefulSetStatus struct {
UpdateRevision string UpdateRevision string
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// StatefulSetList is a collection of StatefulSets. // StatefulSetList is a collection of StatefulSets.
type StatefulSetList struct { type StatefulSetList struct {
metav1.TypeMeta metav1.TypeMeta
@ -197,6 +200,7 @@ type StatefulSetList struct {
} }
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ControllerRevision implements an immutable snapshot of state data. Clients // ControllerRevision implements an immutable snapshot of state data. Clients
// are responsible for serializing and deserializing the objects that contain // are responsible for serializing and deserializing the objects that contain
@ -218,6 +222,8 @@ type ControllerRevision struct {
Revision int64 Revision int64
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ControllerRevisionList is a resource containing a list of ControllerRevision objects. // ControllerRevisionList is a resource containing a list of ControllerRevision objects.
type ControllerRevisionList struct { type ControllerRevisionList struct {
metav1.TypeMeta metav1.TypeMeta

View File

@ -28,181 +28,284 @@ import (
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_ControllerRevision, InType: reflect.TypeOf(&ControllerRevision{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_ControllerRevisionList, InType: reflect.TypeOf(&ControllerRevisionList{})}, in.(*ControllerRevision).DeepCopyInto(out.(*ControllerRevision))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_RollingUpdateStatefulSetStrategy, InType: reflect.TypeOf(&RollingUpdateStatefulSetStrategy{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_StatefulSet, InType: reflect.TypeOf(&StatefulSet{})}, }, InType: reflect.TypeOf(&ControllerRevision{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_StatefulSetList, InType: reflect.TypeOf(&StatefulSetList{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_StatefulSetSpec, InType: reflect.TypeOf(&StatefulSetSpec{})}, in.(*ControllerRevisionList).DeepCopyInto(out.(*ControllerRevisionList))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_StatefulSetStatus, InType: reflect.TypeOf(&StatefulSetStatus{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_apps_StatefulSetUpdateStrategy, InType: reflect.TypeOf(&StatefulSetUpdateStrategy{})}, }, InType: reflect.TypeOf(&ControllerRevisionList{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*RollingUpdateStatefulSetStrategy).DeepCopyInto(out.(*RollingUpdateStatefulSetStrategy))
return nil
}, InType: reflect.TypeOf(&RollingUpdateStatefulSetStrategy{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*StatefulSet).DeepCopyInto(out.(*StatefulSet))
return nil
}, InType: reflect.TypeOf(&StatefulSet{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*StatefulSetList).DeepCopyInto(out.(*StatefulSetList))
return nil
}, InType: reflect.TypeOf(&StatefulSetList{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*StatefulSetSpec).DeepCopyInto(out.(*StatefulSetSpec))
return nil
}, InType: reflect.TypeOf(&StatefulSetSpec{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*StatefulSetStatus).DeepCopyInto(out.(*StatefulSetStatus))
return nil
}, InType: reflect.TypeOf(&StatefulSetStatus{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*StatefulSetUpdateStrategy).DeepCopyInto(out.(*StatefulSetUpdateStrategy))
return nil
}, InType: reflect.TypeOf(&StatefulSetUpdateStrategy{})},
) )
} }
// DeepCopy_apps_ControllerRevision is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_apps_ControllerRevision(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *ControllerRevision) DeepCopyInto(out *ControllerRevision) {
{
in := in.(*ControllerRevision)
out := out.(*ControllerRevision)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
if in.Data == nil {
out.Data = nil
} else { } else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta) out.Data = in.Data.DeepCopyObject()
} }
// in.Data is kind 'Interface' return
if in.Data != nil { }
if newVal, err := c.DeepCopy(&in.Data); err != nil {
return err // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ControllerRevision.
func (x *ControllerRevision) DeepCopy() *ControllerRevision {
if x == nil {
return nil
}
out := new(ControllerRevision)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *ControllerRevision) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
out.Data = *newVal.(*runtime.Object)
}
}
return nil return nil
} }
} }
// DeepCopy_apps_ControllerRevisionList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_apps_ControllerRevisionList(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *ControllerRevisionList) DeepCopyInto(out *ControllerRevisionList) {
{
in := in.(*ControllerRevisionList)
out := out.(*ControllerRevisionList)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]ControllerRevision, len(*in)) *out = make([]ControllerRevision, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_apps_ControllerRevision(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
} return
return nil
}
} }
// DeepCopy_apps_RollingUpdateStatefulSetStrategy is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ControllerRevisionList.
func DeepCopy_apps_RollingUpdateStatefulSetStrategy(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *ControllerRevisionList) DeepCopy() *ControllerRevisionList {
{ if x == nil {
in := in.(*RollingUpdateStatefulSetStrategy)
out := out.(*RollingUpdateStatefulSetStrategy)
*out = *in
return nil return nil
} }
out := new(ControllerRevisionList)
x.DeepCopyInto(out)
return out
} }
// DeepCopy_apps_StatefulSet is an autogenerated deepcopy function. // DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func DeepCopy_apps_StatefulSet(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *ControllerRevisionList) DeepCopyObject() runtime.Object {
{ if c := x.DeepCopy(); c != nil {
in := in.(*StatefulSet) return c
out := out.(*StatefulSet)
*out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err
} else { } else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
if err := DeepCopy_apps_StatefulSetSpec(&in.Spec, &out.Spec, c); err != nil {
return err
}
if err := DeepCopy_apps_StatefulSetStatus(&in.Status, &out.Status, c); err != nil {
return err
}
return nil return nil
} }
} }
// DeepCopy_apps_StatefulSetList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_apps_StatefulSetList(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *RollingUpdateStatefulSetStrategy) DeepCopyInto(out *RollingUpdateStatefulSetStrategy) {
{
in := in.(*StatefulSetList)
out := out.(*StatefulSetList)
*out = *in *out = *in
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new RollingUpdateStatefulSetStrategy.
func (x *RollingUpdateStatefulSetStrategy) DeepCopy() *RollingUpdateStatefulSetStrategy {
if x == nil {
return nil
}
out := new(RollingUpdateStatefulSetStrategy)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *StatefulSet) DeepCopyInto(out *StatefulSet) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
in.Status.DeepCopyInto(&out.Status)
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSet.
func (x *StatefulSet) DeepCopy() *StatefulSet {
if x == nil {
return nil
}
out := new(StatefulSet)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *StatefulSet) DeepCopyObject() runtime.Object {
if c := x.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 *StatefulSetList) DeepCopyInto(out *StatefulSetList) {
*out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]StatefulSet, len(*in)) *out = make([]StatefulSet, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_apps_StatefulSet(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetList.
func (x *StatefulSetList) DeepCopy() *StatefulSetList {
if x == nil {
return nil
} }
out := new(StatefulSetList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *StatefulSetList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_apps_StatefulSetSpec is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_apps_StatefulSetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *StatefulSetSpec) DeepCopyInto(out *StatefulSetSpec) {
{
in := in.(*StatefulSetSpec)
out := out.(*StatefulSetSpec)
*out = *in *out = *in
if in.Selector != nil { if in.Selector != nil {
in, out := &in.Selector, &out.Selector in, out := &in.Selector, &out.Selector
if newVal, err := c.DeepCopy(*in); err != nil { if *in == nil {
return err *out = nil
} else { } else {
*out = newVal.(*v1.LabelSelector) *out = new(v1.LabelSelector)
(*in).DeepCopyInto(*out)
} }
} }
if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil { in.Template.DeepCopyInto(&out.Template)
return err
}
if in.VolumeClaimTemplates != nil { if in.VolumeClaimTemplates != nil {
in, out := &in.VolumeClaimTemplates, &out.VolumeClaimTemplates in, out := &in.VolumeClaimTemplates, &out.VolumeClaimTemplates
*out = make([]api.PersistentVolumeClaim, len(*in)) *out = make([]api.PersistentVolumeClaim, len(*in))
for i := range *in { for i := range *in {
if err := api.DeepCopy_api_PersistentVolumeClaim(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
} in.UpdateStrategy.DeepCopyInto(&out.UpdateStrategy)
if err := DeepCopy_apps_StatefulSetUpdateStrategy(&in.UpdateStrategy, &out.UpdateStrategy, c); err != nil {
return err
}
if in.RevisionHistoryLimit != nil { if in.RevisionHistoryLimit != nil {
in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit in, out := &in.RevisionHistoryLimit, &out.RevisionHistoryLimit
if *in == nil {
*out = nil
} else {
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} }
return nil
} }
return
} }
// DeepCopy_apps_StatefulSetStatus is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetSpec.
func DeepCopy_apps_StatefulSetStatus(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *StatefulSetSpec) DeepCopy() *StatefulSetSpec {
{ if x == nil {
in := in.(*StatefulSetStatus) return nil
out := out.(*StatefulSetStatus) }
out := new(StatefulSetSpec)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *StatefulSetStatus) DeepCopyInto(out *StatefulSetStatus) {
*out = *in *out = *in
if in.ObservedGeneration != nil { if in.ObservedGeneration != nil {
in, out := &in.ObservedGeneration, &out.ObservedGeneration in, out := &in.ObservedGeneration, &out.ObservedGeneration
if *in == nil {
*out = nil
} else {
*out = new(int64) *out = new(int64)
**out = **in **out = **in
} }
return nil
} }
return
} }
// DeepCopy_apps_StatefulSetUpdateStrategy is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetStatus.
func DeepCopy_apps_StatefulSetUpdateStrategy(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *StatefulSetStatus) DeepCopy() *StatefulSetStatus {
{ if x == nil {
in := in.(*StatefulSetUpdateStrategy) return nil
out := out.(*StatefulSetUpdateStrategy) }
out := new(StatefulSetStatus)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *StatefulSetUpdateStrategy) DeepCopyInto(out *StatefulSetUpdateStrategy) {
*out = *in *out = *in
if in.RollingUpdate != nil { if in.RollingUpdate != nil {
in, out := &in.RollingUpdate, &out.RollingUpdate in, out := &in.RollingUpdate, &out.RollingUpdate
if *in == nil {
*out = nil
} else {
*out = new(RollingUpdateStatefulSetStrategy) *out = new(RollingUpdateStatefulSetStrategy)
**out = **in **out = **in
} }
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new StatefulSetUpdateStrategy.
func (x *StatefulSetUpdateStrategy) DeepCopy() *StatefulSetUpdateStrategy {
if x == nil {
return nil return nil
} }
out := new(StatefulSetUpdateStrategy)
x.DeepCopyInto(out)
return out
} }

View File

@ -38,6 +38,7 @@ const (
// +genclient=true // +genclient=true
// +nonNamespaced=true // +nonNamespaced=true
// +noMethods=true // +noMethods=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// TokenReview attempts to authenticate a token to a known user. // TokenReview attempts to authenticate a token to a known user.
type TokenReview struct { type TokenReview struct {

View File

@ -21,73 +21,103 @@ limitations under the License.
package authentication package authentication
import ( import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authentication_TokenReview, InType: reflect.TypeOf(&TokenReview{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authentication_TokenReviewSpec, InType: reflect.TypeOf(&TokenReviewSpec{})}, in.(*TokenReview).DeepCopyInto(out.(*TokenReview))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authentication_TokenReviewStatus, InType: reflect.TypeOf(&TokenReviewStatus{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authentication_UserInfo, InType: reflect.TypeOf(&UserInfo{})}, }, InType: reflect.TypeOf(&TokenReview{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*TokenReviewSpec).DeepCopyInto(out.(*TokenReviewSpec))
return nil
}, InType: reflect.TypeOf(&TokenReviewSpec{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*TokenReviewStatus).DeepCopyInto(out.(*TokenReviewStatus))
return nil
}, InType: reflect.TypeOf(&TokenReviewStatus{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*UserInfo).DeepCopyInto(out.(*UserInfo))
return nil
}, InType: reflect.TypeOf(&UserInfo{})},
) )
} }
// DeepCopy_authentication_TokenReview is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_authentication_TokenReview(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *TokenReview) DeepCopyInto(out *TokenReview) {
{
in := in.(*TokenReview)
out := out.(*TokenReview)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
out.Spec = in.Spec
in.Status.DeepCopyInto(&out.Status)
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TokenReview.
func (x *TokenReview) DeepCopy() *TokenReview {
if x == nil {
return nil
}
out := new(TokenReview)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *TokenReview) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
if err := DeepCopy_authentication_TokenReviewStatus(&in.Status, &out.Status, c); err != nil {
return err
}
return nil return nil
} }
} }
// DeepCopy_authentication_TokenReviewSpec is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_authentication_TokenReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *TokenReviewSpec) DeepCopyInto(out *TokenReviewSpec) {
{
in := in.(*TokenReviewSpec)
out := out.(*TokenReviewSpec)
*out = *in *out = *in
return nil return
}
} }
// DeepCopy_authentication_TokenReviewStatus is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TokenReviewSpec.
func DeepCopy_authentication_TokenReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *TokenReviewSpec) DeepCopy() *TokenReviewSpec {
{ if x == nil {
in := in.(*TokenReviewStatus) return nil
out := out.(*TokenReviewStatus) }
out := new(TokenReviewSpec)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *TokenReviewStatus) DeepCopyInto(out *TokenReviewStatus) {
*out = *in *out = *in
if err := DeepCopy_authentication_UserInfo(&in.User, &out.User, c); err != nil { in.User.DeepCopyInto(&out.User)
return err return
}
return nil
}
} }
// DeepCopy_authentication_UserInfo is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TokenReviewStatus.
func DeepCopy_authentication_UserInfo(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *TokenReviewStatus) DeepCopy() *TokenReviewStatus {
{ if x == nil {
in := in.(*UserInfo) return nil
out := out.(*UserInfo) }
out := new(TokenReviewStatus)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *UserInfo) DeepCopyInto(out *UserInfo) {
*out = *in *out = *in
if in.Groups != nil { if in.Groups != nil {
in, out := &in.Groups, &out.Groups in, out := &in.Groups, &out.Groups
@ -96,15 +126,21 @@ func DeepCopy_authentication_UserInfo(in interface{}, out interface{}, c *conver
} }
if in.Extra != nil { if in.Extra != nil {
in, out := &in.Extra, &out.Extra in, out := &in.Extra, &out.Extra
*out = make(map[string]ExtraValue) *out = make(map[string]ExtraValue, len(*in))
for key, val := range *in { for key, val := range *in {
if newVal, err := c.DeepCopy(&val); err != nil { (*out)[key] = make(ExtraValue, len(val))
return err copy((*out)[key], val)
} else {
(*out)[key] = *newVal.(*ExtraValue)
}
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new UserInfo.
func (x *UserInfo) DeepCopy() *UserInfo {
if x == nil {
return nil return nil
} }
out := new(UserInfo)
x.DeepCopyInto(out)
return out
} }

View File

@ -23,6 +23,7 @@ import (
// +genclient=true // +genclient=true
// +nonNamespaced=true // +nonNamespaced=true
// +noMethods=true // +noMethods=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// SubjectAccessReview checks whether or not a user or group can perform an action. Not filling in a // SubjectAccessReview checks whether or not a user or group can perform an action. Not filling in a
// spec.namespace means "in all namespaces". // spec.namespace means "in all namespaces".
@ -40,6 +41,7 @@ type SubjectAccessReview struct {
// +genclient=true // +genclient=true
// +nonNamespaced=true // +nonNamespaced=true
// +noMethods=true // +noMethods=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a // SelfSubjectAccessReview checks whether or the current user can perform an action. Not filling in a
// spec.namespace means "in all namespaces". Self is a special case, because users should always be able // spec.namespace means "in all namespaces". Self is a special case, because users should always be able
@ -57,6 +59,7 @@ type SelfSubjectAccessReview struct {
// +genclient=true // +genclient=true
// +noMethods=true // +noMethods=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace. // LocalSubjectAccessReview checks whether or not a user or group can perform an action in a given namespace.
// Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions // Having a namespace scoped resource makes it much easier to grant namespace scoped policy that includes permissions

View File

@ -21,141 +21,229 @@ limitations under the License.
package authorization package authorization
import ( import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_LocalSubjectAccessReview, InType: reflect.TypeOf(&LocalSubjectAccessReview{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_NonResourceAttributes, InType: reflect.TypeOf(&NonResourceAttributes{})}, in.(*LocalSubjectAccessReview).DeepCopyInto(out.(*LocalSubjectAccessReview))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_ResourceAttributes, InType: reflect.TypeOf(&ResourceAttributes{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_SelfSubjectAccessReview, InType: reflect.TypeOf(&SelfSubjectAccessReview{})}, }, InType: reflect.TypeOf(&LocalSubjectAccessReview{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_SelfSubjectAccessReviewSpec, InType: reflect.TypeOf(&SelfSubjectAccessReviewSpec{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_SubjectAccessReview, InType: reflect.TypeOf(&SubjectAccessReview{})}, in.(*NonResourceAttributes).DeepCopyInto(out.(*NonResourceAttributes))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_SubjectAccessReviewSpec, InType: reflect.TypeOf(&SubjectAccessReviewSpec{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_authorization_SubjectAccessReviewStatus, InType: reflect.TypeOf(&SubjectAccessReviewStatus{})}, }, InType: reflect.TypeOf(&NonResourceAttributes{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ResourceAttributes).DeepCopyInto(out.(*ResourceAttributes))
return nil
}, InType: reflect.TypeOf(&ResourceAttributes{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*SelfSubjectAccessReview).DeepCopyInto(out.(*SelfSubjectAccessReview))
return nil
}, InType: reflect.TypeOf(&SelfSubjectAccessReview{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*SelfSubjectAccessReviewSpec).DeepCopyInto(out.(*SelfSubjectAccessReviewSpec))
return nil
}, InType: reflect.TypeOf(&SelfSubjectAccessReviewSpec{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*SubjectAccessReview).DeepCopyInto(out.(*SubjectAccessReview))
return nil
}, InType: reflect.TypeOf(&SubjectAccessReview{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*SubjectAccessReviewSpec).DeepCopyInto(out.(*SubjectAccessReviewSpec))
return nil
}, InType: reflect.TypeOf(&SubjectAccessReviewSpec{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*SubjectAccessReviewStatus).DeepCopyInto(out.(*SubjectAccessReviewStatus))
return nil
}, InType: reflect.TypeOf(&SubjectAccessReviewStatus{})},
) )
} }
// DeepCopy_authorization_LocalSubjectAccessReview is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_authorization_LocalSubjectAccessReview(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *LocalSubjectAccessReview) DeepCopyInto(out *LocalSubjectAccessReview) {
{
in := in.(*LocalSubjectAccessReview)
out := out.(*LocalSubjectAccessReview)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
out.Status = in.Status
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new LocalSubjectAccessReview.
func (x *LocalSubjectAccessReview) DeepCopy() *LocalSubjectAccessReview {
if x == nil {
return nil
}
out := new(LocalSubjectAccessReview)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *LocalSubjectAccessReview) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
if err := DeepCopy_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err
}
return nil return nil
} }
} }
// DeepCopy_authorization_NonResourceAttributes is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_authorization_NonResourceAttributes(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *NonResourceAttributes) DeepCopyInto(out *NonResourceAttributes) {
{
in := in.(*NonResourceAttributes)
out := out.(*NonResourceAttributes)
*out = *in *out = *in
return nil return
}
} }
// DeepCopy_authorization_ResourceAttributes is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NonResourceAttributes.
func DeepCopy_authorization_ResourceAttributes(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *NonResourceAttributes) DeepCopy() *NonResourceAttributes {
{ if x == nil {
in := in.(*ResourceAttributes)
out := out.(*ResourceAttributes)
*out = *in
return nil return nil
} }
out := new(NonResourceAttributes)
x.DeepCopyInto(out)
return out
} }
// DeepCopy_authorization_SelfSubjectAccessReview is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_authorization_SelfSubjectAccessReview(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *ResourceAttributes) DeepCopyInto(out *ResourceAttributes) {
{
in := in.(*SelfSubjectAccessReview)
out := out.(*SelfSubjectAccessReview)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { return
return err }
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ResourceAttributes.
func (x *ResourceAttributes) DeepCopy() *ResourceAttributes {
if x == nil {
return nil
}
out := new(ResourceAttributes)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *SelfSubjectAccessReview) DeepCopyInto(out *SelfSubjectAccessReview) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
out.Status = in.Status
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReview.
func (x *SelfSubjectAccessReview) DeepCopy() *SelfSubjectAccessReview {
if x == nil {
return nil
}
out := new(SelfSubjectAccessReview)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *SelfSubjectAccessReview) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
if err := DeepCopy_authorization_SelfSubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err
}
return nil return nil
} }
} }
// DeepCopy_authorization_SelfSubjectAccessReviewSpec is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_authorization_SelfSubjectAccessReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *SelfSubjectAccessReviewSpec) DeepCopyInto(out *SelfSubjectAccessReviewSpec) {
{
in := in.(*SelfSubjectAccessReviewSpec)
out := out.(*SelfSubjectAccessReviewSpec)
*out = *in *out = *in
if in.ResourceAttributes != nil { if in.ResourceAttributes != nil {
in, out := &in.ResourceAttributes, &out.ResourceAttributes in, out := &in.ResourceAttributes, &out.ResourceAttributes
if *in == nil {
*out = nil
} else {
*out = new(ResourceAttributes) *out = new(ResourceAttributes)
**out = **in **out = **in
} }
}
if in.NonResourceAttributes != nil { if in.NonResourceAttributes != nil {
in, out := &in.NonResourceAttributes, &out.NonResourceAttributes in, out := &in.NonResourceAttributes, &out.NonResourceAttributes
if *in == nil {
*out = nil
} else {
*out = new(NonResourceAttributes) *out = new(NonResourceAttributes)
**out = **in **out = **in
} }
return nil
} }
return
} }
// DeepCopy_authorization_SubjectAccessReview is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new SelfSubjectAccessReviewSpec.
func DeepCopy_authorization_SubjectAccessReview(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *SelfSubjectAccessReviewSpec) DeepCopy() *SelfSubjectAccessReviewSpec {
{ if x == nil {
in := in.(*SubjectAccessReview) return nil
out := out.(*SubjectAccessReview) }
out := new(SelfSubjectAccessReviewSpec)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *SubjectAccessReview) DeepCopyInto(out *SubjectAccessReview) {
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
out.Status = in.Status
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReview.
func (x *SubjectAccessReview) DeepCopy() *SubjectAccessReview {
if x == nil {
return nil
}
out := new(SubjectAccessReview)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *SubjectAccessReview) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
if err := DeepCopy_authorization_SubjectAccessReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err
}
return nil return nil
} }
} }
// DeepCopy_authorization_SubjectAccessReviewSpec is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_authorization_SubjectAccessReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *SubjectAccessReviewSpec) DeepCopyInto(out *SubjectAccessReviewSpec) {
{
in := in.(*SubjectAccessReviewSpec)
out := out.(*SubjectAccessReviewSpec)
*out = *in *out = *in
if in.ResourceAttributes != nil { if in.ResourceAttributes != nil {
in, out := &in.ResourceAttributes, &out.ResourceAttributes in, out := &in.ResourceAttributes, &out.ResourceAttributes
if *in == nil {
*out = nil
} else {
*out = new(ResourceAttributes) *out = new(ResourceAttributes)
**out = **in **out = **in
} }
}
if in.NonResourceAttributes != nil { if in.NonResourceAttributes != nil {
in, out := &in.NonResourceAttributes, &out.NonResourceAttributes in, out := &in.NonResourceAttributes, &out.NonResourceAttributes
if *in == nil {
*out = nil
} else {
*out = new(NonResourceAttributes) *out = new(NonResourceAttributes)
**out = **in **out = **in
} }
}
if in.Groups != nil { if in.Groups != nil {
in, out := &in.Groups, &out.Groups in, out := &in.Groups, &out.Groups
*out = make([]string, len(*in)) *out = make([]string, len(*in))
@ -163,25 +251,37 @@ func DeepCopy_authorization_SubjectAccessReviewSpec(in interface{}, out interfac
} }
if in.Extra != nil { if in.Extra != nil {
in, out := &in.Extra, &out.Extra in, out := &in.Extra, &out.Extra
*out = make(map[string]ExtraValue) *out = make(map[string]ExtraValue, len(*in))
for key, val := range *in { for key, val := range *in {
if newVal, err := c.DeepCopy(&val); err != nil { (*out)[key] = make(ExtraValue, len(val))
return err copy((*out)[key], val)
} else {
(*out)[key] = *newVal.(*ExtraValue)
} }
} }
} return
return nil
}
} }
// DeepCopy_authorization_SubjectAccessReviewStatus is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewSpec.
func DeepCopy_authorization_SubjectAccessReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *SubjectAccessReviewSpec) DeepCopy() *SubjectAccessReviewSpec {
{ if x == nil {
in := in.(*SubjectAccessReviewStatus)
out := out.(*SubjectAccessReviewStatus)
*out = *in
return nil return nil
} }
out := new(SubjectAccessReviewSpec)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *SubjectAccessReviewStatus) DeepCopyInto(out *SubjectAccessReviewStatus) {
*out = *in
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new SubjectAccessReviewStatus.
func (x *SubjectAccessReviewStatus) DeepCopy() *SubjectAccessReviewStatus {
if x == nil {
return nil
}
out := new(SubjectAccessReviewStatus)
x.DeepCopyInto(out)
return out
} }

View File

@ -22,6 +22,8 @@ import (
"k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api"
) )
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Scale represents a scaling request for a resource. // Scale represents a scaling request for a resource.
type Scale struct { type Scale struct {
metav1.TypeMeta metav1.TypeMeta
@ -325,6 +327,7 @@ type ResourceMetricStatus struct {
} }
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// HorizontalPodAutoscaler is the configuration for a horizontal pod // HorizontalPodAutoscaler is the configuration for a horizontal pod
// autoscaler, which automatically manages the replica count of any resource // autoscaler, which automatically manages the replica count of any resource
@ -346,6 +349,8 @@ type HorizontalPodAutoscaler struct {
Status HorizontalPodAutoscalerStatus Status HorizontalPodAutoscalerStatus
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects. // HorizontalPodAutoscaler is a list of horizontal pod autoscaler objects.
type HorizontalPodAutoscalerList struct { type HorizontalPodAutoscalerList struct {
metav1.TypeMeta metav1.TypeMeta

View File

@ -28,330 +28,536 @@ import (
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_CrossVersionObjectReference, InType: reflect.TypeOf(&CrossVersionObjectReference{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_HorizontalPodAutoscaler, InType: reflect.TypeOf(&HorizontalPodAutoscaler{})}, in.(*CrossVersionObjectReference).DeepCopyInto(out.(*CrossVersionObjectReference))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_HorizontalPodAutoscalerCondition, InType: reflect.TypeOf(&HorizontalPodAutoscalerCondition{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_HorizontalPodAutoscalerList, InType: reflect.TypeOf(&HorizontalPodAutoscalerList{})}, }, InType: reflect.TypeOf(&CrossVersionObjectReference{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_HorizontalPodAutoscalerSpec, InType: reflect.TypeOf(&HorizontalPodAutoscalerSpec{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_HorizontalPodAutoscalerStatus, InType: reflect.TypeOf(&HorizontalPodAutoscalerStatus{})}, in.(*HorizontalPodAutoscaler).DeepCopyInto(out.(*HorizontalPodAutoscaler))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_MetricSpec, InType: reflect.TypeOf(&MetricSpec{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_MetricStatus, InType: reflect.TypeOf(&MetricStatus{})}, }, InType: reflect.TypeOf(&HorizontalPodAutoscaler{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_ObjectMetricSource, InType: reflect.TypeOf(&ObjectMetricSource{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_ObjectMetricStatus, InType: reflect.TypeOf(&ObjectMetricStatus{})}, in.(*HorizontalPodAutoscalerCondition).DeepCopyInto(out.(*HorizontalPodAutoscalerCondition))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_PodsMetricSource, InType: reflect.TypeOf(&PodsMetricSource{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_PodsMetricStatus, InType: reflect.TypeOf(&PodsMetricStatus{})}, }, InType: reflect.TypeOf(&HorizontalPodAutoscalerCondition{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_ResourceMetricSource, InType: reflect.TypeOf(&ResourceMetricSource{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_ResourceMetricStatus, InType: reflect.TypeOf(&ResourceMetricStatus{})}, in.(*HorizontalPodAutoscalerList).DeepCopyInto(out.(*HorizontalPodAutoscalerList))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_Scale, InType: reflect.TypeOf(&Scale{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_ScaleSpec, InType: reflect.TypeOf(&ScaleSpec{})}, }, InType: reflect.TypeOf(&HorizontalPodAutoscalerList{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_autoscaling_ScaleStatus, InType: reflect.TypeOf(&ScaleStatus{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*HorizontalPodAutoscalerSpec).DeepCopyInto(out.(*HorizontalPodAutoscalerSpec))
return nil
}, InType: reflect.TypeOf(&HorizontalPodAutoscalerSpec{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*HorizontalPodAutoscalerStatus).DeepCopyInto(out.(*HorizontalPodAutoscalerStatus))
return nil
}, InType: reflect.TypeOf(&HorizontalPodAutoscalerStatus{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*MetricSpec).DeepCopyInto(out.(*MetricSpec))
return nil
}, InType: reflect.TypeOf(&MetricSpec{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*MetricStatus).DeepCopyInto(out.(*MetricStatus))
return nil
}, InType: reflect.TypeOf(&MetricStatus{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ObjectMetricSource).DeepCopyInto(out.(*ObjectMetricSource))
return nil
}, InType: reflect.TypeOf(&ObjectMetricSource{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ObjectMetricStatus).DeepCopyInto(out.(*ObjectMetricStatus))
return nil
}, InType: reflect.TypeOf(&ObjectMetricStatus{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PodsMetricSource).DeepCopyInto(out.(*PodsMetricSource))
return nil
}, InType: reflect.TypeOf(&PodsMetricSource{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PodsMetricStatus).DeepCopyInto(out.(*PodsMetricStatus))
return nil
}, InType: reflect.TypeOf(&PodsMetricStatus{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ResourceMetricSource).DeepCopyInto(out.(*ResourceMetricSource))
return nil
}, InType: reflect.TypeOf(&ResourceMetricSource{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ResourceMetricStatus).DeepCopyInto(out.(*ResourceMetricStatus))
return nil
}, InType: reflect.TypeOf(&ResourceMetricStatus{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Scale).DeepCopyInto(out.(*Scale))
return nil
}, InType: reflect.TypeOf(&Scale{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ScaleSpec).DeepCopyInto(out.(*ScaleSpec))
return nil
}, InType: reflect.TypeOf(&ScaleSpec{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ScaleStatus).DeepCopyInto(out.(*ScaleStatus))
return nil
}, InType: reflect.TypeOf(&ScaleStatus{})},
) )
} }
// DeepCopy_autoscaling_CrossVersionObjectReference is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_autoscaling_CrossVersionObjectReference(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *CrossVersionObjectReference) DeepCopyInto(out *CrossVersionObjectReference) {
{
in := in.(*CrossVersionObjectReference)
out := out.(*CrossVersionObjectReference)
*out = *in *out = *in
return nil return
}
} }
// DeepCopy_autoscaling_HorizontalPodAutoscaler is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new CrossVersionObjectReference.
func DeepCopy_autoscaling_HorizontalPodAutoscaler(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *CrossVersionObjectReference) DeepCopy() *CrossVersionObjectReference {
{ if x == nil {
in := in.(*HorizontalPodAutoscaler) return nil
out := out.(*HorizontalPodAutoscaler) }
out := new(CrossVersionObjectReference)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *HorizontalPodAutoscaler) DeepCopyInto(out *HorizontalPodAutoscaler) {
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
in.Status.DeepCopyInto(&out.Status)
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscaler.
func (x *HorizontalPodAutoscaler) DeepCopy() *HorizontalPodAutoscaler {
if x == nil {
return nil
}
out := new(HorizontalPodAutoscaler)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *HorizontalPodAutoscaler) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
if err := DeepCopy_autoscaling_HorizontalPodAutoscalerSpec(&in.Spec, &out.Spec, c); err != nil {
return err
}
if err := DeepCopy_autoscaling_HorizontalPodAutoscalerStatus(&in.Status, &out.Status, c); err != nil {
return err
}
return nil return nil
} }
} }
// DeepCopy_autoscaling_HorizontalPodAutoscalerCondition is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_autoscaling_HorizontalPodAutoscalerCondition(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *HorizontalPodAutoscalerCondition) DeepCopyInto(out *HorizontalPodAutoscalerCondition) {
{
in := in.(*HorizontalPodAutoscalerCondition)
out := out.(*HorizontalPodAutoscalerCondition)
*out = *in *out = *in
out.LastTransitionTime = in.LastTransitionTime.DeepCopy() in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
return nil return
}
} }
// DeepCopy_autoscaling_HorizontalPodAutoscalerList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerCondition.
func DeepCopy_autoscaling_HorizontalPodAutoscalerList(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *HorizontalPodAutoscalerCondition) DeepCopy() *HorizontalPodAutoscalerCondition {
{ if x == nil {
in := in.(*HorizontalPodAutoscalerList) return nil
out := out.(*HorizontalPodAutoscalerList) }
out := new(HorizontalPodAutoscalerCondition)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *HorizontalPodAutoscalerList) DeepCopyInto(out *HorizontalPodAutoscalerList) {
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]HorizontalPodAutoscaler, len(*in)) *out = make([]HorizontalPodAutoscaler, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_autoscaling_HorizontalPodAutoscaler(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerList.
func (x *HorizontalPodAutoscalerList) DeepCopy() *HorizontalPodAutoscalerList {
if x == nil {
return nil
} }
out := new(HorizontalPodAutoscalerList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *HorizontalPodAutoscalerList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_autoscaling_HorizontalPodAutoscalerSpec is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_autoscaling_HorizontalPodAutoscalerSpec(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *HorizontalPodAutoscalerSpec) DeepCopyInto(out *HorizontalPodAutoscalerSpec) {
{
in := in.(*HorizontalPodAutoscalerSpec)
out := out.(*HorizontalPodAutoscalerSpec)
*out = *in *out = *in
out.ScaleTargetRef = in.ScaleTargetRef
if in.MinReplicas != nil { if in.MinReplicas != nil {
in, out := &in.MinReplicas, &out.MinReplicas in, out := &in.MinReplicas, &out.MinReplicas
if *in == nil {
*out = nil
} else {
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} }
}
if in.Metrics != nil { if in.Metrics != nil {
in, out := &in.Metrics, &out.Metrics in, out := &in.Metrics, &out.Metrics
*out = make([]MetricSpec, len(*in)) *out = make([]MetricSpec, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_autoscaling_MetricSpec(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
} return
return nil
}
} }
// DeepCopy_autoscaling_HorizontalPodAutoscalerStatus is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerSpec.
func DeepCopy_autoscaling_HorizontalPodAutoscalerStatus(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *HorizontalPodAutoscalerSpec) DeepCopy() *HorizontalPodAutoscalerSpec {
{ if x == nil {
in := in.(*HorizontalPodAutoscalerStatus) return nil
out := out.(*HorizontalPodAutoscalerStatus) }
out := new(HorizontalPodAutoscalerSpec)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *HorizontalPodAutoscalerStatus) DeepCopyInto(out *HorizontalPodAutoscalerStatus) {
*out = *in *out = *in
if in.ObservedGeneration != nil { if in.ObservedGeneration != nil {
in, out := &in.ObservedGeneration, &out.ObservedGeneration in, out := &in.ObservedGeneration, &out.ObservedGeneration
if *in == nil {
*out = nil
} else {
*out = new(int64) *out = new(int64)
**out = **in **out = **in
} }
}
if in.LastScaleTime != nil { if in.LastScaleTime != nil {
in, out := &in.LastScaleTime, &out.LastScaleTime in, out := &in.LastScaleTime, &out.LastScaleTime
if *in == nil {
*out = nil
} else {
*out = new(v1.Time) *out = new(v1.Time)
**out = (*in).DeepCopy() (*in).DeepCopyInto(*out)
}
} }
if in.CurrentMetrics != nil { if in.CurrentMetrics != nil {
in, out := &in.CurrentMetrics, &out.CurrentMetrics in, out := &in.CurrentMetrics, &out.CurrentMetrics
*out = make([]MetricStatus, len(*in)) *out = make([]MetricStatus, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_autoscaling_MetricStatus(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
}
} }
} }
if in.Conditions != nil { if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions in, out := &in.Conditions, &out.Conditions
*out = make([]HorizontalPodAutoscalerCondition, len(*in)) *out = make([]HorizontalPodAutoscalerCondition, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_autoscaling_HorizontalPodAutoscalerCondition(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
} return
return nil
}
} }
// DeepCopy_autoscaling_MetricSpec is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new HorizontalPodAutoscalerStatus.
func DeepCopy_autoscaling_MetricSpec(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *HorizontalPodAutoscalerStatus) DeepCopy() *HorizontalPodAutoscalerStatus {
{ if x == nil {
in := in.(*MetricSpec) return nil
out := out.(*MetricSpec) }
out := new(HorizontalPodAutoscalerStatus)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *MetricSpec) DeepCopyInto(out *MetricSpec) {
*out = *in *out = *in
if in.Object != nil { if in.Object != nil {
in, out := &in.Object, &out.Object in, out := &in.Object, &out.Object
if *in == nil {
*out = nil
} else {
*out = new(ObjectMetricSource) *out = new(ObjectMetricSource)
if err := DeepCopy_autoscaling_ObjectMetricSource(*in, *out, c); err != nil { (*in).DeepCopyInto(*out)
return err
} }
} }
if in.Pods != nil { if in.Pods != nil {
in, out := &in.Pods, &out.Pods in, out := &in.Pods, &out.Pods
if *in == nil {
*out = nil
} else {
*out = new(PodsMetricSource) *out = new(PodsMetricSource)
if err := DeepCopy_autoscaling_PodsMetricSource(*in, *out, c); err != nil { (*in).DeepCopyInto(*out)
return err
} }
} }
if in.Resource != nil { if in.Resource != nil {
in, out := &in.Resource, &out.Resource in, out := &in.Resource, &out.Resource
if *in == nil {
*out = nil
} else {
*out = new(ResourceMetricSource) *out = new(ResourceMetricSource)
if err := DeepCopy_autoscaling_ResourceMetricSource(*in, *out, c); err != nil { (*in).DeepCopyInto(*out)
return err
} }
} }
return nil return
}
} }
// DeepCopy_autoscaling_MetricStatus is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new MetricSpec.
func DeepCopy_autoscaling_MetricStatus(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *MetricSpec) DeepCopy() *MetricSpec {
{ if x == nil {
in := in.(*MetricStatus) return nil
out := out.(*MetricStatus) }
out := new(MetricSpec)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *MetricStatus) DeepCopyInto(out *MetricStatus) {
*out = *in *out = *in
if in.Object != nil { if in.Object != nil {
in, out := &in.Object, &out.Object in, out := &in.Object, &out.Object
if *in == nil {
*out = nil
} else {
*out = new(ObjectMetricStatus) *out = new(ObjectMetricStatus)
if err := DeepCopy_autoscaling_ObjectMetricStatus(*in, *out, c); err != nil { (*in).DeepCopyInto(*out)
return err
} }
} }
if in.Pods != nil { if in.Pods != nil {
in, out := &in.Pods, &out.Pods in, out := &in.Pods, &out.Pods
if *in == nil {
*out = nil
} else {
*out = new(PodsMetricStatus) *out = new(PodsMetricStatus)
if err := DeepCopy_autoscaling_PodsMetricStatus(*in, *out, c); err != nil { (*in).DeepCopyInto(*out)
return err
} }
} }
if in.Resource != nil { if in.Resource != nil {
in, out := &in.Resource, &out.Resource in, out := &in.Resource, &out.Resource
if *in == nil {
*out = nil
} else {
*out = new(ResourceMetricStatus) *out = new(ResourceMetricStatus)
if err := DeepCopy_autoscaling_ResourceMetricStatus(*in, *out, c); err != nil { (*in).DeepCopyInto(*out)
return err
} }
} }
return nil return
}
} }
// DeepCopy_autoscaling_ObjectMetricSource is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new MetricStatus.
func DeepCopy_autoscaling_ObjectMetricSource(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *MetricStatus) DeepCopy() *MetricStatus {
{ if x == nil {
in := in.(*ObjectMetricSource) return nil
out := out.(*ObjectMetricSource) }
out := new(MetricStatus)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ObjectMetricSource) DeepCopyInto(out *ObjectMetricSource) {
*out = *in *out = *in
out.Target = in.Target
out.TargetValue = in.TargetValue.DeepCopy() out.TargetValue = in.TargetValue.DeepCopy()
return nil return
}
} }
// DeepCopy_autoscaling_ObjectMetricStatus is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricSource.
func DeepCopy_autoscaling_ObjectMetricStatus(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *ObjectMetricSource) DeepCopy() *ObjectMetricSource {
{ if x == nil {
in := in.(*ObjectMetricStatus) return nil
out := out.(*ObjectMetricStatus) }
out := new(ObjectMetricSource)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ObjectMetricStatus) DeepCopyInto(out *ObjectMetricStatus) {
*out = *in *out = *in
out.Target = in.Target
out.CurrentValue = in.CurrentValue.DeepCopy() out.CurrentValue = in.CurrentValue.DeepCopy()
return nil return
}
} }
// DeepCopy_autoscaling_PodsMetricSource is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ObjectMetricStatus.
func DeepCopy_autoscaling_PodsMetricSource(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *ObjectMetricStatus) DeepCopy() *ObjectMetricStatus {
{ if x == nil {
in := in.(*PodsMetricSource) return nil
out := out.(*PodsMetricSource) }
out := new(ObjectMetricStatus)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *PodsMetricSource) DeepCopyInto(out *PodsMetricSource) {
*out = *in *out = *in
out.TargetAverageValue = in.TargetAverageValue.DeepCopy() out.TargetAverageValue = in.TargetAverageValue.DeepCopy()
return nil return
}
} }
// DeepCopy_autoscaling_PodsMetricStatus is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricSource.
func DeepCopy_autoscaling_PodsMetricStatus(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *PodsMetricSource) DeepCopy() *PodsMetricSource {
{ if x == nil {
in := in.(*PodsMetricStatus) return nil
out := out.(*PodsMetricStatus) }
out := new(PodsMetricSource)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *PodsMetricStatus) DeepCopyInto(out *PodsMetricStatus) {
*out = *in *out = *in
out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy() out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy()
return nil return
}
} }
// DeepCopy_autoscaling_ResourceMetricSource is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodsMetricStatus.
func DeepCopy_autoscaling_ResourceMetricSource(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *PodsMetricStatus) DeepCopy() *PodsMetricStatus {
{ if x == nil {
in := in.(*ResourceMetricSource) return nil
out := out.(*ResourceMetricSource) }
out := new(PodsMetricStatus)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ResourceMetricSource) DeepCopyInto(out *ResourceMetricSource) {
*out = *in *out = *in
if in.TargetAverageUtilization != nil { if in.TargetAverageUtilization != nil {
in, out := &in.TargetAverageUtilization, &out.TargetAverageUtilization in, out := &in.TargetAverageUtilization, &out.TargetAverageUtilization
if *in == nil {
*out = nil
} else {
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} }
}
if in.TargetAverageValue != nil { if in.TargetAverageValue != nil {
in, out := &in.TargetAverageValue, &out.TargetAverageValue in, out := &in.TargetAverageValue, &out.TargetAverageValue
if *in == nil {
*out = nil
} else {
*out = new(resource.Quantity) *out = new(resource.Quantity)
**out = (*in).DeepCopy() **out = (*in).DeepCopy()
} }
return nil
} }
return
} }
// DeepCopy_autoscaling_ResourceMetricStatus is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricSource.
func DeepCopy_autoscaling_ResourceMetricStatus(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *ResourceMetricSource) DeepCopy() *ResourceMetricSource {
{ if x == nil {
in := in.(*ResourceMetricStatus) return nil
out := out.(*ResourceMetricStatus) }
out := new(ResourceMetricSource)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ResourceMetricStatus) DeepCopyInto(out *ResourceMetricStatus) {
*out = *in *out = *in
if in.CurrentAverageUtilization != nil { if in.CurrentAverageUtilization != nil {
in, out := &in.CurrentAverageUtilization, &out.CurrentAverageUtilization in, out := &in.CurrentAverageUtilization, &out.CurrentAverageUtilization
if *in == nil {
*out = nil
} else {
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} }
}
out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy() out.CurrentAverageValue = in.CurrentAverageValue.DeepCopy()
return nil return
}
} }
// DeepCopy_autoscaling_Scale is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ResourceMetricStatus.
func DeepCopy_autoscaling_Scale(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *ResourceMetricStatus) DeepCopy() *ResourceMetricStatus {
{ if x == nil {
in := in.(*Scale) return nil
out := out.(*Scale) }
out := new(ResourceMetricStatus)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Scale) DeepCopyInto(out *Scale) {
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
out.Spec = in.Spec
out.Status = in.Status
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Scale.
func (x *Scale) DeepCopy() *Scale {
if x == nil {
return nil
}
out := new(Scale)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Scale) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
return nil return nil
} }
} }
// DeepCopy_autoscaling_ScaleSpec is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_autoscaling_ScaleSpec(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *ScaleSpec) DeepCopyInto(out *ScaleSpec) {
{
in := in.(*ScaleSpec)
out := out.(*ScaleSpec)
*out = *in *out = *in
return nil return
}
} }
// DeepCopy_autoscaling_ScaleStatus is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ScaleSpec.
func DeepCopy_autoscaling_ScaleStatus(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *ScaleSpec) DeepCopy() *ScaleSpec {
{ if x == nil {
in := in.(*ScaleStatus)
out := out.(*ScaleStatus)
*out = *in
return nil return nil
} }
out := new(ScaleSpec)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ScaleStatus) DeepCopyInto(out *ScaleStatus) {
*out = *in
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ScaleStatus.
func (x *ScaleStatus) DeepCopy() *ScaleStatus {
if x == nil {
return nil
}
out := new(ScaleStatus)
x.DeepCopyInto(out)
return out
} }

View File

@ -22,6 +22,7 @@ import (
) )
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Job represents the configuration of a single job. // Job represents the configuration of a single job.
type Job struct { type Job struct {
@ -42,6 +43,8 @@ type Job struct {
Status JobStatus Status JobStatus
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// JobList is a collection of jobs. // JobList is a collection of jobs.
type JobList struct { type JobList struct {
metav1.TypeMeta metav1.TypeMeta
@ -54,6 +57,8 @@ type JobList struct {
Items []Job Items []Job
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// JobTemplate describes a template for creating copies of a predefined pod. // JobTemplate describes a template for creating copies of a predefined pod.
type JobTemplate struct { type JobTemplate struct {
metav1.TypeMeta metav1.TypeMeta
@ -188,6 +193,7 @@ type JobCondition struct {
} }
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// CronJob represents the configuration of a single cron job. // CronJob represents the configuration of a single cron job.
type CronJob struct { type CronJob struct {
@ -208,6 +214,8 @@ type CronJob struct {
Status CronJobStatus Status CronJobStatus
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// CronJobList is a collection of cron jobs. // CronJobList is a collection of cron jobs.
type CronJobList struct { type CronJobList struct {
metav1.TypeMeta metav1.TypeMeta

View File

@ -28,106 +28,180 @@ import (
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_CronJob, InType: reflect.TypeOf(&CronJob{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_CronJobList, InType: reflect.TypeOf(&CronJobList{})}, in.(*CronJob).DeepCopyInto(out.(*CronJob))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_CronJobSpec, InType: reflect.TypeOf(&CronJobSpec{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_CronJobStatus, InType: reflect.TypeOf(&CronJobStatus{})}, }, InType: reflect.TypeOf(&CronJob{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_Job, InType: reflect.TypeOf(&Job{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_JobCondition, InType: reflect.TypeOf(&JobCondition{})}, in.(*CronJobList).DeepCopyInto(out.(*CronJobList))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_JobList, InType: reflect.TypeOf(&JobList{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_JobSpec, InType: reflect.TypeOf(&JobSpec{})}, }, InType: reflect.TypeOf(&CronJobList{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_JobStatus, InType: reflect.TypeOf(&JobStatus{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_JobTemplate, InType: reflect.TypeOf(&JobTemplate{})}, in.(*CronJobSpec).DeepCopyInto(out.(*CronJobSpec))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_batch_JobTemplateSpec, InType: reflect.TypeOf(&JobTemplateSpec{})}, return nil
}, InType: reflect.TypeOf(&CronJobSpec{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*CronJobStatus).DeepCopyInto(out.(*CronJobStatus))
return nil
}, InType: reflect.TypeOf(&CronJobStatus{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Job).DeepCopyInto(out.(*Job))
return nil
}, InType: reflect.TypeOf(&Job{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*JobCondition).DeepCopyInto(out.(*JobCondition))
return nil
}, InType: reflect.TypeOf(&JobCondition{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*JobList).DeepCopyInto(out.(*JobList))
return nil
}, InType: reflect.TypeOf(&JobList{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*JobSpec).DeepCopyInto(out.(*JobSpec))
return nil
}, InType: reflect.TypeOf(&JobSpec{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*JobStatus).DeepCopyInto(out.(*JobStatus))
return nil
}, InType: reflect.TypeOf(&JobStatus{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*JobTemplate).DeepCopyInto(out.(*JobTemplate))
return nil
}, InType: reflect.TypeOf(&JobTemplate{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*JobTemplateSpec).DeepCopyInto(out.(*JobTemplateSpec))
return nil
}, InType: reflect.TypeOf(&JobTemplateSpec{})},
) )
} }
// DeepCopy_batch_CronJob is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_batch_CronJob(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *CronJob) DeepCopyInto(out *CronJob) {
{
in := in.(*CronJob)
out := out.(*CronJob)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
in.Status.DeepCopyInto(&out.Status)
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new CronJob.
func (x *CronJob) DeepCopy() *CronJob {
if x == nil {
return nil
}
out := new(CronJob)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *CronJob) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
if err := DeepCopy_batch_CronJobSpec(&in.Spec, &out.Spec, c); err != nil {
return err
}
if err := DeepCopy_batch_CronJobStatus(&in.Status, &out.Status, c); err != nil {
return err
}
return nil return nil
} }
} }
// DeepCopy_batch_CronJobList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_batch_CronJobList(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *CronJobList) DeepCopyInto(out *CronJobList) {
{
in := in.(*CronJobList)
out := out.(*CronJobList)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]CronJob, len(*in)) *out = make([]CronJob, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_batch_CronJob(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new CronJobList.
func (x *CronJobList) DeepCopy() *CronJobList {
if x == nil {
return nil
} }
out := new(CronJobList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *CronJobList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_batch_CronJobSpec is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_batch_CronJobSpec(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *CronJobSpec) DeepCopyInto(out *CronJobSpec) {
{
in := in.(*CronJobSpec)
out := out.(*CronJobSpec)
*out = *in *out = *in
if in.StartingDeadlineSeconds != nil { if in.StartingDeadlineSeconds != nil {
in, out := &in.StartingDeadlineSeconds, &out.StartingDeadlineSeconds in, out := &in.StartingDeadlineSeconds, &out.StartingDeadlineSeconds
if *in == nil {
*out = nil
} else {
*out = new(int64) *out = new(int64)
**out = **in **out = **in
} }
}
if in.Suspend != nil { if in.Suspend != nil {
in, out := &in.Suspend, &out.Suspend in, out := &in.Suspend, &out.Suspend
if *in == nil {
*out = nil
} else {
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} }
if err := DeepCopy_batch_JobTemplateSpec(&in.JobTemplate, &out.JobTemplate, c); err != nil {
return err
} }
in.JobTemplate.DeepCopyInto(&out.JobTemplate)
if in.SuccessfulJobsHistoryLimit != nil { if in.SuccessfulJobsHistoryLimit != nil {
in, out := &in.SuccessfulJobsHistoryLimit, &out.SuccessfulJobsHistoryLimit in, out := &in.SuccessfulJobsHistoryLimit, &out.SuccessfulJobsHistoryLimit
if *in == nil {
*out = nil
} else {
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} }
}
if in.FailedJobsHistoryLimit != nil { if in.FailedJobsHistoryLimit != nil {
in, out := &in.FailedJobsHistoryLimit, &out.FailedJobsHistoryLimit in, out := &in.FailedJobsHistoryLimit, &out.FailedJobsHistoryLimit
if *in == nil {
*out = nil
} else {
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} }
return nil
} }
return
} }
// DeepCopy_batch_CronJobStatus is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new CronJobSpec.
func DeepCopy_batch_CronJobStatus(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *CronJobSpec) DeepCopy() *CronJobSpec {
{ if x == nil {
in := in.(*CronJobStatus) return nil
out := out.(*CronJobStatus) }
out := new(CronJobSpec)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *CronJobStatus) DeepCopyInto(out *CronJobStatus) {
*out = *in *out = *in
if in.Active != nil { if in.Active != nil {
in, out := &in.Active, &out.Active in, out := &in.Active, &out.Active
@ -136,167 +210,252 @@ func DeepCopy_batch_CronJobStatus(in interface{}, out interface{}, c *conversion
} }
if in.LastScheduleTime != nil { if in.LastScheduleTime != nil {
in, out := &in.LastScheduleTime, &out.LastScheduleTime in, out := &in.LastScheduleTime, &out.LastScheduleTime
*out = new(v1.Time) if *in == nil {
**out = (*in).DeepCopy() *out = nil
}
return nil
}
}
// DeepCopy_batch_Job is an autogenerated deepcopy function.
func DeepCopy_batch_Job(in interface{}, out interface{}, c *conversion.Cloner) error {
{
in := in.(*Job)
out := out.(*Job)
*out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err
} else { } else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta) *out = new(v1.Time)
(*in).DeepCopyInto(*out)
} }
if err := DeepCopy_batch_JobSpec(&in.Spec, &out.Spec, c); err != nil {
return err
} }
if err := DeepCopy_batch_JobStatus(&in.Status, &out.Status, c); err != nil { return
return err }
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new CronJobStatus.
func (x *CronJobStatus) DeepCopy() *CronJobStatus {
if x == nil {
return nil
} }
out := new(CronJobStatus)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Job) DeepCopyInto(out *Job) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
in.Status.DeepCopyInto(&out.Status)
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Job.
func (x *Job) DeepCopy() *Job {
if x == nil {
return nil
}
out := new(Job)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Job) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_batch_JobCondition is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_batch_JobCondition(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *JobCondition) DeepCopyInto(out *JobCondition) {
{
in := in.(*JobCondition)
out := out.(*JobCondition)
*out = *in *out = *in
out.LastProbeTime = in.LastProbeTime.DeepCopy() in.LastProbeTime.DeepCopyInto(&out.LastProbeTime)
out.LastTransitionTime = in.LastTransitionTime.DeepCopy() in.LastTransitionTime.DeepCopyInto(&out.LastTransitionTime)
return nil return
}
} }
// DeepCopy_batch_JobList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new JobCondition.
func DeepCopy_batch_JobList(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *JobCondition) DeepCopy() *JobCondition {
{ if x == nil {
in := in.(*JobList) return nil
out := out.(*JobList) }
out := new(JobCondition)
x.DeepCopyInto(out)
return out
}
// 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 *out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]Job, len(*in)) *out = make([]Job, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_batch_Job(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new JobList.
func (x *JobList) DeepCopy() *JobList {
if x == nil {
return nil
} }
out := new(JobList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *JobList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_batch_JobSpec is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_batch_JobSpec(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *JobSpec) DeepCopyInto(out *JobSpec) {
{
in := in.(*JobSpec)
out := out.(*JobSpec)
*out = *in *out = *in
if in.Parallelism != nil { if in.Parallelism != nil {
in, out := &in.Parallelism, &out.Parallelism in, out := &in.Parallelism, &out.Parallelism
if *in == nil {
*out = nil
} else {
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} }
}
if in.Completions != nil { if in.Completions != nil {
in, out := &in.Completions, &out.Completions in, out := &in.Completions, &out.Completions
if *in == nil {
*out = nil
} else {
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} }
}
if in.ActiveDeadlineSeconds != nil { if in.ActiveDeadlineSeconds != nil {
in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds in, out := &in.ActiveDeadlineSeconds, &out.ActiveDeadlineSeconds
if *in == nil {
*out = nil
} else {
*out = new(int64) *out = new(int64)
**out = **in **out = **in
} }
}
if in.Selector != nil { if in.Selector != nil {
in, out := &in.Selector, &out.Selector in, out := &in.Selector, &out.Selector
if newVal, err := c.DeepCopy(*in); err != nil { if *in == nil {
return err *out = nil
} else { } else {
*out = newVal.(*v1.LabelSelector) *out = new(v1.LabelSelector)
(*in).DeepCopyInto(*out)
} }
} }
if in.ManualSelector != nil { if in.ManualSelector != nil {
in, out := &in.ManualSelector, &out.ManualSelector in, out := &in.ManualSelector, &out.ManualSelector
if *in == nil {
*out = nil
} else {
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} }
if err := api.DeepCopy_api_PodTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err
}
return nil
} }
in.Template.DeepCopyInto(&out.Template)
return
} }
// DeepCopy_batch_JobStatus is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new JobSpec.
func DeepCopy_batch_JobStatus(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *JobSpec) DeepCopy() *JobSpec {
{ if x == nil {
in := in.(*JobStatus) return nil
out := out.(*JobStatus) }
out := new(JobSpec)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *JobStatus) DeepCopyInto(out *JobStatus) {
*out = *in *out = *in
if in.Conditions != nil { if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions in, out := &in.Conditions, &out.Conditions
*out = make([]JobCondition, len(*in)) *out = make([]JobCondition, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_batch_JobCondition(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
}
} }
} }
if in.StartTime != nil { if in.StartTime != nil {
in, out := &in.StartTime, &out.StartTime in, out := &in.StartTime, &out.StartTime
if *in == nil {
*out = nil
} else {
*out = new(v1.Time) *out = new(v1.Time)
**out = (*in).DeepCopy() (*in).DeepCopyInto(*out)
}
} }
if in.CompletionTime != nil { if in.CompletionTime != nil {
in, out := &in.CompletionTime, &out.CompletionTime in, out := &in.CompletionTime, &out.CompletionTime
if *in == nil {
*out = nil
} else {
*out = new(v1.Time) *out = new(v1.Time)
**out = (*in).DeepCopy() (*in).DeepCopyInto(*out)
} }
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new JobStatus.
func (x *JobStatus) DeepCopy() *JobStatus {
if x == nil {
return nil
}
out := new(JobStatus)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *JobTemplate) DeepCopyInto(out *JobTemplate) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Template.DeepCopyInto(&out.Template)
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new JobTemplate.
func (x *JobTemplate) DeepCopy() *JobTemplate {
if x == nil {
return nil
}
out := new(JobTemplate)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *JobTemplate) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_batch_JobTemplate is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_batch_JobTemplate(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *JobTemplateSpec) DeepCopyInto(out *JobTemplateSpec) {
{
in := in.(*JobTemplate)
out := out.(*JobTemplate)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
return err in.Spec.DeepCopyInto(&out.Spec)
} else { return
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
if err := DeepCopy_batch_JobTemplateSpec(&in.Template, &out.Template, c); err != nil {
return err
}
return nil
}
} }
// DeepCopy_batch_JobTemplateSpec is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new JobTemplateSpec.
func DeepCopy_batch_JobTemplateSpec(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *JobTemplateSpec) DeepCopy() *JobTemplateSpec {
{ if x == nil {
in := in.(*JobTemplateSpec)
out := out.(*JobTemplateSpec)
*out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
if err := DeepCopy_batch_JobSpec(&in.Spec, &out.Spec, c); err != nil {
return err
}
return nil return nil
} }
out := new(JobTemplateSpec)
x.DeepCopyInto(out)
return out
} }

View File

@ -20,6 +20,7 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
// +genclient=true // +genclient=true
// +nonNamespaced=true // +nonNamespaced=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Describes a certificate signing request // Describes a certificate signing request
type CertificateSigningRequest struct { type CertificateSigningRequest struct {
@ -102,6 +103,8 @@ type CertificateSigningRequestCondition struct {
LastUpdateTime metav1.Time LastUpdateTime metav1.Time
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type CertificateSigningRequestList struct { type CertificateSigningRequestList struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional

View File

@ -21,84 +21,125 @@ limitations under the License.
package certificates package certificates
import ( import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_certificates_CertificateSigningRequest, InType: reflect.TypeOf(&CertificateSigningRequest{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_certificates_CertificateSigningRequestCondition, InType: reflect.TypeOf(&CertificateSigningRequestCondition{})}, in.(*CertificateSigningRequest).DeepCopyInto(out.(*CertificateSigningRequest))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_certificates_CertificateSigningRequestList, InType: reflect.TypeOf(&CertificateSigningRequestList{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_certificates_CertificateSigningRequestSpec, InType: reflect.TypeOf(&CertificateSigningRequestSpec{})}, }, InType: reflect.TypeOf(&CertificateSigningRequest{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_certificates_CertificateSigningRequestStatus, InType: reflect.TypeOf(&CertificateSigningRequestStatus{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*CertificateSigningRequestCondition).DeepCopyInto(out.(*CertificateSigningRequestCondition))
return nil
}, InType: reflect.TypeOf(&CertificateSigningRequestCondition{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*CertificateSigningRequestList).DeepCopyInto(out.(*CertificateSigningRequestList))
return nil
}, InType: reflect.TypeOf(&CertificateSigningRequestList{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*CertificateSigningRequestSpec).DeepCopyInto(out.(*CertificateSigningRequestSpec))
return nil
}, InType: reflect.TypeOf(&CertificateSigningRequestSpec{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*CertificateSigningRequestStatus).DeepCopyInto(out.(*CertificateSigningRequestStatus))
return nil
}, InType: reflect.TypeOf(&CertificateSigningRequestStatus{})},
) )
} }
// DeepCopy_certificates_CertificateSigningRequest is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_certificates_CertificateSigningRequest(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *CertificateSigningRequest) DeepCopyInto(out *CertificateSigningRequest) {
{
in := in.(*CertificateSigningRequest)
out := out.(*CertificateSigningRequest)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
in.Status.DeepCopyInto(&out.Status)
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequest.
func (x *CertificateSigningRequest) DeepCopy() *CertificateSigningRequest {
if x == nil {
return nil
}
out := new(CertificateSigningRequest)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *CertificateSigningRequest) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
if err := DeepCopy_certificates_CertificateSigningRequestSpec(&in.Spec, &out.Spec, c); err != nil {
return err
}
if err := DeepCopy_certificates_CertificateSigningRequestStatus(&in.Status, &out.Status, c); err != nil {
return err
}
return nil return nil
} }
} }
// DeepCopy_certificates_CertificateSigningRequestCondition is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_certificates_CertificateSigningRequestCondition(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *CertificateSigningRequestCondition) DeepCopyInto(out *CertificateSigningRequestCondition) {
{
in := in.(*CertificateSigningRequestCondition)
out := out.(*CertificateSigningRequestCondition)
*out = *in *out = *in
out.LastUpdateTime = in.LastUpdateTime.DeepCopy() in.LastUpdateTime.DeepCopyInto(&out.LastUpdateTime)
return nil return
}
} }
// DeepCopy_certificates_CertificateSigningRequestList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestCondition.
func DeepCopy_certificates_CertificateSigningRequestList(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *CertificateSigningRequestCondition) DeepCopy() *CertificateSigningRequestCondition {
{ if x == nil {
in := in.(*CertificateSigningRequestList) return nil
out := out.(*CertificateSigningRequestList) }
out := new(CertificateSigningRequestCondition)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *CertificateSigningRequestList) DeepCopyInto(out *CertificateSigningRequestList) {
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]CertificateSigningRequest, len(*in)) *out = make([]CertificateSigningRequest, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_certificates_CertificateSigningRequest(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestList.
func (x *CertificateSigningRequestList) DeepCopy() *CertificateSigningRequestList {
if x == nil {
return nil
} }
out := new(CertificateSigningRequestList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *CertificateSigningRequestList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_certificates_CertificateSigningRequestSpec is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_certificates_CertificateSigningRequestSpec(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *CertificateSigningRequestSpec) DeepCopyInto(out *CertificateSigningRequestSpec) {
{
in := in.(*CertificateSigningRequestSpec)
out := out.(*CertificateSigningRequestSpec)
*out = *in *out = *in
if in.Request != nil { if in.Request != nil {
in, out := &in.Request, &out.Request in, out := &in.Request, &out.Request
@ -117,32 +158,33 @@ func DeepCopy_certificates_CertificateSigningRequestSpec(in interface{}, out int
} }
if in.Extra != nil { if in.Extra != nil {
in, out := &in.Extra, &out.Extra in, out := &in.Extra, &out.Extra
*out = make(map[string]ExtraValue) *out = make(map[string]ExtraValue, len(*in))
for key, val := range *in { for key, val := range *in {
if newVal, err := c.DeepCopy(&val); err != nil { (*out)[key] = make(ExtraValue, len(val))
return err copy((*out)[key], val)
} else {
(*out)[key] = *newVal.(*ExtraValue)
} }
} }
} return
return nil
}
} }
// DeepCopy_certificates_CertificateSigningRequestStatus is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestSpec.
func DeepCopy_certificates_CertificateSigningRequestStatus(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *CertificateSigningRequestSpec) DeepCopy() *CertificateSigningRequestSpec {
{ if x == nil {
in := in.(*CertificateSigningRequestStatus) return nil
out := out.(*CertificateSigningRequestStatus) }
out := new(CertificateSigningRequestSpec)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *CertificateSigningRequestStatus) DeepCopyInto(out *CertificateSigningRequestStatus) {
*out = *in *out = *in
if in.Conditions != nil { if in.Conditions != nil {
in, out := &in.Conditions, &out.Conditions in, out := &in.Conditions, &out.Conditions
*out = make([]CertificateSigningRequestCondition, len(*in)) *out = make([]CertificateSigningRequestCondition, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_certificates_CertificateSigningRequestCondition(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
}
} }
} }
if in.Certificate != nil { if in.Certificate != nil {
@ -150,6 +192,15 @@ func DeepCopy_certificates_CertificateSigningRequestStatus(in interface{}, out i
*out = make([]byte, len(*in)) *out = make([]byte, len(*in))
copy(*out, *in) copy(*out, *in)
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new CertificateSigningRequestStatus.
func (x *CertificateSigningRequestStatus) DeepCopy() *CertificateSigningRequestStatus {
if x == nil {
return nil return nil
} }
out := new(CertificateSigningRequestStatus)
x.DeepCopyInto(out)
return out
} }

View File

@ -78,6 +78,8 @@ type KubeProxyConntrackConfiguration struct {
TCPCloseWaitTimeout metav1.Duration TCPCloseWaitTimeout metav1.Duration
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// KubeProxyConfiguration contains everything necessary to configure the // KubeProxyConfiguration contains everything necessary to configure the
// Kubernetes proxy server. // Kubernetes proxy server.
type KubeProxyConfiguration struct { type KubeProxyConfiguration struct {
@ -166,6 +168,8 @@ const (
HairpinNone = "none" HairpinNone = "none"
) )
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// A configuration field should go in KubeletFlags instead of KubeletConfiguration if any of these are true: // A configuration field should go in KubeletFlags instead of KubeletConfiguration if any of these are true:
// - its value will never, or cannot safely be changed during the lifetime of a node // - its value will never, or cannot safely be changed during the lifetime of a node
// - its value cannot be safely shared between nodes at the same time (e.g. a hostname) // - its value cannot be safely shared between nodes at the same time (e.g. a hostname)
@ -563,6 +567,8 @@ type KubeletAnonymousAuthentication struct {
Enabled bool Enabled bool
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type KubeSchedulerConfiguration struct { type KubeSchedulerConfiguration struct {
metav1.TypeMeta metav1.TypeMeta
@ -650,6 +656,8 @@ type GroupResource struct {
Resource string Resource string
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type KubeControllerManagerConfiguration struct { type KubeControllerManagerConfiguration struct {
metav1.TypeMeta metav1.TypeMeta

View File

@ -74,6 +74,8 @@ type KubeProxyConntrackConfiguration struct {
TCPCloseWaitTimeout metav1.Duration `json:"tcpCloseWaitTimeout"` TCPCloseWaitTimeout metav1.Duration `json:"tcpCloseWaitTimeout"`
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// KubeProxyConfiguration contains everything necessary to configure the // KubeProxyConfiguration contains everything necessary to configure the
// Kubernetes proxy server. // Kubernetes proxy server.
type KubeProxyConfiguration struct { type KubeProxyConfiguration struct {
@ -144,6 +146,8 @@ const (
ProxyModeIPTables ProxyMode = "iptables" ProxyModeIPTables ProxyMode = "iptables"
) )
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type KubeSchedulerConfiguration struct { type KubeSchedulerConfiguration struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
@ -241,6 +245,8 @@ type LeaderElectionConfiguration struct {
ResourceLock string `json:"resourceLock"` ResourceLock string `json:"resourceLock"`
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// A configuration field should go in KubeletFlags instead of KubeletConfiguration if any of these are true: // A configuration field should go in KubeletFlags instead of KubeletConfiguration if any of these are true:
// - its value will never, or cannot safely be changed during the lifetime of a node // - its value will never, or cannot safely be changed during the lifetime of a node
// - its value cannot be safely shared between nodes at the same time (e.g. a hostname) // - its value cannot be safely shared between nodes at the same time (e.g. a hostname)

View File

@ -27,161 +27,295 @@ import (
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_ClientConnectionConfiguration, InType: reflect.TypeOf(&ClientConnectionConfiguration{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeProxyConfiguration, InType: reflect.TypeOf(&KubeProxyConfiguration{})}, in.(*ClientConnectionConfiguration).DeepCopyInto(out.(*ClientConnectionConfiguration))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeProxyConntrackConfiguration, InType: reflect.TypeOf(&KubeProxyConntrackConfiguration{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeProxyIPTablesConfiguration, InType: reflect.TypeOf(&KubeProxyIPTablesConfiguration{})}, }, InType: reflect.TypeOf(&ClientConnectionConfiguration{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeSchedulerConfiguration, InType: reflect.TypeOf(&KubeSchedulerConfiguration{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeletAnonymousAuthentication, InType: reflect.TypeOf(&KubeletAnonymousAuthentication{})}, in.(*KubeProxyConfiguration).DeepCopyInto(out.(*KubeProxyConfiguration))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeletAuthentication, InType: reflect.TypeOf(&KubeletAuthentication{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeletAuthorization, InType: reflect.TypeOf(&KubeletAuthorization{})}, }, InType: reflect.TypeOf(&KubeProxyConfiguration{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeletConfiguration, InType: reflect.TypeOf(&KubeletConfiguration{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeletWebhookAuthentication, InType: reflect.TypeOf(&KubeletWebhookAuthentication{})}, in.(*KubeProxyConntrackConfiguration).DeepCopyInto(out.(*KubeProxyConntrackConfiguration))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeletWebhookAuthorization, InType: reflect.TypeOf(&KubeletWebhookAuthorization{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_KubeletX509Authentication, InType: reflect.TypeOf(&KubeletX509Authentication{})}, }, InType: reflect.TypeOf(&KubeProxyConntrackConfiguration{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_LeaderElectionConfiguration, InType: reflect.TypeOf(&LeaderElectionConfiguration{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*KubeProxyIPTablesConfiguration).DeepCopyInto(out.(*KubeProxyIPTablesConfiguration))
return nil
}, InType: reflect.TypeOf(&KubeProxyIPTablesConfiguration{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*KubeSchedulerConfiguration).DeepCopyInto(out.(*KubeSchedulerConfiguration))
return nil
}, InType: reflect.TypeOf(&KubeSchedulerConfiguration{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*KubeletAnonymousAuthentication).DeepCopyInto(out.(*KubeletAnonymousAuthentication))
return nil
}, InType: reflect.TypeOf(&KubeletAnonymousAuthentication{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*KubeletAuthentication).DeepCopyInto(out.(*KubeletAuthentication))
return nil
}, InType: reflect.TypeOf(&KubeletAuthentication{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*KubeletAuthorization).DeepCopyInto(out.(*KubeletAuthorization))
return nil
}, InType: reflect.TypeOf(&KubeletAuthorization{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*KubeletConfiguration).DeepCopyInto(out.(*KubeletConfiguration))
return nil
}, InType: reflect.TypeOf(&KubeletConfiguration{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*KubeletWebhookAuthentication).DeepCopyInto(out.(*KubeletWebhookAuthentication))
return nil
}, InType: reflect.TypeOf(&KubeletWebhookAuthentication{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*KubeletWebhookAuthorization).DeepCopyInto(out.(*KubeletWebhookAuthorization))
return nil
}, InType: reflect.TypeOf(&KubeletWebhookAuthorization{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*KubeletX509Authentication).DeepCopyInto(out.(*KubeletX509Authentication))
return nil
}, InType: reflect.TypeOf(&KubeletX509Authentication{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*LeaderElectionConfiguration).DeepCopyInto(out.(*LeaderElectionConfiguration))
return nil
}, InType: reflect.TypeOf(&LeaderElectionConfiguration{})},
) )
} }
// DeepCopy_v1alpha1_ClientConnectionConfiguration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1alpha1_ClientConnectionConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *ClientConnectionConfiguration) DeepCopyInto(out *ClientConnectionConfiguration) {
{
in := in.(*ClientConnectionConfiguration)
out := out.(*ClientConnectionConfiguration)
*out = *in *out = *in
return nil return
}
} }
// DeepCopy_v1alpha1_KubeProxyConfiguration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClientConnectionConfiguration.
func DeepCopy_v1alpha1_KubeProxyConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *ClientConnectionConfiguration) DeepCopy() *ClientConnectionConfiguration {
{ if x == nil {
in := in.(*KubeProxyConfiguration) return nil
out := out.(*KubeProxyConfiguration)
*out = *in
if err := DeepCopy_v1alpha1_KubeProxyIPTablesConfiguration(&in.IPTables, &out.IPTables, c); err != nil {
return err
} }
out := new(ClientConnectionConfiguration)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *KubeProxyConfiguration) DeepCopyInto(out *KubeProxyConfiguration) {
*out = *in
out.TypeMeta = in.TypeMeta
out.ClientConnection = in.ClientConnection
in.IPTables.DeepCopyInto(&out.IPTables)
if in.OOMScoreAdj != nil { if in.OOMScoreAdj != nil {
in, out := &in.OOMScoreAdj, &out.OOMScoreAdj in, out := &in.OOMScoreAdj, &out.OOMScoreAdj
if *in == nil {
*out = nil
} else {
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} }
}
out.UDPIdleTimeout = in.UDPIdleTimeout
out.Conntrack = in.Conntrack
out.ConfigSyncPeriod = in.ConfigSyncPeriod
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyConfiguration.
func (x *KubeProxyConfiguration) DeepCopy() *KubeProxyConfiguration {
if x == nil {
return nil
}
out := new(KubeProxyConfiguration)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *KubeProxyConfiguration) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_v1alpha1_KubeProxyConntrackConfiguration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1alpha1_KubeProxyConntrackConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *KubeProxyConntrackConfiguration) DeepCopyInto(out *KubeProxyConntrackConfiguration) {
{
in := in.(*KubeProxyConntrackConfiguration)
out := out.(*KubeProxyConntrackConfiguration)
*out = *in *out = *in
return nil out.TCPEstablishedTimeout = in.TCPEstablishedTimeout
} out.TCPCloseWaitTimeout = in.TCPCloseWaitTimeout
return
} }
// DeepCopy_v1alpha1_KubeProxyIPTablesConfiguration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyConntrackConfiguration.
func DeepCopy_v1alpha1_KubeProxyIPTablesConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *KubeProxyConntrackConfiguration) DeepCopy() *KubeProxyConntrackConfiguration {
{ if x == nil {
in := in.(*KubeProxyIPTablesConfiguration) return nil
out := out.(*KubeProxyIPTablesConfiguration) }
out := new(KubeProxyConntrackConfiguration)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *KubeProxyIPTablesConfiguration) DeepCopyInto(out *KubeProxyIPTablesConfiguration) {
*out = *in *out = *in
if in.MasqueradeBit != nil { if in.MasqueradeBit != nil {
in, out := &in.MasqueradeBit, &out.MasqueradeBit in, out := &in.MasqueradeBit, &out.MasqueradeBit
if *in == nil {
*out = nil
} else {
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} }
return nil
} }
out.SyncPeriod = in.SyncPeriod
out.MinSyncPeriod = in.MinSyncPeriod
return
} }
// DeepCopy_v1alpha1_KubeSchedulerConfiguration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyIPTablesConfiguration.
func DeepCopy_v1alpha1_KubeSchedulerConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *KubeProxyIPTablesConfiguration) DeepCopy() *KubeProxyIPTablesConfiguration {
{ if x == nil {
in := in.(*KubeSchedulerConfiguration) return nil
out := out.(*KubeSchedulerConfiguration) }
out := new(KubeProxyIPTablesConfiguration)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *KubeSchedulerConfiguration) DeepCopyInto(out *KubeSchedulerConfiguration) {
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
if in.EnableProfiling != nil { if in.EnableProfiling != nil {
in, out := &in.EnableProfiling, &out.EnableProfiling in, out := &in.EnableProfiling, &out.EnableProfiling
if *in == nil {
*out = nil
} else {
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} }
if err := DeepCopy_v1alpha1_LeaderElectionConfiguration(&in.LeaderElection, &out.LeaderElection, c); err != nil {
return err
} }
in.LeaderElection.DeepCopyInto(&out.LeaderElection)
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeSchedulerConfiguration.
func (x *KubeSchedulerConfiguration) DeepCopy() *KubeSchedulerConfiguration {
if x == nil {
return nil
}
out := new(KubeSchedulerConfiguration)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *KubeSchedulerConfiguration) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_v1alpha1_KubeletAnonymousAuthentication is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1alpha1_KubeletAnonymousAuthentication(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *KubeletAnonymousAuthentication) DeepCopyInto(out *KubeletAnonymousAuthentication) {
{
in := in.(*KubeletAnonymousAuthentication)
out := out.(*KubeletAnonymousAuthentication)
*out = *in *out = *in
if in.Enabled != nil { if in.Enabled != nil {
in, out := &in.Enabled, &out.Enabled in, out := &in.Enabled, &out.Enabled
if *in == nil {
*out = nil
} else {
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} }
return nil
} }
return
} }
// DeepCopy_v1alpha1_KubeletAuthentication is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletAnonymousAuthentication.
func DeepCopy_v1alpha1_KubeletAuthentication(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *KubeletAnonymousAuthentication) DeepCopy() *KubeletAnonymousAuthentication {
{ if x == nil {
in := in.(*KubeletAuthentication)
out := out.(*KubeletAuthentication)
*out = *in
if err := DeepCopy_v1alpha1_KubeletWebhookAuthentication(&in.Webhook, &out.Webhook, c); err != nil {
return err
}
if err := DeepCopy_v1alpha1_KubeletAnonymousAuthentication(&in.Anonymous, &out.Anonymous, c); err != nil {
return err
}
return nil return nil
} }
out := new(KubeletAnonymousAuthentication)
x.DeepCopyInto(out)
return out
} }
// DeepCopy_v1alpha1_KubeletAuthorization is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1alpha1_KubeletAuthorization(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *KubeletAuthentication) DeepCopyInto(out *KubeletAuthentication) {
{
in := in.(*KubeletAuthorization)
out := out.(*KubeletAuthorization)
*out = *in *out = *in
out.X509 = in.X509
in.Webhook.DeepCopyInto(&out.Webhook)
in.Anonymous.DeepCopyInto(&out.Anonymous)
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletAuthentication.
func (x *KubeletAuthentication) DeepCopy() *KubeletAuthentication {
if x == nil {
return nil return nil
} }
out := new(KubeletAuthentication)
x.DeepCopyInto(out)
return out
} }
// DeepCopy_v1alpha1_KubeletConfiguration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1alpha1_KubeletConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *KubeletAuthorization) DeepCopyInto(out *KubeletAuthorization) {
{
in := in.(*KubeletConfiguration)
out := out.(*KubeletConfiguration)
*out = *in *out = *in
out.Webhook = in.Webhook
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletAuthorization.
func (x *KubeletAuthorization) DeepCopy() *KubeletAuthorization {
if x == nil {
return nil
}
out := new(KubeletAuthorization)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *KubeletConfiguration) DeepCopyInto(out *KubeletConfiguration) {
*out = *in
out.TypeMeta = in.TypeMeta
out.SyncFrequency = in.SyncFrequency
out.FileCheckFrequency = in.FileCheckFrequency
out.HTTPCheckFrequency = in.HTTPCheckFrequency
if in.EnableServer != nil { if in.EnableServer != nil {
in, out := &in.EnableServer, &out.EnableServer in, out := &in.EnableServer, &out.EnableServer
if *in == nil {
*out = nil
} else {
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} }
if err := DeepCopy_v1alpha1_KubeletAuthentication(&in.Authentication, &out.Authentication, c); err != nil {
return err
} }
in.Authentication.DeepCopyInto(&out.Authentication)
out.Authorization = in.Authorization
if in.AllowPrivileged != nil { if in.AllowPrivileged != nil {
in, out := &in.AllowPrivileged, &out.AllowPrivileged in, out := &in.AllowPrivileged, &out.AllowPrivileged
if *in == nil {
*out = nil
} else {
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} }
}
if in.HostNetworkSources != nil { if in.HostNetworkSources != nil {
in, out := &in.HostNetworkSources, &out.HostNetworkSources in, out := &in.HostNetworkSources, &out.HostNetworkSources
*out = make([]string, len(*in)) *out = make([]string, len(*in))
@ -199,142 +333,236 @@ func DeepCopy_v1alpha1_KubeletConfiguration(in interface{}, out interface{}, c *
} }
if in.RegistryPullQPS != nil { if in.RegistryPullQPS != nil {
in, out := &in.RegistryPullQPS, &out.RegistryPullQPS in, out := &in.RegistryPullQPS, &out.RegistryPullQPS
if *in == nil {
*out = nil
} else {
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} }
}
if in.EventRecordQPS != nil { if in.EventRecordQPS != nil {
in, out := &in.EventRecordQPS, &out.EventRecordQPS in, out := &in.EventRecordQPS, &out.EventRecordQPS
if *in == nil {
*out = nil
} else {
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} }
}
if in.EnableDebuggingHandlers != nil { if in.EnableDebuggingHandlers != nil {
in, out := &in.EnableDebuggingHandlers, &out.EnableDebuggingHandlers in, out := &in.EnableDebuggingHandlers, &out.EnableDebuggingHandlers
if *in == nil {
*out = nil
} else {
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} }
}
out.MinimumGCAge = in.MinimumGCAge
if in.MaxContainerCount != nil { if in.MaxContainerCount != nil {
in, out := &in.MaxContainerCount, &out.MaxContainerCount in, out := &in.MaxContainerCount, &out.MaxContainerCount
if *in == nil {
*out = nil
} else {
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} }
}
if in.CAdvisorPort != nil { if in.CAdvisorPort != nil {
in, out := &in.CAdvisorPort, &out.CAdvisorPort in, out := &in.CAdvisorPort, &out.CAdvisorPort
if *in == nil {
*out = nil
} else {
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} }
}
if in.OOMScoreAdj != nil { if in.OOMScoreAdj != nil {
in, out := &in.OOMScoreAdj, &out.OOMScoreAdj in, out := &in.OOMScoreAdj, &out.OOMScoreAdj
if *in == nil {
*out = nil
} else {
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} }
}
if in.RegisterNode != nil { if in.RegisterNode != nil {
in, out := &in.RegisterNode, &out.RegisterNode in, out := &in.RegisterNode, &out.RegisterNode
if *in == nil {
*out = nil
} else {
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} }
}
if in.ClusterDNS != nil { if in.ClusterDNS != nil {
in, out := &in.ClusterDNS, &out.ClusterDNS in, out := &in.ClusterDNS, &out.ClusterDNS
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} }
out.StreamingConnectionIdleTimeout = in.StreamingConnectionIdleTimeout
out.NodeStatusUpdateFrequency = in.NodeStatusUpdateFrequency
out.ImageMinimumGCAge = in.ImageMinimumGCAge
if in.ImageGCHighThresholdPercent != nil { if in.ImageGCHighThresholdPercent != nil {
in, out := &in.ImageGCHighThresholdPercent, &out.ImageGCHighThresholdPercent in, out := &in.ImageGCHighThresholdPercent, &out.ImageGCHighThresholdPercent
if *in == nil {
*out = nil
} else {
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} }
}
if in.ImageGCLowThresholdPercent != nil { if in.ImageGCLowThresholdPercent != nil {
in, out := &in.ImageGCLowThresholdPercent, &out.ImageGCLowThresholdPercent in, out := &in.ImageGCLowThresholdPercent, &out.ImageGCLowThresholdPercent
if *in == nil {
*out = nil
} else {
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} }
}
out.VolumeStatsAggPeriod = in.VolumeStatsAggPeriod
if in.CgroupsPerQOS != nil { if in.CgroupsPerQOS != nil {
in, out := &in.CgroupsPerQOS, &out.CgroupsPerQOS in, out := &in.CgroupsPerQOS, &out.CgroupsPerQOS
if *in == nil {
*out = nil
} else {
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} }
}
out.RuntimeRequestTimeout = in.RuntimeRequestTimeout
if in.LockFilePath != nil { if in.LockFilePath != nil {
in, out := &in.LockFilePath, &out.LockFilePath in, out := &in.LockFilePath, &out.LockFilePath
if *in == nil {
*out = nil
} else {
*out = new(string) *out = new(string)
**out = **in **out = **in
} }
}
if in.CPUCFSQuota != nil { if in.CPUCFSQuota != nil {
in, out := &in.CPUCFSQuota, &out.CPUCFSQuota in, out := &in.CPUCFSQuota, &out.CPUCFSQuota
if *in == nil {
*out = nil
} else {
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} }
}
if in.Containerized != nil { if in.Containerized != nil {
in, out := &in.Containerized, &out.Containerized in, out := &in.Containerized, &out.Containerized
if *in == nil {
*out = nil
} else {
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} }
}
if in.RegisterSchedulable != nil { if in.RegisterSchedulable != nil {
in, out := &in.RegisterSchedulable, &out.RegisterSchedulable in, out := &in.RegisterSchedulable, &out.RegisterSchedulable
if *in == nil {
*out = nil
} else {
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} }
}
if in.RegisterWithTaints != nil { if in.RegisterWithTaints != nil {
in, out := &in.RegisterWithTaints, &out.RegisterWithTaints in, out := &in.RegisterWithTaints, &out.RegisterWithTaints
*out = make([]v1.Taint, len(*in)) *out = make([]v1.Taint, len(*in))
for i := range *in { for i := range *in {
if err := v1.DeepCopy_v1_Taint(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
}
} }
} }
if in.KubeAPIQPS != nil { if in.KubeAPIQPS != nil {
in, out := &in.KubeAPIQPS, &out.KubeAPIQPS in, out := &in.KubeAPIQPS, &out.KubeAPIQPS
if *in == nil {
*out = nil
} else {
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} }
}
if in.SerializeImagePulls != nil { if in.SerializeImagePulls != nil {
in, out := &in.SerializeImagePulls, &out.SerializeImagePulls in, out := &in.SerializeImagePulls, &out.SerializeImagePulls
if *in == nil {
*out = nil
} else {
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} }
}
out.OutOfDiskTransitionFrequency = in.OutOfDiskTransitionFrequency
if in.NodeLabels != nil { if in.NodeLabels != nil {
in, out := &in.NodeLabels, &out.NodeLabels in, out := &in.NodeLabels, &out.NodeLabels
*out = make(map[string]string) *out = make(map[string]string, len(*in))
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} }
if in.EvictionHard != nil { if in.EvictionHard != nil {
in, out := &in.EvictionHard, &out.EvictionHard in, out := &in.EvictionHard, &out.EvictionHard
if *in == nil {
*out = nil
} else {
*out = new(string) *out = new(string)
**out = **in **out = **in
} }
}
out.EvictionPressureTransitionPeriod = in.EvictionPressureTransitionPeriod
if in.ExperimentalKernelMemcgNotification != nil { if in.ExperimentalKernelMemcgNotification != nil {
in, out := &in.ExperimentalKernelMemcgNotification, &out.ExperimentalKernelMemcgNotification in, out := &in.ExperimentalKernelMemcgNotification, &out.ExperimentalKernelMemcgNotification
if *in == nil {
*out = nil
} else {
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} }
}
if in.EnableControllerAttachDetach != nil { if in.EnableControllerAttachDetach != nil {
in, out := &in.EnableControllerAttachDetach, &out.EnableControllerAttachDetach in, out := &in.EnableControllerAttachDetach, &out.EnableControllerAttachDetach
if *in == nil {
*out = nil
} else {
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} }
}
if in.ExperimentalQOSReserved != nil { if in.ExperimentalQOSReserved != nil {
in, out := &in.ExperimentalQOSReserved, &out.ExperimentalQOSReserved in, out := &in.ExperimentalQOSReserved, &out.ExperimentalQOSReserved
*out = make(map[string]string) *out = make(map[string]string, len(*in))
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} }
if in.MakeIPTablesUtilChains != nil { if in.MakeIPTablesUtilChains != nil {
in, out := &in.MakeIPTablesUtilChains, &out.MakeIPTablesUtilChains in, out := &in.MakeIPTablesUtilChains, &out.MakeIPTablesUtilChains
if *in == nil {
*out = nil
} else {
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} }
}
if in.IPTablesMasqueradeBit != nil { if in.IPTablesMasqueradeBit != nil {
in, out := &in.IPTablesMasqueradeBit, &out.IPTablesMasqueradeBit in, out := &in.IPTablesMasqueradeBit, &out.IPTablesMasqueradeBit
if *in == nil {
*out = nil
} else {
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} }
}
if in.IPTablesDropBit != nil { if in.IPTablesDropBit != nil {
in, out := &in.IPTablesDropBit, &out.IPTablesDropBit in, out := &in.IPTablesDropBit, &out.IPTablesDropBit
if *in == nil {
*out = nil
} else {
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} }
}
if in.AllowedUnsafeSysctls != nil { if in.AllowedUnsafeSysctls != nil {
in, out := &in.AllowedUnsafeSysctls, &out.AllowedUnsafeSysctls in, out := &in.AllowedUnsafeSysctls, &out.AllowedUnsafeSysctls
*out = make([]string, len(*in)) *out = make([]string, len(*in))
@ -342,14 +570,14 @@ func DeepCopy_v1alpha1_KubeletConfiguration(in interface{}, out interface{}, c *
} }
if in.SystemReserved != nil { if in.SystemReserved != nil {
in, out := &in.SystemReserved, &out.SystemReserved in, out := &in.SystemReserved, &out.SystemReserved
*out = make(map[string]string) *out = make(map[string]string, len(*in))
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} }
if in.KubeReserved != nil { if in.KubeReserved != nil {
in, out := &in.KubeReserved, &out.KubeReserved in, out := &in.KubeReserved, &out.KubeReserved
*out = make(map[string]string) *out = make(map[string]string, len(*in))
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
@ -359,56 +587,112 @@ func DeepCopy_v1alpha1_KubeletConfiguration(in interface{}, out interface{}, c *
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletConfiguration.
func (x *KubeletConfiguration) DeepCopy() *KubeletConfiguration {
if x == nil {
return nil
}
out := new(KubeletConfiguration)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *KubeletConfiguration) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_v1alpha1_KubeletWebhookAuthentication is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1alpha1_KubeletWebhookAuthentication(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *KubeletWebhookAuthentication) DeepCopyInto(out *KubeletWebhookAuthentication) {
{
in := in.(*KubeletWebhookAuthentication)
out := out.(*KubeletWebhookAuthentication)
*out = *in *out = *in
if in.Enabled != nil { if in.Enabled != nil {
in, out := &in.Enabled, &out.Enabled in, out := &in.Enabled, &out.Enabled
if *in == nil {
*out = nil
} else {
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} }
return nil
} }
out.CacheTTL = in.CacheTTL
return
} }
// DeepCopy_v1alpha1_KubeletWebhookAuthorization is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletWebhookAuthentication.
func DeepCopy_v1alpha1_KubeletWebhookAuthorization(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *KubeletWebhookAuthentication) DeepCopy() *KubeletWebhookAuthentication {
{ if x == nil {
in := in.(*KubeletWebhookAuthorization) return nil
out := out.(*KubeletWebhookAuthorization) }
out := new(KubeletWebhookAuthentication)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *KubeletWebhookAuthorization) DeepCopyInto(out *KubeletWebhookAuthorization) {
*out = *in *out = *in
return nil out.CacheAuthorizedTTL = in.CacheAuthorizedTTL
} out.CacheUnauthorizedTTL = in.CacheUnauthorizedTTL
return
} }
// DeepCopy_v1alpha1_KubeletX509Authentication is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletWebhookAuthorization.
func DeepCopy_v1alpha1_KubeletX509Authentication(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *KubeletWebhookAuthorization) DeepCopy() *KubeletWebhookAuthorization {
{ if x == nil {
in := in.(*KubeletX509Authentication) return nil
out := out.(*KubeletX509Authentication) }
out := new(KubeletWebhookAuthorization)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *KubeletX509Authentication) DeepCopyInto(out *KubeletX509Authentication) {
*out = *in *out = *in
return nil return
}
} }
// DeepCopy_v1alpha1_LeaderElectionConfiguration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletX509Authentication.
func DeepCopy_v1alpha1_LeaderElectionConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *KubeletX509Authentication) DeepCopy() *KubeletX509Authentication {
{ if x == nil {
in := in.(*LeaderElectionConfiguration) return nil
out := out.(*LeaderElectionConfiguration) }
out := new(KubeletX509Authentication)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *LeaderElectionConfiguration) DeepCopyInto(out *LeaderElectionConfiguration) {
*out = *in *out = *in
if in.LeaderElect != nil { if in.LeaderElect != nil {
in, out := &in.LeaderElect, &out.LeaderElect in, out := &in.LeaderElect, &out.LeaderElect
if *in == nil {
*out = nil
} else {
*out = new(bool) *out = new(bool)
**out = **in **out = **in
} }
}
out.LeaseDuration = in.LeaseDuration
out.RenewDeadline = in.RenewDeadline
out.RetryPeriod = in.RetryPeriod
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new LeaderElectionConfiguration.
func (x *LeaderElectionConfiguration) DeepCopy() *LeaderElectionConfiguration {
if x == nil {
return nil return nil
} }
out := new(LeaderElectionConfiguration)
x.DeepCopyInto(out)
return out
} }

View File

@ -27,180 +27,380 @@ import (
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_ClientConnectionConfiguration, InType: reflect.TypeOf(&ClientConnectionConfiguration{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_GroupResource, InType: reflect.TypeOf(&GroupResource{})}, in.(*ClientConnectionConfiguration).DeepCopyInto(out.(*ClientConnectionConfiguration))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_IPVar, InType: reflect.TypeOf(&IPVar{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeControllerManagerConfiguration, InType: reflect.TypeOf(&KubeControllerManagerConfiguration{})}, }, InType: reflect.TypeOf(&ClientConnectionConfiguration{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeProxyConfiguration, InType: reflect.TypeOf(&KubeProxyConfiguration{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeProxyConntrackConfiguration, InType: reflect.TypeOf(&KubeProxyConntrackConfiguration{})}, in.(*GroupResource).DeepCopyInto(out.(*GroupResource))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeProxyIPTablesConfiguration, InType: reflect.TypeOf(&KubeProxyIPTablesConfiguration{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeSchedulerConfiguration, InType: reflect.TypeOf(&KubeSchedulerConfiguration{})}, }, InType: reflect.TypeOf(&GroupResource{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeletAnonymousAuthentication, InType: reflect.TypeOf(&KubeletAnonymousAuthentication{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeletAuthentication, InType: reflect.TypeOf(&KubeletAuthentication{})}, in.(*IPVar).DeepCopyInto(out.(*IPVar))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeletAuthorization, InType: reflect.TypeOf(&KubeletAuthorization{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeletConfiguration, InType: reflect.TypeOf(&KubeletConfiguration{})}, }, InType: reflect.TypeOf(&IPVar{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeletWebhookAuthentication, InType: reflect.TypeOf(&KubeletWebhookAuthentication{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeletWebhookAuthorization, InType: reflect.TypeOf(&KubeletWebhookAuthorization{})}, in.(*KubeControllerManagerConfiguration).DeepCopyInto(out.(*KubeControllerManagerConfiguration))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_KubeletX509Authentication, InType: reflect.TypeOf(&KubeletX509Authentication{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_LeaderElectionConfiguration, InType: reflect.TypeOf(&LeaderElectionConfiguration{})}, }, InType: reflect.TypeOf(&KubeControllerManagerConfiguration{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_PersistentVolumeRecyclerConfiguration, InType: reflect.TypeOf(&PersistentVolumeRecyclerConfiguration{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_PortRangeVar, InType: reflect.TypeOf(&PortRangeVar{})}, in.(*KubeProxyConfiguration).DeepCopyInto(out.(*KubeProxyConfiguration))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_componentconfig_VolumeConfiguration, InType: reflect.TypeOf(&VolumeConfiguration{})}, return nil
}, InType: reflect.TypeOf(&KubeProxyConfiguration{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*KubeProxyConntrackConfiguration).DeepCopyInto(out.(*KubeProxyConntrackConfiguration))
return nil
}, InType: reflect.TypeOf(&KubeProxyConntrackConfiguration{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*KubeProxyIPTablesConfiguration).DeepCopyInto(out.(*KubeProxyIPTablesConfiguration))
return nil
}, InType: reflect.TypeOf(&KubeProxyIPTablesConfiguration{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*KubeSchedulerConfiguration).DeepCopyInto(out.(*KubeSchedulerConfiguration))
return nil
}, InType: reflect.TypeOf(&KubeSchedulerConfiguration{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*KubeletAnonymousAuthentication).DeepCopyInto(out.(*KubeletAnonymousAuthentication))
return nil
}, InType: reflect.TypeOf(&KubeletAnonymousAuthentication{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*KubeletAuthentication).DeepCopyInto(out.(*KubeletAuthentication))
return nil
}, InType: reflect.TypeOf(&KubeletAuthentication{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*KubeletAuthorization).DeepCopyInto(out.(*KubeletAuthorization))
return nil
}, InType: reflect.TypeOf(&KubeletAuthorization{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*KubeletConfiguration).DeepCopyInto(out.(*KubeletConfiguration))
return nil
}, InType: reflect.TypeOf(&KubeletConfiguration{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*KubeletWebhookAuthentication).DeepCopyInto(out.(*KubeletWebhookAuthentication))
return nil
}, InType: reflect.TypeOf(&KubeletWebhookAuthentication{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*KubeletWebhookAuthorization).DeepCopyInto(out.(*KubeletWebhookAuthorization))
return nil
}, InType: reflect.TypeOf(&KubeletWebhookAuthorization{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*KubeletX509Authentication).DeepCopyInto(out.(*KubeletX509Authentication))
return nil
}, InType: reflect.TypeOf(&KubeletX509Authentication{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*LeaderElectionConfiguration).DeepCopyInto(out.(*LeaderElectionConfiguration))
return nil
}, InType: reflect.TypeOf(&LeaderElectionConfiguration{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PersistentVolumeRecyclerConfiguration).DeepCopyInto(out.(*PersistentVolumeRecyclerConfiguration))
return nil
}, InType: reflect.TypeOf(&PersistentVolumeRecyclerConfiguration{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PortRangeVar).DeepCopyInto(out.(*PortRangeVar))
return nil
}, InType: reflect.TypeOf(&PortRangeVar{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*VolumeConfiguration).DeepCopyInto(out.(*VolumeConfiguration))
return nil
}, InType: reflect.TypeOf(&VolumeConfiguration{})},
) )
} }
// DeepCopy_componentconfig_ClientConnectionConfiguration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_componentconfig_ClientConnectionConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *ClientConnectionConfiguration) DeepCopyInto(out *ClientConnectionConfiguration) {
{
in := in.(*ClientConnectionConfiguration)
out := out.(*ClientConnectionConfiguration)
*out = *in *out = *in
return nil return
}
} }
// DeepCopy_componentconfig_GroupResource is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClientConnectionConfiguration.
func DeepCopy_componentconfig_GroupResource(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *ClientConnectionConfiguration) DeepCopy() *ClientConnectionConfiguration {
{ if x == nil {
in := in.(*GroupResource)
out := out.(*GroupResource)
*out = *in
return nil return nil
} }
out := new(ClientConnectionConfiguration)
x.DeepCopyInto(out)
return out
} }
// DeepCopy_componentconfig_IPVar is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_componentconfig_IPVar(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *GroupResource) DeepCopyInto(out *GroupResource) {
{ *out = *in
in := in.(*IPVar) return
out := out.(*IPVar) }
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new GroupResource.
func (x *GroupResource) DeepCopy() *GroupResource {
if x == nil {
return nil
}
out := new(GroupResource)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *IPVar) DeepCopyInto(out *IPVar) {
*out = *in *out = *in
if in.Val != nil { if in.Val != nil {
in, out := &in.Val, &out.Val in, out := &in.Val, &out.Val
if *in == nil {
*out = nil
} else {
*out = new(string) *out = new(string)
**out = **in **out = **in
} }
return nil
} }
return
} }
// DeepCopy_componentconfig_KubeControllerManagerConfiguration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new IPVar.
func DeepCopy_componentconfig_KubeControllerManagerConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *IPVar) DeepCopy() *IPVar {
{ if x == nil {
in := in.(*KubeControllerManagerConfiguration) return nil
out := out.(*KubeControllerManagerConfiguration) }
out := new(IPVar)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *KubeControllerManagerConfiguration) DeepCopyInto(out *KubeControllerManagerConfiguration) {
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
if in.Controllers != nil { if in.Controllers != nil {
in, out := &in.Controllers, &out.Controllers in, out := &in.Controllers, &out.Controllers
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} }
out.ServiceSyncPeriod = in.ServiceSyncPeriod
out.NodeSyncPeriod = in.NodeSyncPeriod
out.RouteReconciliationPeriod = in.RouteReconciliationPeriod
out.ResourceQuotaSyncPeriod = in.ResourceQuotaSyncPeriod
out.NamespaceSyncPeriod = in.NamespaceSyncPeriod
out.PVClaimBinderSyncPeriod = in.PVClaimBinderSyncPeriod
out.MinResyncPeriod = in.MinResyncPeriod
out.HorizontalPodAutoscalerSyncPeriod = in.HorizontalPodAutoscalerSyncPeriod
out.HorizontalPodAutoscalerUpscaleForbiddenWindow = in.HorizontalPodAutoscalerUpscaleForbiddenWindow
out.HorizontalPodAutoscalerDownscaleForbiddenWindow = in.HorizontalPodAutoscalerDownscaleForbiddenWindow
out.DeploymentControllerSyncPeriod = in.DeploymentControllerSyncPeriod
out.PodEvictionTimeout = in.PodEvictionTimeout
out.NodeMonitorGracePeriod = in.NodeMonitorGracePeriod
out.NodeStartupGracePeriod = in.NodeStartupGracePeriod
out.NodeMonitorPeriod = in.NodeMonitorPeriod
out.ClusterSigningDuration = in.ClusterSigningDuration
out.LeaderElection = in.LeaderElection
out.VolumeConfiguration = in.VolumeConfiguration
out.ControllerStartInterval = in.ControllerStartInterval
if in.GCIgnoredResources != nil { if in.GCIgnoredResources != nil {
in, out := &in.GCIgnoredResources, &out.GCIgnoredResources in, out := &in.GCIgnoredResources, &out.GCIgnoredResources
*out = make([]GroupResource, len(*in)) *out = make([]GroupResource, len(*in))
copy(*out, *in) copy(*out, *in)
} }
out.ReconcilerSyncLoopPeriod = in.ReconcilerSyncLoopPeriod
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeControllerManagerConfiguration.
func (x *KubeControllerManagerConfiguration) DeepCopy() *KubeControllerManagerConfiguration {
if x == nil {
return nil
}
out := new(KubeControllerManagerConfiguration)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *KubeControllerManagerConfiguration) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_componentconfig_KubeProxyConfiguration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_componentconfig_KubeProxyConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *KubeProxyConfiguration) DeepCopyInto(out *KubeProxyConfiguration) {
{
in := in.(*KubeProxyConfiguration)
out := out.(*KubeProxyConfiguration)
*out = *in *out = *in
if err := DeepCopy_componentconfig_KubeProxyIPTablesConfiguration(&in.IPTables, &out.IPTables, c); err != nil { out.TypeMeta = in.TypeMeta
return err out.ClientConnection = in.ClientConnection
} in.IPTables.DeepCopyInto(&out.IPTables)
if in.OOMScoreAdj != nil { if in.OOMScoreAdj != nil {
in, out := &in.OOMScoreAdj, &out.OOMScoreAdj in, out := &in.OOMScoreAdj, &out.OOMScoreAdj
if *in == nil {
*out = nil
} else {
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} }
}
out.UDPIdleTimeout = in.UDPIdleTimeout
out.Conntrack = in.Conntrack
out.ConfigSyncPeriod = in.ConfigSyncPeriod
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyConfiguration.
func (x *KubeProxyConfiguration) DeepCopy() *KubeProxyConfiguration {
if x == nil {
return nil
}
out := new(KubeProxyConfiguration)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *KubeProxyConfiguration) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_componentconfig_KubeProxyConntrackConfiguration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_componentconfig_KubeProxyConntrackConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *KubeProxyConntrackConfiguration) DeepCopyInto(out *KubeProxyConntrackConfiguration) {
{
in := in.(*KubeProxyConntrackConfiguration)
out := out.(*KubeProxyConntrackConfiguration)
*out = *in *out = *in
return nil out.TCPEstablishedTimeout = in.TCPEstablishedTimeout
} out.TCPCloseWaitTimeout = in.TCPCloseWaitTimeout
return
} }
// DeepCopy_componentconfig_KubeProxyIPTablesConfiguration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyConntrackConfiguration.
func DeepCopy_componentconfig_KubeProxyIPTablesConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *KubeProxyConntrackConfiguration) DeepCopy() *KubeProxyConntrackConfiguration {
{ if x == nil {
in := in.(*KubeProxyIPTablesConfiguration) return nil
out := out.(*KubeProxyIPTablesConfiguration) }
out := new(KubeProxyConntrackConfiguration)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *KubeProxyIPTablesConfiguration) DeepCopyInto(out *KubeProxyIPTablesConfiguration) {
*out = *in *out = *in
if in.MasqueradeBit != nil { if in.MasqueradeBit != nil {
in, out := &in.MasqueradeBit, &out.MasqueradeBit in, out := &in.MasqueradeBit, &out.MasqueradeBit
if *in == nil {
*out = nil
} else {
*out = new(int32) *out = new(int32)
**out = **in **out = **in
} }
}
out.SyncPeriod = in.SyncPeriod
out.MinSyncPeriod = in.MinSyncPeriod
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeProxyIPTablesConfiguration.
func (x *KubeProxyIPTablesConfiguration) DeepCopy() *KubeProxyIPTablesConfiguration {
if x == nil {
return nil
}
out := new(KubeProxyIPTablesConfiguration)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *KubeSchedulerConfiguration) DeepCopyInto(out *KubeSchedulerConfiguration) {
*out = *in
out.TypeMeta = in.TypeMeta
out.LeaderElection = in.LeaderElection
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeSchedulerConfiguration.
func (x *KubeSchedulerConfiguration) DeepCopy() *KubeSchedulerConfiguration {
if x == nil {
return nil
}
out := new(KubeSchedulerConfiguration)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *KubeSchedulerConfiguration) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_componentconfig_KubeSchedulerConfiguration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_componentconfig_KubeSchedulerConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *KubeletAnonymousAuthentication) DeepCopyInto(out *KubeletAnonymousAuthentication) {
{
in := in.(*KubeSchedulerConfiguration)
out := out.(*KubeSchedulerConfiguration)
*out = *in *out = *in
return nil return
}
} }
// DeepCopy_componentconfig_KubeletAnonymousAuthentication is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletAnonymousAuthentication.
func DeepCopy_componentconfig_KubeletAnonymousAuthentication(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *KubeletAnonymousAuthentication) DeepCopy() *KubeletAnonymousAuthentication {
{ if x == nil {
in := in.(*KubeletAnonymousAuthentication)
out := out.(*KubeletAnonymousAuthentication)
*out = *in
return nil return nil
} }
out := new(KubeletAnonymousAuthentication)
x.DeepCopyInto(out)
return out
} }
// DeepCopy_componentconfig_KubeletAuthentication is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_componentconfig_KubeletAuthentication(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *KubeletAuthentication) DeepCopyInto(out *KubeletAuthentication) {
{
in := in.(*KubeletAuthentication)
out := out.(*KubeletAuthentication)
*out = *in *out = *in
out.X509 = in.X509
out.Webhook = in.Webhook
out.Anonymous = in.Anonymous
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletAuthentication.
func (x *KubeletAuthentication) DeepCopy() *KubeletAuthentication {
if x == nil {
return nil return nil
} }
out := new(KubeletAuthentication)
x.DeepCopyInto(out)
return out
} }
// DeepCopy_componentconfig_KubeletAuthorization is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_componentconfig_KubeletAuthorization(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *KubeletAuthorization) DeepCopyInto(out *KubeletAuthorization) {
{
in := in.(*KubeletAuthorization)
out := out.(*KubeletAuthorization)
*out = *in *out = *in
out.Webhook = in.Webhook
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletAuthorization.
func (x *KubeletAuthorization) DeepCopy() *KubeletAuthorization {
if x == nil {
return nil return nil
} }
out := new(KubeletAuthorization)
x.DeepCopyInto(out)
return out
} }
// DeepCopy_componentconfig_KubeletConfiguration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_componentconfig_KubeletConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *KubeletConfiguration) DeepCopyInto(out *KubeletConfiguration) {
{
in := in.(*KubeletConfiguration)
out := out.(*KubeletConfiguration)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
out.SyncFrequency = in.SyncFrequency
out.FileCheckFrequency = in.FileCheckFrequency
out.HTTPCheckFrequency = in.HTTPCheckFrequency
out.Authentication = in.Authentication
out.Authorization = in.Authorization
if in.HostNetworkSources != nil { if in.HostNetworkSources != nil {
in, out := &in.HostNetworkSources, &out.HostNetworkSources in, out := &in.HostNetworkSources, &out.HostNetworkSources
*out = make([]string, len(*in)) *out = make([]string, len(*in))
@ -216,30 +416,36 @@ func DeepCopy_componentconfig_KubeletConfiguration(in interface{}, out interface
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} }
out.MinimumGCAge = in.MinimumGCAge
if in.ClusterDNS != nil { if in.ClusterDNS != nil {
in, out := &in.ClusterDNS, &out.ClusterDNS in, out := &in.ClusterDNS, &out.ClusterDNS
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} }
out.StreamingConnectionIdleTimeout = in.StreamingConnectionIdleTimeout
out.NodeStatusUpdateFrequency = in.NodeStatusUpdateFrequency
out.ImageMinimumGCAge = in.ImageMinimumGCAge
out.VolumeStatsAggPeriod = in.VolumeStatsAggPeriod
out.RuntimeRequestTimeout = in.RuntimeRequestTimeout
if in.RegisterWithTaints != nil { if in.RegisterWithTaints != nil {
in, out := &in.RegisterWithTaints, &out.RegisterWithTaints in, out := &in.RegisterWithTaints, &out.RegisterWithTaints
*out = make([]api.Taint, len(*in)) *out = make([]api.Taint, len(*in))
for i := range *in { for i := range *in {
if err := api.DeepCopy_api_Taint(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
}
} }
} }
out.OutOfDiskTransitionFrequency = in.OutOfDiskTransitionFrequency
if in.NodeLabels != nil { if in.NodeLabels != nil {
in, out := &in.NodeLabels, &out.NodeLabels in, out := &in.NodeLabels, &out.NodeLabels
*out = make(map[string]string) *out = make(map[string]string, len(*in))
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} }
out.EvictionPressureTransitionPeriod = in.EvictionPressureTransitionPeriod
if in.ExperimentalQOSReserved != nil { if in.ExperimentalQOSReserved != nil {
in, out := &in.ExperimentalQOSReserved, &out.ExperimentalQOSReserved in, out := &in.ExperimentalQOSReserved, &out.ExperimentalQOSReserved
*out = make(ConfigurationMap) *out = make(ConfigurationMap, len(*in))
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
@ -251,14 +457,14 @@ func DeepCopy_componentconfig_KubeletConfiguration(in interface{}, out interface
} }
if in.SystemReserved != nil { if in.SystemReserved != nil {
in, out := &in.SystemReserved, &out.SystemReserved in, out := &in.SystemReserved, &out.SystemReserved
*out = make(ConfigurationMap) *out = make(ConfigurationMap, len(*in))
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} }
if in.KubeReserved != nil { if in.KubeReserved != nil {
in, out := &in.KubeReserved, &out.KubeReserved in, out := &in.KubeReserved, &out.KubeReserved
*out = make(ConfigurationMap) *out = make(ConfigurationMap, len(*in))
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
@ -268,81 +474,152 @@ func DeepCopy_componentconfig_KubeletConfiguration(in interface{}, out interface
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletConfiguration.
func (x *KubeletConfiguration) DeepCopy() *KubeletConfiguration {
if x == nil {
return nil
}
out := new(KubeletConfiguration)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *KubeletConfiguration) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_componentconfig_KubeletWebhookAuthentication is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_componentconfig_KubeletWebhookAuthentication(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *KubeletWebhookAuthentication) DeepCopyInto(out *KubeletWebhookAuthentication) {
{
in := in.(*KubeletWebhookAuthentication)
out := out.(*KubeletWebhookAuthentication)
*out = *in *out = *in
return nil out.CacheTTL = in.CacheTTL
} return
} }
// DeepCopy_componentconfig_KubeletWebhookAuthorization is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletWebhookAuthentication.
func DeepCopy_componentconfig_KubeletWebhookAuthorization(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *KubeletWebhookAuthentication) DeepCopy() *KubeletWebhookAuthentication {
{ if x == nil {
in := in.(*KubeletWebhookAuthorization) return nil
out := out.(*KubeletWebhookAuthorization) }
out := new(KubeletWebhookAuthentication)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *KubeletWebhookAuthorization) DeepCopyInto(out *KubeletWebhookAuthorization) {
*out = *in *out = *in
return nil out.CacheAuthorizedTTL = in.CacheAuthorizedTTL
} out.CacheUnauthorizedTTL = in.CacheUnauthorizedTTL
return
} }
// DeepCopy_componentconfig_KubeletX509Authentication is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletWebhookAuthorization.
func DeepCopy_componentconfig_KubeletX509Authentication(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *KubeletWebhookAuthorization) DeepCopy() *KubeletWebhookAuthorization {
{ if x == nil {
in := in.(*KubeletX509Authentication) return nil
out := out.(*KubeletX509Authentication) }
out := new(KubeletWebhookAuthorization)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *KubeletX509Authentication) DeepCopyInto(out *KubeletX509Authentication) {
*out = *in *out = *in
return nil return
}
} }
// DeepCopy_componentconfig_LeaderElectionConfiguration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new KubeletX509Authentication.
func DeepCopy_componentconfig_LeaderElectionConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *KubeletX509Authentication) DeepCopy() *KubeletX509Authentication {
{ if x == nil {
in := in.(*LeaderElectionConfiguration) return nil
out := out.(*LeaderElectionConfiguration) }
out := new(KubeletX509Authentication)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *LeaderElectionConfiguration) DeepCopyInto(out *LeaderElectionConfiguration) {
*out = *in *out = *in
return nil out.LeaseDuration = in.LeaseDuration
} out.RenewDeadline = in.RenewDeadline
out.RetryPeriod = in.RetryPeriod
return
} }
// DeepCopy_componentconfig_PersistentVolumeRecyclerConfiguration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new LeaderElectionConfiguration.
func DeepCopy_componentconfig_PersistentVolumeRecyclerConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *LeaderElectionConfiguration) DeepCopy() *LeaderElectionConfiguration {
{ if x == nil {
in := in.(*PersistentVolumeRecyclerConfiguration) return nil
out := out.(*PersistentVolumeRecyclerConfiguration) }
out := new(LeaderElectionConfiguration)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *PersistentVolumeRecyclerConfiguration) DeepCopyInto(out *PersistentVolumeRecyclerConfiguration) {
*out = *in *out = *in
return nil return
}
} }
// DeepCopy_componentconfig_PortRangeVar is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PersistentVolumeRecyclerConfiguration.
func DeepCopy_componentconfig_PortRangeVar(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *PersistentVolumeRecyclerConfiguration) DeepCopy() *PersistentVolumeRecyclerConfiguration {
{ if x == nil {
in := in.(*PortRangeVar) return nil
out := out.(*PortRangeVar) }
out := new(PersistentVolumeRecyclerConfiguration)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *PortRangeVar) DeepCopyInto(out *PortRangeVar) {
*out = *in *out = *in
if in.Val != nil { if in.Val != nil {
in, out := &in.Val, &out.Val in, out := &in.Val, &out.Val
if *in == nil {
*out = nil
} else {
*out = new(string) *out = new(string)
**out = **in **out = **in
} }
return nil
} }
return
} }
// DeepCopy_componentconfig_VolumeConfiguration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PortRangeVar.
func DeepCopy_componentconfig_VolumeConfiguration(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *PortRangeVar) DeepCopy() *PortRangeVar {
{ if x == nil {
in := in.(*VolumeConfiguration)
out := out.(*VolumeConfiguration)
*out = *in
return nil return nil
} }
out := new(PortRangeVar)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *VolumeConfiguration) DeepCopyInto(out *VolumeConfiguration) {
*out = *in
out.PersistentVolumeRecyclerConfiguration = in.PersistentVolumeRecyclerConfiguration
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new VolumeConfiguration.
func (x *VolumeConfiguration) DeepCopy() *VolumeConfiguration {
if x == nil {
return nil
}
out := new(VolumeConfiguration)
x.DeepCopyInto(out)
return out
} }

View File

@ -62,6 +62,7 @@ type ScaleStatus struct {
// +genclient=true // +genclient=true
// +noMethods=true // +noMethods=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// represents a scaling request for a resource. // represents a scaling request for a resource.
type Scale struct { type Scale struct {
@ -79,6 +80,8 @@ type Scale struct {
Status ScaleStatus Status ScaleStatus
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Dummy definition // Dummy definition
type ReplicationControllerDummy struct { type ReplicationControllerDummy struct {
metav1.TypeMeta metav1.TypeMeta
@ -109,6 +112,7 @@ type CustomMetricCurrentStatusList struct {
// +genclient=true // +genclient=true
// +nonNamespaced=true // +nonNamespaced=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// A ThirdPartyResource is a generic representation of a resource, it is used by add-ons and plugins to add new resource // A ThirdPartyResource is a generic representation of a resource, it is used by add-ons and plugins to add new resource
// types to the API. It consists of one or more Versions of the api. // types to the API. It consists of one or more Versions of the api.
@ -127,6 +131,8 @@ type ThirdPartyResource struct {
Versions []APIVersion Versions []APIVersion
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type ThirdPartyResourceList struct { type ThirdPartyResourceList struct {
metav1.TypeMeta metav1.TypeMeta
@ -145,6 +151,8 @@ type APIVersion struct {
Name string Name string
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// An internal object, used for versioned storage in etcd. Not exposed to the end user. // An internal object, used for versioned storage in etcd. Not exposed to the end user.
type ThirdPartyResourceData struct { type ThirdPartyResourceData struct {
metav1.TypeMeta metav1.TypeMeta
@ -158,6 +166,7 @@ type ThirdPartyResourceData struct {
} }
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type Deployment struct { type Deployment struct {
metav1.TypeMeta metav1.TypeMeta
@ -221,6 +230,8 @@ type DeploymentSpec struct {
ProgressDeadlineSeconds *int32 ProgressDeadlineSeconds *int32
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// DeploymentRollback stores the information required to rollback a deployment. // DeploymentRollback stores the information required to rollback a deployment.
type DeploymentRollback struct { type DeploymentRollback struct {
metav1.TypeMeta metav1.TypeMeta
@ -367,6 +378,8 @@ type DeploymentCondition struct {
Message string Message string
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type DeploymentList struct { type DeploymentList struct {
metav1.TypeMeta metav1.TypeMeta
// +optional // +optional
@ -507,6 +520,7 @@ type DaemonSetStatus struct {
} }
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// DaemonSet represents the configuration of a daemon set. // DaemonSet represents the configuration of a daemon set.
type DaemonSet struct { type DaemonSet struct {
@ -538,6 +552,8 @@ const (
DaemonSetTemplateGenerationKey string = "pod-template-generation" DaemonSetTemplateGenerationKey string = "pod-template-generation"
) )
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// DaemonSetList is a collection of daemon sets. // DaemonSetList is a collection of daemon sets.
type DaemonSetList struct { type DaemonSetList struct {
metav1.TypeMeta metav1.TypeMeta
@ -550,6 +566,8 @@ type DaemonSetList struct {
Items []DaemonSet Items []DaemonSet
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type ThirdPartyResourceDataList struct { type ThirdPartyResourceDataList struct {
metav1.TypeMeta metav1.TypeMeta
// Standard list metadata // Standard list metadata
@ -561,6 +579,7 @@ type ThirdPartyResourceDataList struct {
} }
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Ingress is a collection of rules that allow inbound connections to reach the // Ingress is a collection of rules that allow inbound connections to reach the
// endpoints defined by a backend. An Ingress can be configured to give services // endpoints defined by a backend. An Ingress can be configured to give services
@ -584,6 +603,8 @@ type Ingress struct {
Status IngressStatus Status IngressStatus
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// IngressList is a collection of Ingress. // IngressList is a collection of Ingress.
type IngressList struct { type IngressList struct {
metav1.TypeMeta metav1.TypeMeta
@ -727,6 +748,7 @@ type IngressBackend struct {
} }
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ReplicaSet represents the configuration of a replica set. // ReplicaSet represents the configuration of a replica set.
type ReplicaSet struct { type ReplicaSet struct {
@ -744,6 +766,8 @@ type ReplicaSet struct {
Status ReplicaSetStatus Status ReplicaSetStatus
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ReplicaSetList is a collection of ReplicaSets. // ReplicaSetList is a collection of ReplicaSets.
type ReplicaSetList struct { type ReplicaSetList struct {
metav1.TypeMeta metav1.TypeMeta
@ -834,6 +858,7 @@ type ReplicaSetCondition struct {
// +genclient=true // +genclient=true
// +nonNamespaced=true // +nonNamespaced=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// PodSecurityPolicy governs the ability to make requests that affect the SecurityContext // PodSecurityPolicy governs the ability to make requests that affect the SecurityContext
// that will be applied to a pod and container. // that will be applied to a pod and container.
@ -1045,6 +1070,8 @@ const (
SupplementalGroupsStrategyRunAsAny SupplementalGroupsStrategyType = "RunAsAny" SupplementalGroupsStrategyRunAsAny SupplementalGroupsStrategyType = "RunAsAny"
) )
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// PodSecurityPolicyList is a list of PodSecurityPolicy objects. // PodSecurityPolicyList is a list of PodSecurityPolicy objects.
type PodSecurityPolicyList struct { type PodSecurityPolicyList struct {
metav1.TypeMeta metav1.TypeMeta
@ -1055,6 +1082,7 @@ type PodSecurityPolicyList struct {
} }
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// NetworkPolicy describes what network traffic is allowed for a set of Pods // NetworkPolicy describes what network traffic is allowed for a set of Pods
type NetworkPolicy struct { type NetworkPolicy struct {
@ -1137,6 +1165,8 @@ type NetworkPolicyPeer struct {
NamespaceSelector *metav1.LabelSelector NamespaceSelector *metav1.LabelSelector
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// NetworkPolicyList is a list of NetworkPolicy objects. // NetworkPolicyList is a list of NetworkPolicy objects.
type NetworkPolicyList struct { type NetworkPolicyList struct {
metav1.TypeMeta metav1.TypeMeta

File diff suppressed because it is too large Load Diff

View File

@ -23,6 +23,7 @@ import (
// +genclient=true // +genclient=true
// +nonNamespaced=true // +nonNamespaced=true
// +noMethods=true // +noMethods=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ImageReview checks if the set of images in a pod are allowed. // ImageReview checks if the set of images in a pod are allowed.
type ImageReview struct { type ImageReview struct {

View File

@ -21,60 +21,86 @@ limitations under the License.
package imagepolicy package imagepolicy
import ( import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_imagepolicy_ImageReview, InType: reflect.TypeOf(&ImageReview{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_imagepolicy_ImageReviewContainerSpec, InType: reflect.TypeOf(&ImageReviewContainerSpec{})}, in.(*ImageReview).DeepCopyInto(out.(*ImageReview))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_imagepolicy_ImageReviewSpec, InType: reflect.TypeOf(&ImageReviewSpec{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_imagepolicy_ImageReviewStatus, InType: reflect.TypeOf(&ImageReviewStatus{})}, }, InType: reflect.TypeOf(&ImageReview{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ImageReviewContainerSpec).DeepCopyInto(out.(*ImageReviewContainerSpec))
return nil
}, InType: reflect.TypeOf(&ImageReviewContainerSpec{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ImageReviewSpec).DeepCopyInto(out.(*ImageReviewSpec))
return nil
}, InType: reflect.TypeOf(&ImageReviewSpec{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ImageReviewStatus).DeepCopyInto(out.(*ImageReviewStatus))
return nil
}, InType: reflect.TypeOf(&ImageReviewStatus{})},
) )
} }
// DeepCopy_imagepolicy_ImageReview is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_imagepolicy_ImageReview(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *ImageReview) DeepCopyInto(out *ImageReview) {
{
in := in.(*ImageReview)
out := out.(*ImageReview)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
out.Status = in.Status
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ImageReview.
func (x *ImageReview) DeepCopy() *ImageReview {
if x == nil {
return nil
}
out := new(ImageReview)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *ImageReview) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
if err := DeepCopy_imagepolicy_ImageReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err
}
return nil return nil
} }
} }
// DeepCopy_imagepolicy_ImageReviewContainerSpec is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_imagepolicy_ImageReviewContainerSpec(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *ImageReviewContainerSpec) DeepCopyInto(out *ImageReviewContainerSpec) {
{
in := in.(*ImageReviewContainerSpec)
out := out.(*ImageReviewContainerSpec)
*out = *in *out = *in
return nil return
}
} }
// DeepCopy_imagepolicy_ImageReviewSpec is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ImageReviewContainerSpec.
func DeepCopy_imagepolicy_ImageReviewSpec(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *ImageReviewContainerSpec) DeepCopy() *ImageReviewContainerSpec {
{ if x == nil {
in := in.(*ImageReviewSpec) return nil
out := out.(*ImageReviewSpec) }
out := new(ImageReviewContainerSpec)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ImageReviewSpec) DeepCopyInto(out *ImageReviewSpec) {
*out = *in *out = *in
if in.Containers != nil { if in.Containers != nil {
in, out := &in.Containers, &out.Containers in, out := &in.Containers, &out.Containers
@ -83,21 +109,36 @@ func DeepCopy_imagepolicy_ImageReviewSpec(in interface{}, out interface{}, c *co
} }
if in.Annotations != nil { if in.Annotations != nil {
in, out := &in.Annotations, &out.Annotations in, out := &in.Annotations, &out.Annotations
*out = make(map[string]string) *out = make(map[string]string, len(*in))
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} }
return nil return
}
} }
// DeepCopy_imagepolicy_ImageReviewStatus is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ImageReviewSpec.
func DeepCopy_imagepolicy_ImageReviewStatus(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *ImageReviewSpec) DeepCopy() *ImageReviewSpec {
{ if x == nil {
in := in.(*ImageReviewStatus)
out := out.(*ImageReviewStatus)
*out = *in
return nil return nil
} }
out := new(ImageReviewSpec)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ImageReviewStatus) DeepCopyInto(out *ImageReviewStatus) {
*out = *in
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ImageReviewStatus.
func (x *ImageReviewStatus) DeepCopy() *ImageReviewStatus {
if x == nil {
return nil
}
out := new(ImageReviewStatus)
x.DeepCopyInto(out)
return out
} }

View File

@ -37,11 +37,11 @@ type Time struct {
time.Time `protobuf:"-"` time.Time `protobuf:"-"`
} }
// DeepCopy returns a deep-copy of the Time value. The underlying time.Time // DeepCopyInto creates a deep-copy of the Time value. The underlying time.Time
// type is effectively immutable in the time API, so it is safe to // type is effectively immutable in the time API, so it is safe to
// copy-by-assign, despite the presence of (unexported) Pointer fields. // copy-by-assign, despite the presence of (unexported) Pointer fields.
func (t Time) DeepCopy() Time { func (t *Time) DeepCopyInto(out *Time) {
return t *out = *t
} }
// String returns the representation of the time. // String returns the representation of the time.

View File

@ -23,6 +23,7 @@ import (
) )
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// NetworkPolicy describes what network traffic is allowed for a set of Pods // NetworkPolicy describes what network traffic is allowed for a set of Pods
type NetworkPolicy struct { type NetworkPolicy struct {
@ -105,6 +106,8 @@ type NetworkPolicyPeer struct {
NamespaceSelector *metav1.LabelSelector NamespaceSelector *metav1.LabelSelector
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// NetworkPolicyList is a list of NetworkPolicy objects. // NetworkPolicyList is a list of NetworkPolicy objects.
type NetworkPolicyList struct { type NetworkPolicyList struct {
metav1.TypeMeta metav1.TypeMeta

View File

@ -29,154 +29,222 @@ import (
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_networking_NetworkPolicy, InType: reflect.TypeOf(&NetworkPolicy{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_networking_NetworkPolicyIngressRule, InType: reflect.TypeOf(&NetworkPolicyIngressRule{})}, in.(*NetworkPolicy).DeepCopyInto(out.(*NetworkPolicy))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_networking_NetworkPolicyList, InType: reflect.TypeOf(&NetworkPolicyList{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_networking_NetworkPolicyPeer, InType: reflect.TypeOf(&NetworkPolicyPeer{})}, }, InType: reflect.TypeOf(&NetworkPolicy{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_networking_NetworkPolicyPort, InType: reflect.TypeOf(&NetworkPolicyPort{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_networking_NetworkPolicySpec, InType: reflect.TypeOf(&NetworkPolicySpec{})}, in.(*NetworkPolicyIngressRule).DeepCopyInto(out.(*NetworkPolicyIngressRule))
return nil
}, InType: reflect.TypeOf(&NetworkPolicyIngressRule{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*NetworkPolicyList).DeepCopyInto(out.(*NetworkPolicyList))
return nil
}, InType: reflect.TypeOf(&NetworkPolicyList{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*NetworkPolicyPeer).DeepCopyInto(out.(*NetworkPolicyPeer))
return nil
}, InType: reflect.TypeOf(&NetworkPolicyPeer{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*NetworkPolicyPort).DeepCopyInto(out.(*NetworkPolicyPort))
return nil
}, InType: reflect.TypeOf(&NetworkPolicyPort{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*NetworkPolicySpec).DeepCopyInto(out.(*NetworkPolicySpec))
return nil
}, InType: reflect.TypeOf(&NetworkPolicySpec{})},
) )
} }
// DeepCopy_networking_NetworkPolicy is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_networking_NetworkPolicy(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *NetworkPolicy) DeepCopyInto(out *NetworkPolicy) {
{
in := in.(*NetworkPolicy)
out := out.(*NetworkPolicy)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicy.
func (x *NetworkPolicy) DeepCopy() *NetworkPolicy {
if x == nil {
return nil
}
out := new(NetworkPolicy)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *NetworkPolicy) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
if err := DeepCopy_networking_NetworkPolicySpec(&in.Spec, &out.Spec, c); err != nil {
return err
}
return nil return nil
} }
} }
// DeepCopy_networking_NetworkPolicyIngressRule is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_networking_NetworkPolicyIngressRule(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *NetworkPolicyIngressRule) DeepCopyInto(out *NetworkPolicyIngressRule) {
{
in := in.(*NetworkPolicyIngressRule)
out := out.(*NetworkPolicyIngressRule)
*out = *in *out = *in
if in.Ports != nil { if in.Ports != nil {
in, out := &in.Ports, &out.Ports in, out := &in.Ports, &out.Ports
*out = make([]NetworkPolicyPort, len(*in)) *out = make([]NetworkPolicyPort, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_networking_NetworkPolicyPort(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
}
} }
} }
if in.From != nil { if in.From != nil {
in, out := &in.From, &out.From in, out := &in.From, &out.From
*out = make([]NetworkPolicyPeer, len(*in)) *out = make([]NetworkPolicyPeer, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_networking_NetworkPolicyPeer(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
} return
return nil
}
} }
// DeepCopy_networking_NetworkPolicyList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyIngressRule.
func DeepCopy_networking_NetworkPolicyList(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *NetworkPolicyIngressRule) DeepCopy() *NetworkPolicyIngressRule {
{ if x == nil {
in := in.(*NetworkPolicyList) return nil
out := out.(*NetworkPolicyList) }
out := new(NetworkPolicyIngressRule)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *NetworkPolicyList) DeepCopyInto(out *NetworkPolicyList) {
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]NetworkPolicy, len(*in)) *out = make([]NetworkPolicy, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_networking_NetworkPolicy(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyList.
func (x *NetworkPolicyList) DeepCopy() *NetworkPolicyList {
if x == nil {
return nil
} }
out := new(NetworkPolicyList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *NetworkPolicyList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_networking_NetworkPolicyPeer is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_networking_NetworkPolicyPeer(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *NetworkPolicyPeer) DeepCopyInto(out *NetworkPolicyPeer) {
{
in := in.(*NetworkPolicyPeer)
out := out.(*NetworkPolicyPeer)
*out = *in *out = *in
if in.PodSelector != nil { if in.PodSelector != nil {
in, out := &in.PodSelector, &out.PodSelector in, out := &in.PodSelector, &out.PodSelector
if newVal, err := c.DeepCopy(*in); err != nil { if *in == nil {
return err *out = nil
} else { } else {
*out = newVal.(*v1.LabelSelector) *out = new(v1.LabelSelector)
(*in).DeepCopyInto(*out)
} }
} }
if in.NamespaceSelector != nil { if in.NamespaceSelector != nil {
in, out := &in.NamespaceSelector, &out.NamespaceSelector in, out := &in.NamespaceSelector, &out.NamespaceSelector
if newVal, err := c.DeepCopy(*in); err != nil { if *in == nil {
return err *out = nil
} else { } else {
*out = newVal.(*v1.LabelSelector) *out = new(v1.LabelSelector)
(*in).DeepCopyInto(*out)
} }
} }
return nil return
}
} }
// DeepCopy_networking_NetworkPolicyPort is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPeer.
func DeepCopy_networking_NetworkPolicyPort(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *NetworkPolicyPeer) DeepCopy() *NetworkPolicyPeer {
{ if x == nil {
in := in.(*NetworkPolicyPort) return nil
out := out.(*NetworkPolicyPort) }
out := new(NetworkPolicyPeer)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *NetworkPolicyPort) DeepCopyInto(out *NetworkPolicyPort) {
*out = *in *out = *in
if in.Protocol != nil { if in.Protocol != nil {
in, out := &in.Protocol, &out.Protocol in, out := &in.Protocol, &out.Protocol
if *in == nil {
*out = nil
} else {
*out = new(api.Protocol) *out = new(api.Protocol)
**out = **in **out = **in
} }
}
if in.Port != nil { if in.Port != nil {
in, out := &in.Port, &out.Port in, out := &in.Port, &out.Port
if *in == nil {
*out = nil
} else {
*out = new(intstr.IntOrString) *out = new(intstr.IntOrString)
**out = **in **out = **in
} }
return nil
} }
return
} }
// DeepCopy_networking_NetworkPolicySpec is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicyPort.
func DeepCopy_networking_NetworkPolicySpec(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *NetworkPolicyPort) DeepCopy() *NetworkPolicyPort {
{ if x == nil {
in := in.(*NetworkPolicySpec) return nil
out := out.(*NetworkPolicySpec)
*out = *in
if newVal, err := c.DeepCopy(&in.PodSelector); err != nil {
return err
} else {
out.PodSelector = *newVal.(*v1.LabelSelector)
} }
out := new(NetworkPolicyPort)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *NetworkPolicySpec) DeepCopyInto(out *NetworkPolicySpec) {
*out = *in
in.PodSelector.DeepCopyInto(&out.PodSelector)
if in.Ingress != nil { if in.Ingress != nil {
in, out := &in.Ingress, &out.Ingress in, out := &in.Ingress, &out.Ingress
*out = make([]NetworkPolicyIngressRule, len(*in)) *out = make([]NetworkPolicyIngressRule, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_networking_NetworkPolicyIngressRule(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
}
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new NetworkPolicySpec.
func (x *NetworkPolicySpec) DeepCopy() *NetworkPolicySpec {
if x == nil {
return nil return nil
} }
out := new(NetworkPolicySpec)
x.DeepCopyInto(out)
return out
} }

View File

@ -78,6 +78,7 @@ type PodDisruptionBudgetStatus struct {
} }
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods // PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods
type PodDisruptionBudget struct { type PodDisruptionBudget struct {
@ -93,6 +94,8 @@ type PodDisruptionBudget struct {
Status PodDisruptionBudgetStatus Status PodDisruptionBudgetStatus
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// PodDisruptionBudgetList is a collection of PodDisruptionBudgets. // PodDisruptionBudgetList is a collection of PodDisruptionBudgets.
type PodDisruptionBudgetList struct { type PodDisruptionBudgetList struct {
metav1.TypeMeta metav1.TypeMeta
@ -103,6 +106,7 @@ type PodDisruptionBudgetList struct {
// +genclient=true // +genclient=true
// +noMethods=true // +noMethods=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Eviction evicts a pod from its node subject to certain policies and safety constraints. // Eviction evicts a pod from its node subject to certain policies and safety constraints.
// This is a subresource of Pod. A request to cause such an eviction is // This is a subresource of Pod. A request to cause such an eviction is

View File

@ -13,11 +13,13 @@ go_library(
"doc.go", "doc.go",
"register.go", "register.go",
"types.go", "types.go",
"zz_generated.deepcopy.go",
"zz_generated.defaults.go", "zz_generated.defaults.go",
], ],
tags = ["automanaged"], tags = ["automanaged"],
deps = [ deps = [
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/util/intstr:go_default_library", "//vendor/k8s.io/apimachinery/pkg/util/intstr:go_default_library",

View File

@ -15,6 +15,7 @@ limitations under the License.
*/ */
// +k8s:defaulter-gen=TypeMeta // +k8s:defaulter-gen=TypeMeta
// +k8s:deepcopy-gen=package,register
// Package policy is for any kind of policy object. Suitable examples, even if // Package policy is for any kind of policy object. Suitable examples, even if
// they aren't all here, are PodDisruptionBudget, PodSecurityPolicy, // they aren't all here, are PodDisruptionBudget, PodSecurityPolicy,

View File

@ -53,6 +53,7 @@ type PodDisruptionBudgetStatus struct {
} }
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods // PodDisruptionBudget is an object to define the max disruption that can be caused to a collection of pods
type PodDisruptionBudget struct { type PodDisruptionBudget struct {
@ -68,6 +69,8 @@ type PodDisruptionBudget struct {
Status PodDisruptionBudgetStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"` Status PodDisruptionBudgetStatus `json:"status,omitempty" protobuf:"bytes,3,opt,name=status"`
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// PodDisruptionBudgetList is a collection of PodDisruptionBudgets. // PodDisruptionBudgetList is a collection of PodDisruptionBudgets.
type PodDisruptionBudgetList struct { type PodDisruptionBudgetList struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
@ -76,6 +79,8 @@ type PodDisruptionBudgetList struct {
Items []PodDisruptionBudget `json:"items" protobuf:"bytes,2,rep,name=items"` Items []PodDisruptionBudget `json:"items" protobuf:"bytes,2,rep,name=items"`
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Eviction evicts a pod from its node subject to certain policies and safety constraints. // Eviction evicts a pod from its node subject to certain policies and safety constraints.
// This is a subresource of Pod. A request to cause such an eviction is // This is a subresource of Pod. A request to cause such an eviction is
// created by POSTing to .../pods/<pod name>/eviction. // created by POSTing to .../pods/<pod name>/eviction.

View File

@ -0,0 +1,201 @@
// +build !ignore_autogenerated
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
package v1alpha1
import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect"
)
// Deprecated: register deep-copy functions.
func init() {
SchemeBuilder.Register(RegisterDeepCopies)
}
// Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Eviction).DeepCopyInto(out.(*Eviction))
return nil
}, InType: reflect.TypeOf(&Eviction{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PodDisruptionBudget).DeepCopyInto(out.(*PodDisruptionBudget))
return nil
}, InType: reflect.TypeOf(&PodDisruptionBudget{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PodDisruptionBudgetList).DeepCopyInto(out.(*PodDisruptionBudgetList))
return nil
}, InType: reflect.TypeOf(&PodDisruptionBudgetList{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PodDisruptionBudgetSpec).DeepCopyInto(out.(*PodDisruptionBudgetSpec))
return nil
}, InType: reflect.TypeOf(&PodDisruptionBudgetSpec{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PodDisruptionBudgetStatus).DeepCopyInto(out.(*PodDisruptionBudgetStatus))
return nil
}, InType: reflect.TypeOf(&PodDisruptionBudgetStatus{})},
)
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Eviction) DeepCopyInto(out *Eviction) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
if in.DeleteOptions != nil {
in, out := &in.DeleteOptions, &out.DeleteOptions
if *in == nil {
*out = nil
} else {
*out = new(v1.DeleteOptions)
(*in).DeepCopyInto(*out)
}
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Eviction.
func (x *Eviction) DeepCopy() *Eviction {
if x == nil {
return nil
}
out := new(Eviction)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Eviction) DeepCopyObject() runtime.Object {
if c := x.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 *PodDisruptionBudget) DeepCopyInto(out *PodDisruptionBudget) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
out.Status = in.Status
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudget.
func (x *PodDisruptionBudget) DeepCopy() *PodDisruptionBudget {
if x == nil {
return nil
}
out := new(PodDisruptionBudget)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *PodDisruptionBudget) DeepCopyObject() runtime.Object {
if c := x.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 *PodDisruptionBudgetList) DeepCopyInto(out *PodDisruptionBudgetList) {
*out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]PodDisruptionBudget, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetList.
func (x *PodDisruptionBudgetList) DeepCopy() *PodDisruptionBudgetList {
if x == nil {
return nil
}
out := new(PodDisruptionBudgetList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *PodDisruptionBudgetList) DeepCopyObject() runtime.Object {
if c := x.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 *PodDisruptionBudgetSpec) DeepCopyInto(out *PodDisruptionBudgetSpec) {
*out = *in
out.MinAvailable = in.MinAvailable
if in.Selector != nil {
in, out := &in.Selector, &out.Selector
if *in == nil {
*out = nil
} else {
*out = new(v1.LabelSelector)
(*in).DeepCopyInto(*out)
}
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetSpec.
func (x *PodDisruptionBudgetSpec) DeepCopy() *PodDisruptionBudgetSpec {
if x == nil {
return nil
}
out := new(PodDisruptionBudgetSpec)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *PodDisruptionBudgetStatus) DeepCopyInto(out *PodDisruptionBudgetStatus) {
*out = *in
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetStatus.
func (x *PodDisruptionBudgetStatus) DeepCopy() *PodDisruptionBudgetStatus {
if x == nil {
return nil
}
out := new(PodDisruptionBudgetStatus)
x.DeepCopyInto(out)
return out
}

View File

@ -28,126 +28,199 @@ import (
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_policy_Eviction, InType: reflect.TypeOf(&Eviction{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_policy_PodDisruptionBudget, InType: reflect.TypeOf(&PodDisruptionBudget{})}, in.(*Eviction).DeepCopyInto(out.(*Eviction))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_policy_PodDisruptionBudgetList, InType: reflect.TypeOf(&PodDisruptionBudgetList{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_policy_PodDisruptionBudgetSpec, InType: reflect.TypeOf(&PodDisruptionBudgetSpec{})}, }, InType: reflect.TypeOf(&Eviction{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_policy_PodDisruptionBudgetStatus, InType: reflect.TypeOf(&PodDisruptionBudgetStatus{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PodDisruptionBudget).DeepCopyInto(out.(*PodDisruptionBudget))
return nil
}, InType: reflect.TypeOf(&PodDisruptionBudget{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PodDisruptionBudgetList).DeepCopyInto(out.(*PodDisruptionBudgetList))
return nil
}, InType: reflect.TypeOf(&PodDisruptionBudgetList{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PodDisruptionBudgetSpec).DeepCopyInto(out.(*PodDisruptionBudgetSpec))
return nil
}, InType: reflect.TypeOf(&PodDisruptionBudgetSpec{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PodDisruptionBudgetStatus).DeepCopyInto(out.(*PodDisruptionBudgetStatus))
return nil
}, InType: reflect.TypeOf(&PodDisruptionBudgetStatus{})},
) )
} }
// DeepCopy_policy_Eviction is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_policy_Eviction(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *Eviction) DeepCopyInto(out *Eviction) {
{
in := in.(*Eviction)
out := out.(*Eviction)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
if in.DeleteOptions != nil { if in.DeleteOptions != nil {
in, out := &in.DeleteOptions, &out.DeleteOptions in, out := &in.DeleteOptions, &out.DeleteOptions
if newVal, err := c.DeepCopy(*in); err != nil { if *in == nil {
return err *out = nil
} else { } else {
*out = newVal.(*v1.DeleteOptions) *out = new(v1.DeleteOptions)
(*in).DeepCopyInto(*out)
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Eviction.
func (x *Eviction) DeepCopy() *Eviction {
if x == nil {
return nil
}
out := new(Eviction)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Eviction) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_policy_PodDisruptionBudget is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_policy_PodDisruptionBudget(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *PodDisruptionBudget) DeepCopyInto(out *PodDisruptionBudget) {
{
in := in.(*PodDisruptionBudget)
out := out.(*PodDisruptionBudget)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
in.Status.DeepCopyInto(&out.Status)
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudget.
func (x *PodDisruptionBudget) DeepCopy() *PodDisruptionBudget {
if x == nil {
return nil
}
out := new(PodDisruptionBudget)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *PodDisruptionBudget) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
if err := DeepCopy_policy_PodDisruptionBudgetSpec(&in.Spec, &out.Spec, c); err != nil {
return err
}
if err := DeepCopy_policy_PodDisruptionBudgetStatus(&in.Status, &out.Status, c); err != nil {
return err
}
return nil return nil
} }
} }
// DeepCopy_policy_PodDisruptionBudgetList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_policy_PodDisruptionBudgetList(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *PodDisruptionBudgetList) DeepCopyInto(out *PodDisruptionBudgetList) {
{
in := in.(*PodDisruptionBudgetList)
out := out.(*PodDisruptionBudgetList)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]PodDisruptionBudget, len(*in)) *out = make([]PodDisruptionBudget, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_policy_PodDisruptionBudget(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetList.
func (x *PodDisruptionBudgetList) DeepCopy() *PodDisruptionBudgetList {
if x == nil {
return nil
} }
out := new(PodDisruptionBudgetList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *PodDisruptionBudgetList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_policy_PodDisruptionBudgetSpec is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_policy_PodDisruptionBudgetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *PodDisruptionBudgetSpec) DeepCopyInto(out *PodDisruptionBudgetSpec) {
{
in := in.(*PodDisruptionBudgetSpec)
out := out.(*PodDisruptionBudgetSpec)
*out = *in *out = *in
if in.MinAvailable != nil { if in.MinAvailable != nil {
in, out := &in.MinAvailable, &out.MinAvailable in, out := &in.MinAvailable, &out.MinAvailable
if *in == nil {
*out = nil
} else {
*out = new(intstr.IntOrString) *out = new(intstr.IntOrString)
**out = **in **out = **in
} }
}
if in.Selector != nil { if in.Selector != nil {
in, out := &in.Selector, &out.Selector in, out := &in.Selector, &out.Selector
if newVal, err := c.DeepCopy(*in); err != nil { if *in == nil {
return err *out = nil
} else { } else {
*out = newVal.(*v1.LabelSelector) *out = new(v1.LabelSelector)
(*in).DeepCopyInto(*out)
} }
} }
if in.MaxUnavailable != nil { if in.MaxUnavailable != nil {
in, out := &in.MaxUnavailable, &out.MaxUnavailable in, out := &in.MaxUnavailable, &out.MaxUnavailable
if *in == nil {
*out = nil
} else {
*out = new(intstr.IntOrString) *out = new(intstr.IntOrString)
**out = **in **out = **in
} }
return nil
} }
return
} }
// DeepCopy_policy_PodDisruptionBudgetStatus is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetSpec.
func DeepCopy_policy_PodDisruptionBudgetStatus(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *PodDisruptionBudgetSpec) DeepCopy() *PodDisruptionBudgetSpec {
{ if x == nil {
in := in.(*PodDisruptionBudgetStatus) return nil
out := out.(*PodDisruptionBudgetStatus) }
out := new(PodDisruptionBudgetSpec)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *PodDisruptionBudgetStatus) DeepCopyInto(out *PodDisruptionBudgetStatus) {
*out = *in *out = *in
if in.DisruptedPods != nil { if in.DisruptedPods != nil {
in, out := &in.DisruptedPods, &out.DisruptedPods in, out := &in.DisruptedPods, &out.DisruptedPods
*out = make(map[string]v1.Time) *out = make(map[string]v1.Time, len(*in))
for key, val := range *in { for key, val := range *in {
(*out)[key] = val.DeepCopy() (*out)[key] = *val.DeepCopy()
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodDisruptionBudgetStatus.
func (x *PodDisruptionBudgetStatus) DeepCopy() *PodDisruptionBudgetStatus {
if x == nil {
return nil return nil
} }
out := new(PodDisruptionBudgetStatus)
x.DeepCopyInto(out)
return out
} }

View File

@ -88,6 +88,7 @@ type RoleRef struct {
} }
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding. // Role is a namespaced, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding.
type Role struct { type Role struct {
@ -100,6 +101,7 @@ type Role struct {
} }
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace. // RoleBinding references a role, but does not contain it. It can reference a Role in the same namespace or a ClusterRole in the global namespace.
// It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given // It adds who information via Subjects and namespace information by which namespace it exists in. RoleBindings in a given
@ -116,6 +118,8 @@ type RoleBinding struct {
RoleRef RoleRef RoleRef RoleRef
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// RoleBindingList is a collection of RoleBindings // RoleBindingList is a collection of RoleBindings
type RoleBindingList struct { type RoleBindingList struct {
metav1.TypeMeta metav1.TypeMeta
@ -126,6 +130,8 @@ type RoleBindingList struct {
Items []RoleBinding Items []RoleBinding
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// RoleList is a collection of Roles // RoleList is a collection of Roles
type RoleList struct { type RoleList struct {
metav1.TypeMeta metav1.TypeMeta
@ -138,6 +144,7 @@ type RoleList struct {
// +genclient=true // +genclient=true
// +nonNamespaced=true // +nonNamespaced=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding. // ClusterRole is a cluster level, logical grouping of PolicyRules that can be referenced as a unit by a RoleBinding or ClusterRoleBinding.
type ClusterRole struct { type ClusterRole struct {
@ -151,6 +158,7 @@ type ClusterRole struct {
// +genclient=true // +genclient=true
// +nonNamespaced=true // +nonNamespaced=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace, // ClusterRoleBinding references a ClusterRole, but not contain it. It can reference a ClusterRole in the global namespace,
// and adds who information via Subject. // and adds who information via Subject.
@ -167,6 +175,8 @@ type ClusterRoleBinding struct {
RoleRef RoleRef RoleRef RoleRef
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ClusterRoleBindingList is a collection of ClusterRoleBindings // ClusterRoleBindingList is a collection of ClusterRoleBindings
type ClusterRoleBindingList struct { type ClusterRoleBindingList struct {
metav1.TypeMeta metav1.TypeMeta
@ -177,6 +187,8 @@ type ClusterRoleBindingList struct {
Items []ClusterRoleBinding Items []ClusterRoleBinding
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// ClusterRoleList is a collection of ClusterRoles // ClusterRoleList is a collection of ClusterRoles
type ClusterRoleList struct { type ClusterRoleList struct {
metav1.TypeMeta metav1.TypeMeta

View File

@ -21,121 +21,204 @@ limitations under the License.
package rbac package rbac
import ( import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_ClusterRole, InType: reflect.TypeOf(&ClusterRole{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_ClusterRoleBinding, InType: reflect.TypeOf(&ClusterRoleBinding{})}, in.(*ClusterRole).DeepCopyInto(out.(*ClusterRole))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_ClusterRoleBindingList, InType: reflect.TypeOf(&ClusterRoleBindingList{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_ClusterRoleList, InType: reflect.TypeOf(&ClusterRoleList{})}, }, InType: reflect.TypeOf(&ClusterRole{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_PolicyRule, InType: reflect.TypeOf(&PolicyRule{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_Role, InType: reflect.TypeOf(&Role{})}, in.(*ClusterRoleBinding).DeepCopyInto(out.(*ClusterRoleBinding))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_RoleBinding, InType: reflect.TypeOf(&RoleBinding{})}, return nil
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_RoleBindingList, InType: reflect.TypeOf(&RoleBindingList{})}, }, InType: reflect.TypeOf(&ClusterRoleBinding{})},
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_RoleList, InType: reflect.TypeOf(&RoleList{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_RoleRef, InType: reflect.TypeOf(&RoleRef{})}, in.(*ClusterRoleBindingList).DeepCopyInto(out.(*ClusterRoleBindingList))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_rbac_Subject, InType: reflect.TypeOf(&Subject{})}, return nil
}, InType: reflect.TypeOf(&ClusterRoleBindingList{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ClusterRoleList).DeepCopyInto(out.(*ClusterRoleList))
return nil
}, InType: reflect.TypeOf(&ClusterRoleList{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PolicyRule).DeepCopyInto(out.(*PolicyRule))
return nil
}, InType: reflect.TypeOf(&PolicyRule{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Role).DeepCopyInto(out.(*Role))
return nil
}, InType: reflect.TypeOf(&Role{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*RoleBinding).DeepCopyInto(out.(*RoleBinding))
return nil
}, InType: reflect.TypeOf(&RoleBinding{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*RoleBindingList).DeepCopyInto(out.(*RoleBindingList))
return nil
}, InType: reflect.TypeOf(&RoleBindingList{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*RoleList).DeepCopyInto(out.(*RoleList))
return nil
}, InType: reflect.TypeOf(&RoleList{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*RoleRef).DeepCopyInto(out.(*RoleRef))
return nil
}, InType: reflect.TypeOf(&RoleRef{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Subject).DeepCopyInto(out.(*Subject))
return nil
}, InType: reflect.TypeOf(&Subject{})},
) )
} }
// DeepCopy_rbac_ClusterRole is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_rbac_ClusterRole(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *ClusterRole) DeepCopyInto(out *ClusterRole) {
{
in := in.(*ClusterRole)
out := out.(*ClusterRole)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
if in.Rules != nil { if in.Rules != nil {
in, out := &in.Rules, &out.Rules in, out := &in.Rules, &out.Rules
*out = make([]PolicyRule, len(*in)) *out = make([]PolicyRule, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_rbac_PolicyRule(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRole.
func (x *ClusterRole) DeepCopy() *ClusterRole {
if x == nil {
return nil
} }
out := new(ClusterRole)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *ClusterRole) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_rbac_ClusterRoleBinding is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_rbac_ClusterRoleBinding(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *ClusterRoleBinding) DeepCopyInto(out *ClusterRoleBinding) {
{
in := in.(*ClusterRoleBinding)
out := out.(*ClusterRoleBinding)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
if in.Subjects != nil { if in.Subjects != nil {
in, out := &in.Subjects, &out.Subjects in, out := &in.Subjects, &out.Subjects
*out = make([]Subject, len(*in)) *out = make([]Subject, len(*in))
copy(*out, *in) copy(*out, *in)
} }
out.RoleRef = in.RoleRef
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleBinding.
func (x *ClusterRoleBinding) DeepCopy() *ClusterRoleBinding {
if x == nil {
return nil
}
out := new(ClusterRoleBinding)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *ClusterRoleBinding) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_rbac_ClusterRoleBindingList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_rbac_ClusterRoleBindingList(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *ClusterRoleBindingList) DeepCopyInto(out *ClusterRoleBindingList) {
{
in := in.(*ClusterRoleBindingList)
out := out.(*ClusterRoleBindingList)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]ClusterRoleBinding, len(*in)) *out = make([]ClusterRoleBinding, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_rbac_ClusterRoleBinding(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleBindingList.
func (x *ClusterRoleBindingList) DeepCopy() *ClusterRoleBindingList {
if x == nil {
return nil
} }
out := new(ClusterRoleBindingList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *ClusterRoleBindingList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_rbac_ClusterRoleList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_rbac_ClusterRoleList(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *ClusterRoleList) DeepCopyInto(out *ClusterRoleList) {
{
in := in.(*ClusterRoleList)
out := out.(*ClusterRoleList)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]ClusterRole, len(*in)) *out = make([]ClusterRole, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_rbac_ClusterRole(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ClusterRoleList.
func (x *ClusterRoleList) DeepCopy() *ClusterRoleList {
if x == nil {
return nil
} }
out := new(ClusterRoleList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *ClusterRoleList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_rbac_PolicyRule is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_rbac_PolicyRule(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *PolicyRule) DeepCopyInto(out *PolicyRule) {
{
in := in.(*PolicyRule)
out := out.(*PolicyRule)
*out = *in *out = *in
if in.Verbs != nil { if in.Verbs != nil {
in, out := &in.Verbs, &out.Verbs in, out := &in.Verbs, &out.Verbs
@ -162,108 +245,182 @@ func DeepCopy_rbac_PolicyRule(in interface{}, out interface{}, c *conversion.Clo
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} }
return nil return
}
} }
// DeepCopy_rbac_Role is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PolicyRule.
func DeepCopy_rbac_Role(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *PolicyRule) DeepCopy() *PolicyRule {
{ if x == nil {
in := in.(*Role) return nil
out := out.(*Role)
*out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil {
return err
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
} }
out := new(PolicyRule)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Role) DeepCopyInto(out *Role) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
if in.Rules != nil { if in.Rules != nil {
in, out := &in.Rules, &out.Rules in, out := &in.Rules, &out.Rules
*out = make([]PolicyRule, len(*in)) *out = make([]PolicyRule, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_rbac_PolicyRule(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Role.
func (x *Role) DeepCopy() *Role {
if x == nil {
return nil
} }
out := new(Role)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Role) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_rbac_RoleBinding is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_rbac_RoleBinding(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *RoleBinding) DeepCopyInto(out *RoleBinding) {
{
in := in.(*RoleBinding)
out := out.(*RoleBinding)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
if in.Subjects != nil { if in.Subjects != nil {
in, out := &in.Subjects, &out.Subjects in, out := &in.Subjects, &out.Subjects
*out = make([]Subject, len(*in)) *out = make([]Subject, len(*in))
copy(*out, *in) copy(*out, *in)
} }
out.RoleRef = in.RoleRef
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new RoleBinding.
func (x *RoleBinding) DeepCopy() *RoleBinding {
if x == nil {
return nil
}
out := new(RoleBinding)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *RoleBinding) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_rbac_RoleBindingList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_rbac_RoleBindingList(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *RoleBindingList) DeepCopyInto(out *RoleBindingList) {
{
in := in.(*RoleBindingList)
out := out.(*RoleBindingList)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]RoleBinding, len(*in)) *out = make([]RoleBinding, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_rbac_RoleBinding(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new RoleBindingList.
func (x *RoleBindingList) DeepCopy() *RoleBindingList {
if x == nil {
return nil
} }
out := new(RoleBindingList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *RoleBindingList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_rbac_RoleList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_rbac_RoleList(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *RoleList) DeepCopyInto(out *RoleList) {
{
in := in.(*RoleList)
out := out.(*RoleList)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]Role, len(*in)) *out = make([]Role, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_rbac_Role(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new RoleList.
func (x *RoleList) DeepCopy() *RoleList {
if x == nil {
return nil
} }
out := new(RoleList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *RoleList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_rbac_RoleRef is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_rbac_RoleRef(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *RoleRef) DeepCopyInto(out *RoleRef) {
{
in := in.(*RoleRef)
out := out.(*RoleRef)
*out = *in *out = *in
return nil return
}
} }
// DeepCopy_rbac_Subject is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new RoleRef.
func DeepCopy_rbac_Subject(in interface{}, out interface{}, c *conversion.Cloner) error { func (x *RoleRef) DeepCopy() *RoleRef {
{ if x == nil {
in := in.(*Subject)
out := out.(*Subject)
*out = *in
return nil return nil
} }
out := new(RoleRef)
x.DeepCopyInto(out)
return out
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *Subject) DeepCopyInto(out *Subject) {
*out = *in
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Subject.
func (x *Subject) DeepCopy() *Subject {
if x == nil {
return nil
}
out := new(Subject)
x.DeepCopyInto(out)
return out
} }

View File

@ -22,6 +22,7 @@ import (
) )
// +genclient=true // +genclient=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// PodPreset is a policy resource that defines additional runtime // PodPreset is a policy resource that defines additional runtime
// requirements for a Pod. // requirements for a Pod.
@ -53,6 +54,8 @@ type PodPresetSpec struct {
VolumeMounts []api.VolumeMount VolumeMounts []api.VolumeMount
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// PodPresetList is a list of PodPreset objects. // PodPresetList is a list of PodPreset objects.
type PodPresetList struct { type PodPresetList struct {
metav1.TypeMeta metav1.TypeMeta

View File

@ -21,100 +21,121 @@ limitations under the License.
package settings package settings
import ( import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
api "k8s.io/kubernetes/pkg/api" api "k8s.io/kubernetes/pkg/api"
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_settings_PodPreset, InType: reflect.TypeOf(&PodPreset{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_settings_PodPresetList, InType: reflect.TypeOf(&PodPresetList{})}, in.(*PodPreset).DeepCopyInto(out.(*PodPreset))
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_settings_PodPresetSpec, InType: reflect.TypeOf(&PodPresetSpec{})}, return nil
}, InType: reflect.TypeOf(&PodPreset{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PodPresetList).DeepCopyInto(out.(*PodPresetList))
return nil
}, InType: reflect.TypeOf(&PodPresetList{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*PodPresetSpec).DeepCopyInto(out.(*PodPresetSpec))
return nil
}, InType: reflect.TypeOf(&PodPresetSpec{})},
) )
} }
// DeepCopy_settings_PodPreset is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_settings_PodPreset(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *PodPreset) DeepCopyInto(out *PodPreset) {
{
in := in.(*PodPreset)
out := out.(*PodPreset)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
in.Spec.DeepCopyInto(&out.Spec)
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodPreset.
func (x *PodPreset) DeepCopy() *PodPreset {
if x == nil {
return nil
}
out := new(PodPreset)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *PodPreset) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else { } else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
if err := DeepCopy_settings_PodPresetSpec(&in.Spec, &out.Spec, c); err != nil {
return err
}
return nil return nil
} }
} }
// DeepCopy_settings_PodPresetList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_settings_PodPresetList(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *PodPresetList) DeepCopyInto(out *PodPresetList) {
{
in := in.(*PodPresetList)
out := out.(*PodPresetList)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]PodPreset, len(*in)) *out = make([]PodPreset, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_settings_PodPreset(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodPresetList.
func (x *PodPresetList) DeepCopy() *PodPresetList {
if x == nil {
return nil
} }
out := new(PodPresetList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *PodPresetList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_settings_PodPresetSpec is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_settings_PodPresetSpec(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *PodPresetSpec) DeepCopyInto(out *PodPresetSpec) {
{
in := in.(*PodPresetSpec)
out := out.(*PodPresetSpec)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.Selector); err != nil { in.Selector.DeepCopyInto(&out.Selector)
return err
} else {
out.Selector = *newVal.(*v1.LabelSelector)
}
if in.Env != nil { if in.Env != nil {
in, out := &in.Env, &out.Env in, out := &in.Env, &out.Env
*out = make([]api.EnvVar, len(*in)) *out = make([]api.EnvVar, len(*in))
for i := range *in { for i := range *in {
if err := api.DeepCopy_api_EnvVar(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
}
} }
} }
if in.EnvFrom != nil { if in.EnvFrom != nil {
in, out := &in.EnvFrom, &out.EnvFrom in, out := &in.EnvFrom, &out.EnvFrom
*out = make([]api.EnvFromSource, len(*in)) *out = make([]api.EnvFromSource, len(*in))
for i := range *in { for i := range *in {
if err := api.DeepCopy_api_EnvFromSource(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
}
} }
} }
if in.Volumes != nil { if in.Volumes != nil {
in, out := &in.Volumes, &out.Volumes in, out := &in.Volumes, &out.Volumes
*out = make([]api.Volume, len(*in)) *out = make([]api.Volume, len(*in))
for i := range *in { for i := range *in {
if err := api.DeepCopy_api_Volume(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
}
} }
} }
if in.VolumeMounts != nil { if in.VolumeMounts != nil {
@ -122,6 +143,15 @@ func DeepCopy_settings_PodPresetSpec(in interface{}, out interface{}, c *convers
*out = make([]api.VolumeMount, len(*in)) *out = make([]api.VolumeMount, len(*in))
copy(*out, *in) copy(*out, *in)
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new PodPresetSpec.
func (x *PodPresetSpec) DeepCopy() *PodPresetSpec {
if x == nil {
return nil return nil
} }
out := new(PodPresetSpec)
x.DeepCopyInto(out)
return out
} }

View File

@ -20,6 +20,7 @@ import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
// +genclient=true // +genclient=true
// +nonNamespaced=true // +nonNamespaced=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// StorageClass describes a named "class" of storage offered in a cluster. // StorageClass describes a named "class" of storage offered in a cluster.
// Different classes might map to quality-of-service levels, or to backup policies, // Different classes might map to quality-of-service levels, or to backup policies,
@ -47,6 +48,8 @@ type StorageClass struct {
Parameters map[string]string Parameters map[string]string
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// StorageClassList is a collection of storage classes. // StorageClassList is a collection of storage classes.
type StorageClassList struct { type StorageClassList struct {
metav1.TypeMeta metav1.TypeMeta

View File

@ -21,62 +21,95 @@ limitations under the License.
package storage package storage
import ( import (
v1 "k8s.io/apimachinery/pkg/apis/meta/v1"
conversion "k8s.io/apimachinery/pkg/conversion" conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime" runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_storage_StorageClass, InType: reflect.TypeOf(&StorageClass{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_storage_StorageClassList, InType: reflect.TypeOf(&StorageClassList{})}, in.(*StorageClass).DeepCopyInto(out.(*StorageClass))
return nil
}, InType: reflect.TypeOf(&StorageClass{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*StorageClassList).DeepCopyInto(out.(*StorageClassList))
return nil
}, InType: reflect.TypeOf(&StorageClassList{})},
) )
} }
// DeepCopy_storage_StorageClass is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_storage_StorageClass(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *StorageClass) DeepCopyInto(out *StorageClass) {
{
in := in.(*StorageClass)
out := out.(*StorageClass)
*out = *in *out = *in
if newVal, err := c.DeepCopy(&in.ObjectMeta); err != nil { out.TypeMeta = in.TypeMeta
return err in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
} else {
out.ObjectMeta = *newVal.(*v1.ObjectMeta)
}
if in.Parameters != nil { if in.Parameters != nil {
in, out := &in.Parameters, &out.Parameters in, out := &in.Parameters, &out.Parameters
*out = make(map[string]string) *out = make(map[string]string, len(*in))
for key, val := range *in { for key, val := range *in {
(*out)[key] = val (*out)[key] = val
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new StorageClass.
func (x *StorageClass) DeepCopy() *StorageClass {
if x == nil {
return nil
}
out := new(StorageClass)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *StorageClass) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_storage_StorageClassList is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_storage_StorageClassList(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *StorageClassList) DeepCopyInto(out *StorageClassList) {
{
in := in.(*StorageClassList)
out := out.(*StorageClassList)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil { if in.Items != nil {
in, out := &in.Items, &out.Items in, out := &in.Items, &out.Items
*out = make([]StorageClass, len(*in)) *out = make([]StorageClass, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_storage_StorageClass(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new StorageClassList.
func (x *StorageClassList) DeepCopy() *StorageClassList {
if x == nil {
return nil
} }
out := new(StorageClassList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *StorageClassList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }

View File

@ -14,12 +14,14 @@ go_library(
"metaonly.go", "metaonly.go",
"types.generated.go", "types.generated.go",
"types.go", "types.go",
"zz_generated.deepcopy.go",
], ],
tags = ["automanaged"], tags = ["automanaged"],
deps = [ deps = [
"//pkg/api:go_default_library", "//pkg/api:go_default_library",
"//vendor/github.com/ugorji/go/codec:go_default_library", "//vendor/github.com/ugorji/go/codec:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library",

View File

@ -23,6 +23,9 @@ import (
// MetadataOnlyObject allows decoding only the apiVersion, kind, and metadata fields of // MetadataOnlyObject allows decoding only the apiVersion, kind, and metadata fields of
// JSON data. // JSON data.
// TODO: enable meta-only decoding for protobuf. // TODO: enable meta-only decoding for protobuf.
//
// +k8s:deepcopy-gen=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type MetadataOnlyObject struct { type MetadataOnlyObject struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
// +optional // +optional
@ -32,6 +35,9 @@ type MetadataOnlyObject struct {
// MetadataOnlyObjectList allows decoding from JSON data only the typemeta and metadata of // MetadataOnlyObjectList allows decoding from JSON data only the typemeta and metadata of
// a list, and those of the enclosing objects. // a list, and those of the enclosing objects.
// TODO: enable meta-only decoding for protobuf. // TODO: enable meta-only decoding for protobuf.
//
// +k8s:deepcopy-gen=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type MetadataOnlyObjectList struct { type MetadataOnlyObjectList struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
// +optional // +optional

View File

@ -0,0 +1,102 @@
// +build !ignore_autogenerated
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
package metaonly
import (
conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect"
)
// Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc {
return []conversion.GeneratedDeepCopyFunc{
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*MetadataOnlyObject).DeepCopyInto(out.(*MetadataOnlyObject))
return nil
}, InType: reflect.TypeOf(&MetadataOnlyObject{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*MetadataOnlyObjectList).DeepCopyInto(out.(*MetadataOnlyObjectList))
return nil
}, InType: reflect.TypeOf(&MetadataOnlyObjectList{})},
}
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *MetadataOnlyObject) DeepCopyInto(out *MetadataOnlyObject) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new MetadataOnlyObject.
func (x *MetadataOnlyObject) DeepCopy() *MetadataOnlyObject {
if x == nil {
return nil
}
out := new(MetadataOnlyObject)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *MetadataOnlyObject) DeepCopyObject() runtime.Object {
if c := x.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 *MetadataOnlyObjectList) DeepCopyInto(out *MetadataOnlyObjectList) {
*out = *in
out.TypeMeta = in.TypeMeta
out.ListMeta = in.ListMeta
if in.Items != nil {
in, out := &in.Items, &out.Items
*out = make([]MetadataOnlyObject, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new MetadataOnlyObjectList.
func (x *MetadataOnlyObjectList) DeepCopy() *MetadataOnlyObjectList {
if x == nil {
return nil
}
out := new(MetadataOnlyObjectList)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *MetadataOnlyObjectList) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil
}
}

View File

@ -48,6 +48,7 @@ openapi_library(
"k8s.io/apimachinery/pkg/version", "k8s.io/apimachinery/pkg/version",
"k8s.io/apiserver/pkg/apis/audit/v1alpha1", "k8s.io/apiserver/pkg/apis/audit/v1alpha1",
"k8s.io/apiserver/pkg/apis/example/v1", "k8s.io/apiserver/pkg/apis/example/v1",
"k8s.io/client-go/pkg/version",
"k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1", "k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1",
"k8s.io/metrics/pkg/apis/custom_metrics/v1alpha1", "k8s.io/metrics/pkg/apis/custom_metrics/v1alpha1",
"k8s.io/metrics/pkg/apis/metrics/v1alpha1", "k8s.io/metrics/pkg/apis/metrics/v1alpha1",

View File

@ -7,7 +7,10 @@ load(
go_library( go_library(
name = "go_default_library", name = "go_default_library",
srcs = ["fake.go"], srcs = [
"fake.go",
"zz_generated.deepcopy.go",
],
tags = ["automanaged"], tags = ["automanaged"],
visibility = [ visibility = [
"//build/visible_to:pkg_kubectl_cmd_testing_CONSUMERS", "//build/visible_to:pkg_kubectl_cmd_testing_CONSUMERS",
@ -30,6 +33,7 @@ go_library(
"//vendor/k8s.io/apimachinery/pkg/api/meta:go_default_library", "//vendor/k8s.io/apimachinery/pkg/api/meta:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1/unstructured:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime/schema:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library", "//vendor/k8s.io/apimachinery/pkg/runtime/serializer:go_default_library",

View File

@ -49,6 +49,8 @@ import (
"k8s.io/kubernetes/pkg/printers" "k8s.io/kubernetes/pkg/printers"
) )
// +k8s:deepcopy-gen=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type InternalType struct { type InternalType struct {
Kind string Kind string
APIVersion string APIVersion string
@ -56,6 +58,8 @@ type InternalType struct {
Name string Name string
} }
// +k8s:deepcopy-gen=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type ExternalType struct { type ExternalType struct {
Kind string `json:"kind"` Kind string `json:"kind"`
APIVersion string `json:"apiVersion"` APIVersion string `json:"apiVersion"`
@ -63,6 +67,8 @@ type ExternalType struct {
Name string `json:"name"` Name string `json:"name"`
} }
// +k8s:deepcopy-gen=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type ExternalType2 struct { type ExternalType2 struct {
Kind string `json:"kind"` Kind string `json:"kind"`
APIVersion string `json:"apiVersion"` APIVersion string `json:"apiVersion"`
@ -99,6 +105,8 @@ func NewInternalType(kind, apiversion, name string) *InternalType {
return &item return &item
} }
// +k8s:deepcopy-gen=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type InternalNamespacedType struct { type InternalNamespacedType struct {
Kind string Kind string
APIVersion string APIVersion string
@ -107,6 +115,8 @@ type InternalNamespacedType struct {
Namespace string Namespace string
} }
// +k8s:deepcopy-gen=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type ExternalNamespacedType struct { type ExternalNamespacedType struct {
Kind string `json:"kind"` Kind string `json:"kind"`
APIVersion string `json:"apiVersion"` APIVersion string `json:"apiVersion"`
@ -115,6 +125,8 @@ type ExternalNamespacedType struct {
Namespace string `json:"namespace"` Namespace string `json:"namespace"`
} }
// +k8s:deepcopy-gen=true
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type ExternalNamespacedType2 struct { type ExternalNamespacedType2 struct {
Kind string `json:"kind"` Kind string `json:"kind"`
APIVersion string `json:"apiVersion"` APIVersion string `json:"apiVersion"`

View File

@ -0,0 +1,207 @@
// +build !ignore_autogenerated
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
package testing
import (
conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect"
)
// Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc {
return []conversion.GeneratedDeepCopyFunc{
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ExternalNamespacedType).DeepCopyInto(out.(*ExternalNamespacedType))
return nil
}, InType: reflect.TypeOf(&ExternalNamespacedType{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ExternalNamespacedType2).DeepCopyInto(out.(*ExternalNamespacedType2))
return nil
}, InType: reflect.TypeOf(&ExternalNamespacedType2{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ExternalType).DeepCopyInto(out.(*ExternalType))
return nil
}, InType: reflect.TypeOf(&ExternalType{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*ExternalType2).DeepCopyInto(out.(*ExternalType2))
return nil
}, InType: reflect.TypeOf(&ExternalType2{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*InternalNamespacedType).DeepCopyInto(out.(*InternalNamespacedType))
return nil
}, InType: reflect.TypeOf(&InternalNamespacedType{})},
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*InternalType).DeepCopyInto(out.(*InternalType))
return nil
}, InType: reflect.TypeOf(&InternalType{})},
}
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *ExternalNamespacedType) DeepCopyInto(out *ExternalNamespacedType) {
*out = *in
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ExternalNamespacedType.
func (x *ExternalNamespacedType) DeepCopy() *ExternalNamespacedType {
if x == nil {
return nil
}
out := new(ExternalNamespacedType)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *ExternalNamespacedType) DeepCopyObject() runtime.Object {
if c := x.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 *ExternalNamespacedType2) DeepCopyInto(out *ExternalNamespacedType2) {
*out = *in
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ExternalNamespacedType2.
func (x *ExternalNamespacedType2) DeepCopy() *ExternalNamespacedType2 {
if x == nil {
return nil
}
out := new(ExternalNamespacedType2)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *ExternalNamespacedType2) DeepCopyObject() runtime.Object {
if c := x.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 *ExternalType) DeepCopyInto(out *ExternalType) {
*out = *in
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ExternalType.
func (x *ExternalType) DeepCopy() *ExternalType {
if x == nil {
return nil
}
out := new(ExternalType)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *ExternalType) DeepCopyObject() runtime.Object {
if c := x.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 *ExternalType2) DeepCopyInto(out *ExternalType2) {
*out = *in
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new ExternalType2.
func (x *ExternalType2) DeepCopy() *ExternalType2 {
if x == nil {
return nil
}
out := new(ExternalType2)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *ExternalType2) DeepCopyObject() runtime.Object {
if c := x.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 *InternalNamespacedType) DeepCopyInto(out *InternalNamespacedType) {
*out = *in
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new InternalNamespacedType.
func (x *InternalNamespacedType) DeepCopy() *InternalNamespacedType {
if x == nil {
return nil
}
out := new(InternalNamespacedType)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *InternalNamespacedType) DeepCopyObject() runtime.Object {
if c := x.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 *InternalType) DeepCopyInto(out *InternalType) {
*out = *in
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new InternalType.
func (x *InternalType) DeepCopy() *InternalType {
if x == nil {
return nil
}
out := new(InternalType)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *InternalType) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil
}
}

View File

@ -10,6 +10,7 @@ go_library(
srcs = [ srcs = [
"types.generated.go", "types.generated.go",
"types.go", "types.go",
"zz_generated.deepcopy.go",
], ],
tags = ["automanaged"], tags = ["automanaged"],
visibility = [ visibility = [
@ -18,6 +19,8 @@ go_library(
deps = [ deps = [
"//vendor/github.com/ugorji/go/codec:go_default_library", "//vendor/github.com/ugorji/go/codec:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library", "//vendor/k8s.io/apimachinery/pkg/apis/meta/v1:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/conversion:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/runtime:go_default_library",
"//vendor/k8s.io/apimachinery/pkg/types:go_default_library", "//vendor/k8s.io/apimachinery/pkg/types:go_default_library",
], ],
) )

View File

@ -20,6 +20,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
) )
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
type TestStruct struct { type TestStruct struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`
// +optional // +optional

View File

@ -0,0 +1,81 @@
// +build !ignore_autogenerated
/*
Copyright 2017 The Kubernetes Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// This file was autogenerated by deepcopy-gen. Do not edit it manually!
package testing
import (
conversion "k8s.io/apimachinery/pkg/conversion"
runtime "k8s.io/apimachinery/pkg/runtime"
reflect "reflect"
)
// Deprecated: GetGeneratedDeepCopyFuncs returns the generated funcs, since we aren't registering them.
func GetGeneratedDeepCopyFuncs() []conversion.GeneratedDeepCopyFunc {
return []conversion.GeneratedDeepCopyFunc{
{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*TestStruct).DeepCopyInto(out.(*TestStruct))
return nil
}, InType: reflect.TypeOf(&TestStruct{})},
}
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (in *TestStruct) DeepCopyInto(out *TestStruct) {
*out = *in
out.TypeMeta = in.TypeMeta
in.ObjectMeta.DeepCopyInto(&out.ObjectMeta)
if in.Map != nil {
in, out := &in.Map, &out.Map
*out = make(map[string]int, len(*in))
for key, val := range *in {
(*out)[key] = val
}
}
if in.StringList != nil {
in, out := &in.StringList, &out.StringList
*out = make([]string, len(*in))
copy(*out, *in)
}
if in.IntList != nil {
in, out := &in.IntList, &out.IntList
*out = make([]int, len(*in))
copy(*out, *in)
}
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new TestStruct.
func (x *TestStruct) DeepCopy() *TestStruct {
if x == nil {
return nil
}
out := new(TestStruct)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *TestStruct) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil
}
}

View File

@ -78,6 +78,8 @@ type NetworkPlugin interface {
Status() error Status() error
} }
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// PodNetworkStatus stores the network status of a pod (currently just the primary IP address) // PodNetworkStatus stores the network status of a pod (currently just the primary IP address)
// This struct represents version "v1beta1" // This struct represents version "v1beta1"
type PodNetworkStatus struct { type PodNetworkStatus struct {

View File

@ -215,10 +215,24 @@ type TestPrintType struct {
} }
func (obj *TestPrintType) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } func (obj *TestPrintType) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind }
func (obj *TestPrintType) DeepCopyObject() runtime.Object {
if obj == nil {
return nil
}
clone := *obj
return &clone
}
type TestUnknownType struct{} type TestUnknownType struct{}
func (obj *TestUnknownType) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind } func (obj *TestUnknownType) GetObjectKind() schema.ObjectKind { return schema.EmptyObjectKind }
func (obj *TestUnknownType) DeepCopyObject() runtime.Object {
if obj == nil {
return nil
}
clone := *obj
return &clone
}
func TestPrinter(t *testing.T) { func TestPrinter(t *testing.T) {
//test inputs //test inputs

View File

@ -21,6 +21,8 @@ import (
"k8s.io/kubernetes/pkg/api" "k8s.io/kubernetes/pkg/api"
) )
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Configuration provides configuration for the PodTolerationRestriction admission controller. // Configuration provides configuration for the PodTolerationRestriction admission controller.
type Configuration struct { type Configuration struct {
metav1.TypeMeta metav1.TypeMeta

View File

@ -21,6 +21,8 @@ import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
) )
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Configuration provides configuration for the PodTolerationRestriction admission controller. // Configuration provides configuration for the PodTolerationRestriction admission controller.
type Configuration struct { type Configuration struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`

View File

@ -27,42 +27,58 @@ import (
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_Configuration, InType: reflect.TypeOf(&Configuration{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Configuration).DeepCopyInto(out.(*Configuration))
return nil
}, InType: reflect.TypeOf(&Configuration{})},
) )
} }
// DeepCopy_v1alpha1_Configuration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1alpha1_Configuration(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *Configuration) DeepCopyInto(out *Configuration) {
{
in := in.(*Configuration)
out := out.(*Configuration)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
if in.Default != nil { if in.Default != nil {
in, out := &in.Default, &out.Default in, out := &in.Default, &out.Default
*out = make([]v1.Toleration, len(*in)) *out = make([]v1.Toleration, len(*in))
for i := range *in { for i := range *in {
if err := v1.DeepCopy_v1_Toleration(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
}
} }
} }
if in.Whitelist != nil { if in.Whitelist != nil {
in, out := &in.Whitelist, &out.Whitelist in, out := &in.Whitelist, &out.Whitelist
*out = make([]v1.Toleration, len(*in)) *out = make([]v1.Toleration, len(*in))
for i := range *in { for i := range *in {
if err := v1.DeepCopy_v1_Toleration(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Configuration.
func (x *Configuration) DeepCopy() *Configuration {
if x == nil {
return nil
} }
out := new(Configuration)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Configuration) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }

View File

@ -27,42 +27,58 @@ import (
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_podtolerationrestriction_Configuration, InType: reflect.TypeOf(&Configuration{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*Configuration).DeepCopyInto(out.(*Configuration))
return nil
}, InType: reflect.TypeOf(&Configuration{})},
) )
} }
// DeepCopy_podtolerationrestriction_Configuration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_podtolerationrestriction_Configuration(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *Configuration) DeepCopyInto(out *Configuration) {
{
in := in.(*Configuration)
out := out.(*Configuration)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
if in.Default != nil { if in.Default != nil {
in, out := &in.Default, &out.Default in, out := &in.Default, &out.Default
*out = make([]api.Toleration, len(*in)) *out = make([]api.Toleration, len(*in))
for i := range *in { for i := range *in {
if err := api.DeepCopy_api_Toleration(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
}
} }
} }
if in.Whitelist != nil { if in.Whitelist != nil {
in, out := &in.Whitelist, &out.Whitelist in, out := &in.Whitelist, &out.Whitelist
*out = make([]api.Toleration, len(*in)) *out = make([]api.Toleration, len(*in))
for i := range *in { for i := range *in {
if err := api.DeepCopy_api_Toleration(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Configuration.
func (x *Configuration) DeepCopy() *Configuration {
if x == nil {
return nil
} }
out := new(Configuration)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Configuration) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }

View File

@ -18,6 +18,8 @@ package resourcequota
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Configuration provides configuration for the ResourceQuota admission controller. // Configuration provides configuration for the ResourceQuota admission controller.
type Configuration struct { type Configuration struct {
metav1.TypeMeta metav1.TypeMeta

View File

@ -18,6 +18,8 @@ package v1alpha1
import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" import metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
// Configuration provides configuration for the ResourceQuota admission controller. // Configuration provides configuration for the ResourceQuota admission controller.
type Configuration struct { type Configuration struct {
metav1.TypeMeta `json:",inline"` metav1.TypeMeta `json:",inline"`

View File

@ -26,49 +26,76 @@ import (
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_Configuration, InType: reflect.TypeOf(&Configuration{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_v1alpha1_LimitedResource, InType: reflect.TypeOf(&LimitedResource{})}, in.(*Configuration).DeepCopyInto(out.(*Configuration))
return nil
}, InType: reflect.TypeOf(&Configuration{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*LimitedResource).DeepCopyInto(out.(*LimitedResource))
return nil
}, InType: reflect.TypeOf(&LimitedResource{})},
) )
} }
// DeepCopy_v1alpha1_Configuration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1alpha1_Configuration(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *Configuration) DeepCopyInto(out *Configuration) {
{
in := in.(*Configuration)
out := out.(*Configuration)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
if in.LimitedResources != nil { if in.LimitedResources != nil {
in, out := &in.LimitedResources, &out.LimitedResources in, out := &in.LimitedResources, &out.LimitedResources
*out = make([]LimitedResource, len(*in)) *out = make([]LimitedResource, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_v1alpha1_LimitedResource(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Configuration.
func (x *Configuration) DeepCopy() *Configuration {
if x == nil {
return nil
} }
out := new(Configuration)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Configuration) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_v1alpha1_LimitedResource is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_v1alpha1_LimitedResource(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *LimitedResource) DeepCopyInto(out *LimitedResource) {
{
in := in.(*LimitedResource)
out := out.(*LimitedResource)
*out = *in *out = *in
if in.MatchContains != nil { if in.MatchContains != nil {
in, out := &in.MatchContains, &out.MatchContains in, out := &in.MatchContains, &out.MatchContains
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new LimitedResource.
func (x *LimitedResource) DeepCopy() *LimitedResource {
if x == nil {
return nil return nil
} }
out := new(LimitedResource)
x.DeepCopyInto(out)
return out
} }

View File

@ -26,49 +26,76 @@ import (
reflect "reflect" reflect "reflect"
) )
// Deprecated: register deep-copy functions.
func init() { func init() {
SchemeBuilder.Register(RegisterDeepCopies) SchemeBuilder.Register(RegisterDeepCopies)
} }
// RegisterDeepCopies adds deep-copy functions to the given scheme. Public // Deprecated: RegisterDeepCopies adds deep-copy functions to the given scheme. Public
// to allow building arbitrary schemes. // to allow building arbitrary schemes.
func RegisterDeepCopies(scheme *runtime.Scheme) error { func RegisterDeepCopies(scheme *runtime.Scheme) error {
return scheme.AddGeneratedDeepCopyFuncs( return scheme.AddGeneratedDeepCopyFuncs(
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_resourcequota_Configuration, InType: reflect.TypeOf(&Configuration{})}, conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
conversion.GeneratedDeepCopyFunc{Fn: DeepCopy_resourcequota_LimitedResource, InType: reflect.TypeOf(&LimitedResource{})}, in.(*Configuration).DeepCopyInto(out.(*Configuration))
return nil
}, InType: reflect.TypeOf(&Configuration{})},
conversion.GeneratedDeepCopyFunc{Fn: func(in interface{}, out interface{}, c *conversion.Cloner) error {
in.(*LimitedResource).DeepCopyInto(out.(*LimitedResource))
return nil
}, InType: reflect.TypeOf(&LimitedResource{})},
) )
} }
// DeepCopy_resourcequota_Configuration is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_resourcequota_Configuration(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *Configuration) DeepCopyInto(out *Configuration) {
{
in := in.(*Configuration)
out := out.(*Configuration)
*out = *in *out = *in
out.TypeMeta = in.TypeMeta
if in.LimitedResources != nil { if in.LimitedResources != nil {
in, out := &in.LimitedResources, &out.LimitedResources in, out := &in.LimitedResources, &out.LimitedResources
*out = make([]LimitedResource, len(*in)) *out = make([]LimitedResource, len(*in))
for i := range *in { for i := range *in {
if err := DeepCopy_resourcequota_LimitedResource(&(*in)[i], &(*out)[i], c); err != nil { (*in)[i].DeepCopyInto(&(*out)[i])
return err
} }
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new Configuration.
func (x *Configuration) DeepCopy() *Configuration {
if x == nil {
return nil
} }
out := new(Configuration)
x.DeepCopyInto(out)
return out
}
// DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
func (x *Configuration) DeepCopyObject() runtime.Object {
if c := x.DeepCopy(); c != nil {
return c
} else {
return nil return nil
} }
} }
// DeepCopy_resourcequota_LimitedResource is an autogenerated deepcopy function. // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func DeepCopy_resourcequota_LimitedResource(in interface{}, out interface{}, c *conversion.Cloner) error { func (in *LimitedResource) DeepCopyInto(out *LimitedResource) {
{
in := in.(*LimitedResource)
out := out.(*LimitedResource)
*out = *in *out = *in
if in.MatchContains != nil { if in.MatchContains != nil {
in, out := &in.MatchContains, &out.MatchContains in, out := &in.MatchContains, &out.MatchContains
*out = make([]string, len(*in)) *out = make([]string, len(*in))
copy(*out, *in) copy(*out, *in)
} }
return
}
// DeepCopyInto is an autogenerated deepcopy function, copying the receiver, creating a new LimitedResource.
func (x *LimitedResource) DeepCopy() *LimitedResource {
if x == nil {
return nil return nil
} }
out := new(LimitedResource)
x.DeepCopyInto(out)
return out
} }

Some files were not shown because too many files have changed in this diff Show More