Update generated code

Kubernetes-commit: 143c56ddeb8ba470102d5145bbfafca898999763
This commit is contained in:
Hemant Kumar
2026-03-02 17:00:43 -05:00
committed by Kubernetes Publisher
parent 73f4fa85e7
commit 27966b2574
2 changed files with 16 additions and 3 deletions

View File

@@ -15043,9 +15043,6 @@ var schemaYAML = typed.YAMLObject(`types:
- name: io.k8s.api.storage.v1beta1.CSIDriverSpec
map:
fields:
- name: PreventPodSchedulingIfMissing
type:
scalar: boolean
- name: attachRequired
type:
scalar: boolean
@@ -15058,6 +15055,9 @@ var schemaYAML = typed.YAMLObject(`types:
- name: podInfoOnMount
type:
scalar: boolean
- name: preventPodSchedulingIfMissing
type:
scalar: boolean
- name: requiresRepublish
type:
scalar: boolean

View File

@@ -178,6 +178,11 @@ type CSIDriverSpecApplyConfiguration struct {
//
// Default behavior if unset is to pass tokens in the VolumeContext field.
ServiceAccountTokenInSecrets *bool `json:"serviceAccountTokenInSecrets,omitempty"`
// PreventPodSchedulingIfMissing indicates that the CSI driver wants to prevent pod scheduling if the CSI driver
// on the node is missing.
// This is an alpha feature and requires the VolumeLimitScaling feature gate to be enabled.
// Default is "false".
PreventPodSchedulingIfMissing *bool `json:"preventPodSchedulingIfMissing,omitempty"`
}
// CSIDriverSpecApplyConfiguration constructs a declarative configuration of the CSIDriverSpec type for use with
@@ -272,3 +277,11 @@ func (b *CSIDriverSpecApplyConfiguration) WithServiceAccountTokenInSecrets(value
b.ServiceAccountTokenInSecrets = &value
return b
}
// WithPreventPodSchedulingIfMissing sets the PreventPodSchedulingIfMissing field in the declarative configuration to the given value
// and returns the receiver, so that objects can be built by chaining "With" function invocations.
// If called multiple times, the PreventPodSchedulingIfMissing field is set to the value of the last call.
func (b *CSIDriverSpecApplyConfiguration) WithPreventPodSchedulingIfMissing(value bool) *CSIDriverSpecApplyConfiguration {
b.PreventPodSchedulingIfMissing = &value
return b
}