kube-api-linter: enable optionalorrequired checks for flowcontrol

Add +required/+optional markers across flowcontrol API versions and
regenerate OpenAPI, protobuf, and applyconfiguration artifacts with
current tags so unrelated discovery files are left untouched.

Kubernetes-commit: 52c2a3ab1caa6f55b4e14c89cbf33bca21feaa32
This commit is contained in:
Adarsh Kumar Yadav
2026-07-16 10:50:37 +05:30
committed by Kubernetes Publisher
parent 7b62b07ca8
commit 1ad85590c3
8 changed files with 8 additions and 16 deletions

View File

@@ -32,8 +32,7 @@ type FlowSchemaConditionApplyConfiguration struct {
// Required.
Type *flowcontrolv1.FlowSchemaConditionType `json:"type,omitempty"`
// `status` is the status of the condition.
// Can be True, False, Unknown.
// Required.
// Should be specified and set to one of True, False, Unknown.
Status *flowcontrolv1.ConditionStatus `json:"status,omitempty"`
// `lastTransitionTime` is the last time the condition transitioned from one status to another.
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`

View File

@@ -32,8 +32,7 @@ type PriorityLevelConfigurationConditionApplyConfiguration struct {
// Required.
Type *flowcontrolv1.PriorityLevelConfigurationConditionType `json:"type,omitempty"`
// `status` is the status of the condition.
// Can be True, False, Unknown.
// Required.
// Should be specified and set to one of True, False, Unknown.
Status *flowcontrolv1.ConditionStatus `json:"status,omitempty"`
// `lastTransitionTime` is the last time the condition transitioned from one status to another.
LastTransitionTime *metav1.Time `json:"lastTransitionTime,omitempty"`

View File

@@ -32,8 +32,7 @@ type FlowSchemaConditionApplyConfiguration struct {
// Required.
Type *flowcontrolv1beta1.FlowSchemaConditionType `json:"type,omitempty"`
// `status` is the status of the condition.
// Can be True, False, Unknown.
// Required.
// Should be specified and set to one of True, False, Unknown.
Status *flowcontrolv1beta1.ConditionStatus `json:"status,omitempty"`
// `lastTransitionTime` is the last time the condition transitioned from one status to another.
LastTransitionTime *v1.Time `json:"lastTransitionTime,omitempty"`

View File

@@ -32,8 +32,7 @@ type PriorityLevelConfigurationConditionApplyConfiguration struct {
// Required.
Type *flowcontrolv1beta1.PriorityLevelConfigurationConditionType `json:"type,omitempty"`
// `status` is the status of the condition.
// Can be True, False, Unknown.
// Required.
// Should be specified and set to one of True, False, Unknown.
Status *flowcontrolv1beta1.ConditionStatus `json:"status,omitempty"`
// `lastTransitionTime` is the last time the condition transitioned from one status to another.
LastTransitionTime *v1.Time `json:"lastTransitionTime,omitempty"`

View File

@@ -32,8 +32,7 @@ type FlowSchemaConditionApplyConfiguration struct {
// Required.
Type *flowcontrolv1beta2.FlowSchemaConditionType `json:"type,omitempty"`
// `status` is the status of the condition.
// Can be True, False, Unknown.
// Required.
// Should be specified and set to one of True, False, Unknown.
Status *flowcontrolv1beta2.ConditionStatus `json:"status,omitempty"`
// `lastTransitionTime` is the last time the condition transitioned from one status to another.
LastTransitionTime *v1.Time `json:"lastTransitionTime,omitempty"`

View File

@@ -32,8 +32,7 @@ type PriorityLevelConfigurationConditionApplyConfiguration struct {
// Required.
Type *flowcontrolv1beta2.PriorityLevelConfigurationConditionType `json:"type,omitempty"`
// `status` is the status of the condition.
// Can be True, False, Unknown.
// Required.
// Should be specified and set to one of True, False, Unknown.
Status *flowcontrolv1beta2.ConditionStatus `json:"status,omitempty"`
// `lastTransitionTime` is the last time the condition transitioned from one status to another.
LastTransitionTime *v1.Time `json:"lastTransitionTime,omitempty"`

View File

@@ -32,8 +32,7 @@ type FlowSchemaConditionApplyConfiguration struct {
// Required.
Type *flowcontrolv1beta3.FlowSchemaConditionType `json:"type,omitempty"`
// `status` is the status of the condition.
// Can be True, False, Unknown.
// Required.
// Should be specified and set to one of True, False, Unknown.
Status *flowcontrolv1beta3.ConditionStatus `json:"status,omitempty"`
// `lastTransitionTime` is the last time the condition transitioned from one status to another.
LastTransitionTime *v1.Time `json:"lastTransitionTime,omitempty"`

View File

@@ -32,8 +32,7 @@ type PriorityLevelConfigurationConditionApplyConfiguration struct {
// Required.
Type *flowcontrolv1beta3.PriorityLevelConfigurationConditionType `json:"type,omitempty"`
// `status` is the status of the condition.
// Can be True, False, Unknown.
// Required.
// Should be specified and set to one of True, False, Unknown.
Status *flowcontrolv1beta3.ConditionStatus `json:"status,omitempty"`
// `lastTransitionTime` is the last time the condition transitioned from one status to another.
LastTransitionTime *v1.Time `json:"lastTransitionTime,omitempty"`