Recreate the opt-in/opt-out logic for deepcopy
This is the last piece of Clayton's #26179 to be implemented with file tags. All diffs are accounted for. Followup will use this to streamline some packages. Also add some V(5) debugging - it was helpful in diagnosing various issues, it may be helpful again.
This commit is contained in:
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:deepcopy-gen=register
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
|
||||
// Package api contains the latest (or "internal") version of the
|
||||
// Kubernetes API objects. This is the API objects as represented in memory.
|
||||
|
||||
@@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:deepcopy-gen=generate
|
||||
// +k8s:deepcopy-gen=package
|
||||
|
||||
package unversioned
|
||||
|
||||
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:deepcopy-gen=register
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
|
||||
// Package v1 is the v1 version of the API.
|
||||
// +genconversion=true
|
||||
|
||||
@@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:deepcopy-gen=register
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
|
||||
package apps
|
||||
|
||||
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:deepcopy-gen=register
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
|
||||
// +genconversion=true
|
||||
package v1alpha1
|
||||
|
||||
@@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:deepcopy-gen=register
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
|
||||
package authentication
|
||||
|
||||
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:deepcopy-gen=register
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
|
||||
// +genconversion=true
|
||||
package v1beta1
|
||||
|
||||
@@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:deepcopy-gen=register
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
|
||||
package authorization
|
||||
|
||||
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:deepcopy-gen=register
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
|
||||
// +genconversion=true
|
||||
package v1beta1
|
||||
|
||||
@@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:deepcopy-gen=register
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
|
||||
package autoscaling
|
||||
|
||||
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:deepcopy-gen=register
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
|
||||
// +genconversion=true
|
||||
package v1
|
||||
|
||||
@@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:deepcopy-gen=register
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
|
||||
package batch
|
||||
|
||||
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:deepcopy-gen=register
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
|
||||
// +genconversion=true
|
||||
package v1
|
||||
|
||||
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:deepcopy-gen=register
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
|
||||
// +genconversion=true
|
||||
package v2alpha1
|
||||
|
||||
@@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:deepcopy-gen=register
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
|
||||
package certificates
|
||||
|
||||
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:deepcopy-gen=register
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
|
||||
// +genconversion=true
|
||||
package v1alpha1
|
||||
|
||||
@@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:deepcopy-gen=register
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
|
||||
package componentconfig
|
||||
|
||||
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:deepcopy-gen=register
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
|
||||
// +genconversion=true
|
||||
package v1alpha1
|
||||
|
||||
@@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:deepcopy-gen=register
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
|
||||
package extensions
|
||||
|
||||
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:deepcopy-gen=register
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
|
||||
// +genconversion=true
|
||||
package v1beta1
|
||||
|
||||
@@ -14,6 +14,6 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:deepcopy-gen=register
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
|
||||
package policy
|
||||
|
||||
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:deepcopy-gen=register
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
|
||||
// Package policy is for any kind of policy object. Suitable examples, even if
|
||||
// they aren't all here, are PodDisruptionBudget, PodSecurityPolicy,
|
||||
|
||||
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:deepcopy-gen=register
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
|
||||
// +groupName=rbac.authorization.k8s.io
|
||||
package rbac
|
||||
|
||||
@@ -15,7 +15,7 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
// +groupName=rbac.authorization.k8s.io
|
||||
// +k8s:deepcopy-gen=register
|
||||
// +k8s:deepcopy-gen=package,register
|
||||
|
||||
// +genconversion=true
|
||||
package v1alpha1
|
||||
|
||||
@@ -14,7 +14,7 @@ See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
// +k8s:deepcopy-gen=generate
|
||||
// +k8s:deepcopy-gen=package
|
||||
|
||||
// Package conversion provides go object versioning.
|
||||
//
|
||||
|
||||
@@ -42,6 +42,6 @@ limitations under the License.
|
||||
// As a bonus, a few common types useful from all api objects and versions
|
||||
// are provided in types.go.
|
||||
|
||||
// +k8s:deepcopy-gen=generate
|
||||
// +k8s:deepcopy-gen=package
|
||||
|
||||
package runtime
|
||||
|
||||
Reference in New Issue
Block a user