Skip to content

Commit

Permalink
unmark non-validated types as enums.
Browse files Browse the repository at this point in the history
Kubernetes-commit: 2538b2ef4380b6092af97459ef9185eb4113ad09
  • Loading branch information
jiahuif authored and k8s-publishing-bot committed Mar 11, 2022
1 parent a6b2207 commit 5358347
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
1 change: 0 additions & 1 deletion batch/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 0 additions & 6 deletions core/v1/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,6 @@ type PersistentVolumeClaimSpec struct {
}

// PersistentVolumeClaimConditionType is a valid value of PersistentVolumeClaimCondition.Type
// +enum
type PersistentVolumeClaimConditionType string

const (
Expand Down Expand Up @@ -2635,7 +2634,6 @@ const (
)

// PodConditionType is a valid value for PodCondition.Type
// +enum
type PodConditionType string

// These are valid conditions of pod.
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -5267,7 +5263,6 @@ const (
NamespaceTerminatingCause metav1.CauseType = "NamespaceTerminating"
)

// +enum
type NamespaceConditionType string

// These are valid conditions of a namespace.
Expand Down Expand Up @@ -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 (
Expand Down

0 comments on commit 5358347

Please sign in to comment.