From 5358347af09529e47992a97052ad16c0c717c121 Mon Sep 17 00:00:00 2001 From: Jiahui Feng Date: Fri, 11 Mar 2022 10:00:00 -0800 Subject: [PATCH] unmark non-validated types as enums. Kubernetes-commit: 2538b2ef4380b6092af97459ef9185eb4113ad09 --- batch/v1/types.go | 1 - core/v1/types.go | 6 ------ 2 files changed, 7 deletions(-) diff --git a/batch/v1/types.go b/batch/v1/types.go index aec1cad8e2..500603cf07 100644 --- a/batch/v1/types.go +++ b/batch/v1/types.go @@ -289,7 +289,6 @@ type UncountedTerminatedPods struct { Failed []types.UID `json:"failed,omitempty" protobuf:"bytes,2,rep,name=failed,casttype=k8s.io/apimachinery/pkg/types.UID"` } -// +enum type JobConditionType string // These are valid conditions of a job. diff --git a/core/v1/types.go b/core/v1/types.go index 80c5dd744c..13dbbac5b4 100644 --- a/core/v1/types.go +++ b/core/v1/types.go @@ -522,7 +522,6 @@ type PersistentVolumeClaimSpec struct { } // PersistentVolumeClaimConditionType is a valid value of PersistentVolumeClaimCondition.Type -// +enum type PersistentVolumeClaimConditionType string const ( @@ -2635,7 +2634,6 @@ const ( ) // PodConditionType is a valid value for PodCondition.Type -// +enum type PodConditionType string // These are valid conditions of pod. @@ -5055,7 +5053,6 @@ const ( NodeTerminated NodePhase = "Terminated" ) -// +enum type NodeConditionType string // These are valid conditions of node. Currently, we don't have enough information to decide @@ -5094,7 +5091,6 @@ type NodeCondition struct { Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"` } -// +enum type NodeAddressType string // These are valid address type of node. @@ -5267,7 +5263,6 @@ const ( NamespaceTerminatingCause metav1.CauseType = "NamespaceTerminating" ) -// +enum type NamespaceConditionType string // These are valid conditions of a namespace. @@ -5759,7 +5754,6 @@ type EventList struct { type List metav1.List // LimitType is a type of object that is limited -// +enum type LimitType string const (