Skip to content

Commit

Permalink
Enable deepcopy-gen in packages where needed
Browse files Browse the repository at this point in the history
  • Loading branch information
sttts committed Sep 21, 2017
1 parent ac38666 commit 28f6d66
Show file tree
Hide file tree
Showing 13 changed files with 88 additions and 17 deletions.
4 changes: 4 additions & 0 deletions pkg/build/controller/build/defaults/api/v1/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// +k8s:deepcopy-gen=package,register

// Package v1 is the v1 version of the API.
package v1
4 changes: 4 additions & 0 deletions pkg/build/controller/build/overrides/api/v1/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// +k8s:deepcopy-gen=package,register

// Package v1 is the v1 version of the API.
package v1
1 change: 1 addition & 0 deletions pkg/cmd/server/api/v1/doc.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// +k8s:defaulter-gen=TypeMeta
// +k8s:deepcopy-gen=package,register

// Package v1 is the v1 version of the API.
package v1
4 changes: 4 additions & 0 deletions pkg/image/admission/imagepolicy/api/v1/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// +k8s:deepcopy-gen=package,register

// Package v1 is the v1 version of the API.
package v1
4 changes: 4 additions & 0 deletions pkg/image/apis/image/docker10/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// +k8s:deepcopy-gen=package,register

// Package docker10 is the docker10 version of the API.
package docker10
4 changes: 4 additions & 0 deletions pkg/image/apis/image/dockerpre012/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// +k8s:deepcopy-gen=package,register

// Package dockerpre012 is the dockerpre012 version of the API.
package dockerpre012
4 changes: 4 additions & 0 deletions pkg/ingress/admission/api/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// +k8s:deepcopy-gen=package,register

// Package api is the internal version of the API.
package api
4 changes: 4 additions & 0 deletions pkg/ingress/admission/api/v1/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// +k8s:deepcopy-gen=package,register

// Package v1 is the v1 version of the API.
package v1
4 changes: 4 additions & 0 deletions pkg/project/admission/requestlimit/api/v1/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// +k8s:deepcopy-gen=package,register

// Package v1 is the v1 version of the API.
package v1
4 changes: 4 additions & 0 deletions pkg/quota/admission/clusterresourceoverride/api/v1/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// +k8s:deepcopy-gen=package,register

// Package v1 is the v1 version of the API.
package v1
4 changes: 4 additions & 0 deletions pkg/quota/admission/runonceduration/api/v1/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// +k8s:deepcopy-gen=package,register

// Package v1 is the v1 version of the API.
package v1
4 changes: 4 additions & 0 deletions pkg/scheduler/admission/podnodeconstraints/api/v1/doc.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// +k8s:deepcopy-gen=package,register

