Generated files

Kubernetes-commit: d6d9a354d7df9ad331ffe7e6212767cf8f90016c
This commit is contained in:
Sreeram 2025-03-25 02:06:29 +05:30 committed by Kubernetes Publisher
parent 3bf0a05288
commit 7a03a3b92e
3 changed files with 30 additions and 2 deletions

View File

@ -39,6 +39,7 @@ type ContainerStatusApplyConfiguration struct {
VolumeMounts []VolumeMountStatusApplyConfiguration `json:"volumeMounts,omitempty"`
User *ContainerUserApplyConfiguration `json:"user,omitempty"`
AllocatedResourcesStatus []ResourceStatusApplyConfiguration `json:"allocatedResourcesStatus,omitempty"`
StopSignal *corev1.Signal `json:"stopSignal,omitempty"`
}
// ContainerStatusApplyConfiguration constructs a declarative configuration of the ContainerStatus type for use with
@ -168,3 +169,11 @@ func (b *ContainerStatusApplyConfiguration) WithAllocatedResourcesStatus(values
}
return b
}
// WithStopSignal sets the StopSignal 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 StopSignal field is set to the value of the last call.
func (b *ContainerStatusApplyConfiguration) WithStopSignal(value corev1.Signal) *ContainerStatusApplyConfiguration {
b.StopSignal = &value
return b
}

View File

@ -18,11 +18,16 @@ limitations under the License.
package v1
import (
corev1 "k8s.io/api/core/v1"
)
// LifecycleApplyConfiguration represents a declarative configuration of the Lifecycle type for use
// with apply.
type LifecycleApplyConfiguration struct {
PostStart *LifecycleHandlerApplyConfiguration `json:"postStart,omitempty"`
PreStop *LifecycleHandlerApplyConfiguration `json:"preStop,omitempty"`
PostStart *LifecycleHandlerApplyConfiguration `json:"postStart,omitempty"`
PreStop *LifecycleHandlerApplyConfiguration `json:"preStop,omitempty"`
StopSignal *corev1.Signal `json:"stopSignal,omitempty"`
}
// LifecycleApplyConfiguration constructs a declarative configuration of the Lifecycle type for use with
@ -46,3 +51,11 @@ func (b *LifecycleApplyConfiguration) WithPreStop(value *LifecycleHandlerApplyCo
b.PreStop = value
return b
}
// WithStopSignal sets the StopSignal 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 StopSignal field is set to the value of the last call.
func (b *LifecycleApplyConfiguration) WithStopSignal(value corev1.Signal) *LifecycleApplyConfiguration {
b.StopSignal = &value
return b
}

View File

@ -5330,6 +5330,9 @@ var schemaYAML = typed.YAMLObject(`types:
type:
namedType: io.k8s.api.core.v1.ContainerState
default: {}
- name: stopSignal
type:
scalar: string
- name: user
type:
namedType: io.k8s.api.core.v1.ContainerUser
@ -6045,6 +6048,9 @@ var schemaYAML = typed.YAMLObject(`types:
- name: preStop
type:
namedType: io.k8s.api.core.v1.LifecycleHandler
- name: stopSignal
type:
scalar: string
- name: io.k8s.api.core.v1.LifecycleHandler
map:
fields: