Merge pull request #39490 from deads2k/generic-16-bump-gengo

Automatic merge from submit-queue (batch tested with PRs 39466, 39490, 39527)

bump gengo to latest

bumping gengo to limit surprises while working on https://github.com/kubernetes/kubernetes/pull/39475

@kubernetes/sig-api-machinery-misc
This commit is contained in:
Kubernetes Submit Queue
2017-01-06 11:30:13 -08:00
committed by GitHub
61 changed files with 1296 additions and 3315 deletions

View File

@@ -18,6 +18,7 @@ go_library(
"types_swagger_doc_generated.go",
"zz_generated.conversion.go",
"zz_generated.deepcopy.go",
"zz_generated.defaults.go",
],
tags = ["automanaged"],
deps = [

View File

@@ -46,14 +46,13 @@ func DeepCopy_v1alpha1_ImageReview(in interface{}, out interface{}, c *conversio
{
in := in.(*ImageReview)
out := out.(*ImageReview)
out.TypeMeta = in.TypeMeta
*out = *in
if err := v1.DeepCopy_v1_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err
}
if err := DeepCopy_v1alpha1_ImageReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err
}
out.Status = in.Status
return nil
}
}
@@ -62,7 +61,7 @@ func DeepCopy_v1alpha1_ImageReviewContainerSpec(in interface{}, out interface{},
{
in := in.(*ImageReviewContainerSpec)
out := out.(*ImageReviewContainerSpec)
out.Image = in.Image
*out = *in
return nil
}
}
@@ -71,14 +70,13 @@ func DeepCopy_v1alpha1_ImageReviewSpec(in interface{}, out interface{}, c *conve
{
in := in.(*ImageReviewSpec)
out := out.(*ImageReviewSpec)
*out = *in
if in.Containers != nil {
in, out := &in.Containers, &out.Containers
*out = make([]ImageReviewContainerSpec, len(*in))
for i := range *in {
(*out)[i] = (*in)[i]
}
} else {
out.Containers = nil
}
if in.Annotations != nil {
in, out := &in.Annotations, &out.Annotations
@@ -86,10 +84,7 @@ func DeepCopy_v1alpha1_ImageReviewSpec(in interface{}, out interface{}, c *conve
for key, val := range *in {
(*out)[key] = val
}
} else {
out.Annotations = nil
}
out.Namespace = in.Namespace
return nil
}
}
@@ -98,8 +93,7 @@ func DeepCopy_v1alpha1_ImageReviewStatus(in interface{}, out interface{}, c *con
{
in := in.(*ImageReviewStatus)
out := out.(*ImageReviewStatus)
out.Allowed = in.Allowed
out.Reason = in.Reason
*out = *in
return nil
}
}

View File

@@ -0,0 +1,32 @@
// +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 defaulter-gen. Do not edit it manually!
package v1alpha1
import (
runtime "k8s.io/kubernetes/pkg/runtime"
)
// RegisterDefaults adds defaulters functions to the given scheme.
// Public to allow building arbitrary schemes.
// All generated defaulters are covering - they call all nested defaulters.
func RegisterDefaults(scheme *runtime.Scheme) error {
return nil
}

View File

@@ -46,14 +46,13 @@ func DeepCopy_imagepolicy_ImageReview(in interface{}, out interface{}, c *conver
{
in := in.(*ImageReview)
out := out.(*ImageReview)
out.TypeMeta = in.TypeMeta
*out = *in
if err := api.DeepCopy_api_ObjectMeta(&in.ObjectMeta, &out.ObjectMeta, c); err != nil {
return err
}
if err := DeepCopy_imagepolicy_ImageReviewSpec(&in.Spec, &out.Spec, c); err != nil {
return err
}
out.Status = in.Status
return nil
}
}
@@ -62,7 +61,7 @@ func DeepCopy_imagepolicy_ImageReviewContainerSpec(in interface{}, out interface
{
in := in.(*ImageReviewContainerSpec)
out := out.(*ImageReviewContainerSpec)
out.Image = in.Image
*out = *in
return nil
}
}
@@ -71,14 +70,13 @@ func DeepCopy_imagepolicy_ImageReviewSpec(in interface{}, out interface{}, c *co
{
in := in.(*ImageReviewSpec)
out := out.(*ImageReviewSpec)
*out = *in
if in.Containers != nil {
in, out := &in.Containers, &out.Containers
*out = make([]ImageReviewContainerSpec, len(*in))
for i := range *in {
(*out)[i] = (*in)[i]
}
} else {
out.Containers = nil
}
if in.Annotations != nil {
in, out := &in.Annotations, &out.Annotations
@@ -86,10 +84,7 @@ func DeepCopy_imagepolicy_ImageReviewSpec(in interface{}, out interface{}, c *co
for key, val := range *in {
(*out)[key] = val
}
} else {
out.Annotations = nil
}
out.Namespace = in.Namespace
return nil
}
}
@@ -98,8 +93,7 @@ func DeepCopy_imagepolicy_ImageReviewStatus(in interface{}, out interface{}, c *
{
in := in.(*ImageReviewStatus)
out := out.(*ImageReviewStatus)
out.Allowed = in.Allowed
out.Reason = in.Reason
*out = *in
return nil
}
}