// Package v1 is the v1 version of the API.
package v1
60 changes: 43 additions & 17 deletions tools/gendeepcopy/deep_copy.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,32 +38,58 @@ func main() {
"k8s.io/apimachinery/pkg/util/sets",
"k8s.io/kube-aggregator/pkg/apis/apiregistration/v1beta1",
"k8s.io/kube-aggregator/pkg/apis/apiregistration",
"github.com/openshift/origin/pkg/authorization/apis/authorization/v1",
"github.com/openshift/origin/pkg/apps/apis/apps",
"github.com/openshift/origin/pkg/apps/apis/apps/v1",
"github.com/openshift/origin/pkg/authorization/apis/authorization",
"github.com/openshift/origin/pkg/build/apis/build/v1",
"github.com/openshift/origin/pkg/authorization/apis/authorization/v1",
"github.com/openshift/origin/pkg/build/admission/testing",
"github.com/openshift/origin/pkg/build/apis/build",
"github.com/openshift/origin/pkg/apps/apis/apps/v1",
"github.com/openshift/origin/pkg/apps/apis/apps",
"github.com/openshift/origin/pkg/image/apis/image/v1",
"github.com/openshift/origin/pkg/build/apis/build/v1",
"github.com/openshift/origin/pkg/build/controller/build/defaults/api",
"github.com/openshift/origin/pkg/build/controller/build/defaults/api/v1",
"github.com/openshift/origin/pkg/build/controller/build/overrides/api",
"github.com/openshift/origin/pkg/build/controller/build/overrides/api/v1",
"github.com/openshift/origin/pkg/cmd/server/api",
"github.com/openshift/origin/pkg/cmd/server/api/v1",
"github.com/openshift/origin/pkg/cmd/server/api/v1/testing",
"github.com/openshift/origin/pkg/cmd/util/pluginconfig/testing",
"github.com/openshift/origin/pkg/image/admission/imagepolicy/api",
"github.com/openshift/origin/pkg/image/admission/imagepolicy/api/v1",
"github.com/openshift/origin/pkg/image/apis/image",
"github.com/openshift/origin/pkg/oauth/apis/oauth/v1",
"github.com/openshift/origin/pkg/image/apis/image/docker10",
"github.com/openshift/origin/pkg/image/apis/image/dockerpre012",
"github.com/openshift/origin/pkg/image/apis/image/v1",
"github.com/openshift/origin/pkg/ingress/admission/api",
"github.com/openshift/origin/pkg/ingress/admission/api/v1",
"github.com/openshift/origin/pkg/network/apis/network",
"github.com/openshift/origin/pkg/network/apis/network/v1",
"github.com/openshift/origin/pkg/oauth/apis/oauth",
"github.com/openshift/origin/pkg/project/apis/project/v1",
"github.com/openshift/origin/pkg/oauth/apis/oauth/v1",
"github.com/openshift/origin/pkg/project/admission/lifecycle/testing",
"github.com/openshift/origin/pkg/project/admission/requestlimit/api",
"github.com/openshift/origin/pkg/project/admission/requestlimit/api/v1",
"github.com/openshift/origin/pkg/project/apis/project",
"github.com/openshift/origin/pkg/quota/apis/quota/v1",
"github.com/openshift/origin/pkg/project/apis/project/v1",
"github.com/openshift/origin/pkg/quota/admission/clusterresourceoverride/api",
"github.com/openshift/origin/pkg/quota/admission/clusterresourceoverride/api/v1",
"github.com/openshift/origin/pkg/quota/admission/runonceduration/api",
"github.com/openshift/origin/pkg/quota/admission/runonceduration/api/v1",
"github.com/openshift/origin/pkg/quota/apis/quota",
"github.com/openshift/origin/pkg/route/apis/route/v1",
"github.com/openshift/origin/pkg/quota/apis/quota/v1",
"github.com/openshift/origin/pkg/route/apis/route",
"github.com/openshift/origin/pkg/network/apis/network/v1",
"github.com/openshift/origin/pkg/network/apis/network",
"github.com/openshift/origin/pkg/template/apis/template/v1",
"github.com/openshift/origin/pkg/template/apis/template",
"github.com/openshift/origin/pkg/user/apis/user/v1",
"github.com/openshift/origin/pkg/user/apis/user",
"github.com/openshift/origin/pkg/security/apis/security/v1",
"github.com/openshift/origin/pkg/route/apis/route/v1",
"github.com/openshift/origin/pkg/scheduler/admission/podnodeconstraints/api",
"github.com/openshift/origin/pkg/scheduler/admission/podnodeconstraints/api/v1",
"github.com/openshift/origin/pkg/security/apis/security",
"github.com/openshift/origin/pkg/template/servicebroker/apis/config/v1",
"github.com/openshift/origin/pkg/security/apis/security/v1",
"github.com/openshift/origin/pkg/template/apis/template",
"github.com/openshift/origin/pkg/template/apis/template/v1",
"github.com/openshift/origin/pkg/template/servicebroker/apis/config",
"github.com/openshift/origin/pkg/template/servicebroker/apis/config/v1",
"github.com/openshift/origin/pkg/user/apis/user",
"github.com/openshift/origin/pkg/user/apis/user/v1",
"github.com/openshift/origin/pkg/util/testing",
"github.com/openshift/origin/test/integration/testing",
}

arguments.GeneratedBuildTag = "ignore_autogenerated_openshift"
Expand Down

0 comments on commit 28f6d66

Please sign in to comment.