Merge pull request #137106 from ibm-adarsh/flowcontrol-optionalorrequired

[kube-api-linter] Enable optionalorrequired linter for flowcontrol API group

Kubernetes-commit: 8b000138c8465df6da0e6c81be70c1fc4ebf2209
This commit is contained in:
Kubernetes Publisher
2026-07-16 15:17:24 +00:00
10 changed files with 11 additions and 19 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"`

2
go.mod
View File

@@ -23,7 +23,7 @@ require (
golang.org/x/time v0.15.0
google.golang.org/protobuf v1.36.12-0.20260120151049-f2248ac996af
gopkg.in/evanphx/json-patch.v4 v4.13.0
k8s.io/api v0.0.0-20260716140236-d9a9df18de7e
k8s.io/api v0.0.0-20260716180343-d885c1a612e0
k8s.io/apimachinery v0.0.0-20260714215629-2596865fdece
k8s.io/klog/v2 v2.140.0
k8s.io/kube-openapi v0.0.0-20260618221249-bc653b64f974

4
go.sum
View File

@@ -118,8 +118,8 @@ gopkg.in/inf.v0 v0.9.1 h1:73M5CoZyi3ZLMOyDlQh031Cx6N9NDJ2Vvfl76EDAgDc=
gopkg.in/inf.v0 v0.9.1/go.mod h1:cWUDdTG/fYaXco+Dcufb5Vnc6Gp2YChqWtbxRZE0mXw=
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
k8s.io/api v0.0.0-20260716140236-d9a9df18de7e h1:90xOukhtAcXMCIpXqLi9U8qHqUPWnqp2VgHv4urSEaA=
k8s.io/api v0.0.0-20260716140236-d9a9df18de7e/go.mod h1:vlAgt05H+iO4kEanqHqE6o83CIg8g+V2YzcokiLpd6c=
k8s.io/api v0.0.0-20260716180343-d885c1a612e0 h1:TBkv8efAgF+n0ia3bcR1EElqj1Ck99P8hZxPBYH+ML4=
k8s.io/api v0.0.0-20260716180343-d885c1a612e0/go.mod h1:vlAgt05H+iO4kEanqHqE6o83CIg8g+V2YzcokiLpd6c=
k8s.io/apimachinery v0.0.0-20260714215629-2596865fdece h1:Sb4AgV6zFxg96iti6D/uf66/tlwLfOmhSBl78Tjwhqc=
k8s.io/apimachinery v0.0.0-20260714215629-2596865fdece/go.mod h1:gUMHWz9sZCP7+vv/RiJJXhiPGY2mjS9OgfFcoqYul+M=
k8s.io/klog/v2 v2.140.0 h1:Tf+J3AH7xnUzZyVVXhTgGhEKnFqye14aadWv7bzXdzc=