Skip to content

Commit b3475a3

Browse files
authoredSep 25, 2017
Merge pull request #16469 from sttts/sttts-static-deepcopy-prep
Automatic merge from submit-queue Prepare for static deep-copy in 3.8 rebase This has no effect yet in 3.7 based master, but will make the 3.8 rebase much easier with the deepcopy tags in place and test types moved into non-test packages to be reachable by deepcopy-gen.
2 parents 11e88a4 + 93d6b94 commit b3475a3

File tree

104 files changed

+5175
-131
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+5175
-131
lines changed
 

‎pkg/apps/apis/apps/types.go

+11
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ const (
127127
// +genclient:method=Rollback,verb=create,subresource=rollback,input=DeploymentConfigRollback
128128
// +genclient:method=GetScale,verb=get,subresource=scale,result=k8s.io/kubernetes/pkg/apis/extensions/v1beta1.Scale
129129
// +genclient:method=UpdateScale,verb=update,subresource=scale,input=k8s.io/kubernetes/pkg/apis/extensions/v1beta1.Scale,result=k8s.io/kubernetes/pkg/apis/extensions/v1beta1.Scale
130+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
130131

131132
// DeploymentConfig represents a configuration for a single deployment (represented as a
132133
// ReplicationController). It also contains details about changes which resulted in the current
@@ -504,6 +505,8 @@ type DeploymentCondition struct {
504505
Message string
505506
}
506507

508+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
509+
507510
// DeploymentConfigList is a collection of deployment configs.
508511
type DeploymentConfigList struct {
509512
metav1.TypeMeta
@@ -513,6 +516,8 @@ type DeploymentConfigList struct {
513516
Items []DeploymentConfig
514517
}
515518

519+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
520+
516521
// DeploymentConfigRollback provides the input to rollback generation.
517522
type DeploymentConfigRollback struct {
518523
metav1.TypeMeta
@@ -540,6 +545,8 @@ type DeploymentConfigRollbackSpec struct {
540545
IncludeStrategy bool
541546
}
542547

548+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
549+
543550
// DeploymentRequest is a request to a deployment config for a new deployment.
544551
type DeploymentRequest struct {
545552
metav1.TypeMeta
@@ -556,11 +563,15 @@ type DeploymentRequest struct {
556563
ExcludeTriggers []DeploymentTriggerType
557564
}
558565

566+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
567+
559568
// DeploymentLog represents the logs for a deployment
560569
type DeploymentLog struct {
561570
metav1.TypeMeta
562571
}
563572

573+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
574+
564575
// DeploymentLogOptions is the REST options for a deployment log
565576
type DeploymentLogOptions struct {
566577
metav1.TypeMeta

‎pkg/apps/apis/apps/v1/types.go

+11
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import (
1313
// +genclient:method=Rollback,verb=create,subresource=rollback,input=DeploymentConfigRollback
1414
// +genclient:method=GetScale,verb=get,subresource=scale,result=k8s.io/kubernetes/pkg/apis/extensions/v1beta1.Scale
1515
// +genclient:method=UpdateScale,verb=update,subresource=scale,input=k8s.io/kubernetes/pkg/apis/extensions/v1beta1.Scale,result=k8s.io/kubernetes/pkg/apis/extensions/v1beta1.Scale
16+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
1617

1718
// Deployment Configs define the template for a pod and manages deploying new images or configuration changes.
1819
// A single deployment configuration is usually analogous to a single micro-service. Can support many different
@@ -379,6 +380,8 @@ type DeploymentCondition struct {
379380
Message string `json:"message,omitempty" protobuf:"bytes,5,opt,name=message"`
380381
}
381382

383+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
384+
382385
// DeploymentConfigList is a collection of deployment configs.
383386
type DeploymentConfigList struct {
384387
metav1.TypeMeta `json:",inline"`
@@ -389,6 +392,8 @@ type DeploymentConfigList struct {
389392
Items []DeploymentConfig `json:"items" protobuf:"bytes,2,rep,name=items"`
390393
}
391394

395+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
396+
392397
// DeploymentConfigRollback provides the input to rollback generation.
393398
type DeploymentConfigRollback struct {
394399
metav1.TypeMeta `json:",inline"`
@@ -416,6 +421,8 @@ type DeploymentConfigRollbackSpec struct {
416421
IncludeStrategy bool `json:"includeStrategy" protobuf:"varint,6,opt,name=includeStrategy"`
417422
}
418423

424+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
425+
419426
// DeploymentRequest is a request to a deployment config for a new deployment.
420427
type DeploymentRequest struct {
421428
metav1.TypeMeta `json:",inline"`
@@ -432,11 +439,15 @@ type DeploymentRequest struct {
432439
ExcludeTriggers []DeploymentTriggerType `json:"excludeTriggers,omitempty" protobuf:"bytes,4,rep,name=excludeTriggers,casttype=DeploymentTriggerType"`
433440
}
434441

442+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
443+
435444
// DeploymentLog represents the logs for a deployment
436445
type DeploymentLog struct {
437446
metav1.TypeMeta `json:",inline"`
438447
}
439448

449+
// +k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object
450+
440451
// DeploymentLogOptions is the REST options for a deployment log
441452
type DeploymentLogOptions struct {
442453
metav1.TypeMeta `json:",inline"`

0 commit comments

Comments
 (0)
Please sign in to comment.