mirror of
https://github.com/kubernetes/client-go.git
synced 2025-08-30 21:51:14 +00:00
Sidecar: Generated code
Kubernetes-commit: c187b38117379777b77656526a4f12da311c8341
This commit is contained in:
parent
d31edad7e2
commit
d63727d2cb
@ -35,6 +35,7 @@ type ContainerApplyConfiguration struct {
|
||||
Env []EnvVarApplyConfiguration `json:"env,omitempty"`
|
||||
Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"`
|
||||
ResizePolicy []ContainerResizePolicyApplyConfiguration `json:"resizePolicy,omitempty"`
|
||||
RestartPolicy *corev1.ContainerRestartPolicy `json:"restartPolicy,omitempty"`
|
||||
VolumeMounts []VolumeMountApplyConfiguration `json:"volumeMounts,omitempty"`
|
||||
VolumeDevices []VolumeDeviceApplyConfiguration `json:"volumeDevices,omitempty"`
|
||||
LivenessProbe *ProbeApplyConfiguration `json:"livenessProbe,omitempty"`
|
||||
@ -160,6 +161,14 @@ func (b *ContainerApplyConfiguration) WithResizePolicy(values ...*ContainerResiz
|
||||
return b
|
||||
}
|
||||
|
||||
// WithRestartPolicy sets the RestartPolicy 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 RestartPolicy field is set to the value of the last call.
|
||||
func (b *ContainerApplyConfiguration) WithRestartPolicy(value corev1.ContainerRestartPolicy) *ContainerApplyConfiguration {
|
||||
b.RestartPolicy = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithVolumeMounts adds the given value to the VolumeMounts field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, values provided by each call will be appended to the VolumeMounts field.
|
||||
|
@ -139,6 +139,14 @@ func (b *EphemeralContainerApplyConfiguration) WithResizePolicy(values ...*Conta
|
||||
return b
|
||||
}
|
||||
|
||||
// WithRestartPolicy sets the RestartPolicy 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 RestartPolicy field is set to the value of the last call.
|
||||
func (b *EphemeralContainerApplyConfiguration) WithRestartPolicy(value corev1.ContainerRestartPolicy) *EphemeralContainerApplyConfiguration {
|
||||
b.RestartPolicy = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithVolumeMounts adds the given value to the VolumeMounts field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, values provided by each call will be appended to the VolumeMounts field.
|
||||
|
@ -35,6 +35,7 @@ type EphemeralContainerCommonApplyConfiguration struct {
|
||||
Env []EnvVarApplyConfiguration `json:"env,omitempty"`
|
||||
Resources *ResourceRequirementsApplyConfiguration `json:"resources,omitempty"`
|
||||
ResizePolicy []ContainerResizePolicyApplyConfiguration `json:"resizePolicy,omitempty"`
|
||||
RestartPolicy *corev1.ContainerRestartPolicy `json:"restartPolicy,omitempty"`
|
||||
VolumeMounts []VolumeMountApplyConfiguration `json:"volumeMounts,omitempty"`
|
||||
VolumeDevices []VolumeDeviceApplyConfiguration `json:"volumeDevices,omitempty"`
|
||||
LivenessProbe *ProbeApplyConfiguration `json:"livenessProbe,omitempty"`
|
||||
@ -160,6 +161,14 @@ func (b *EphemeralContainerCommonApplyConfiguration) WithResizePolicy(values ...
|
||||
return b
|
||||
}
|
||||
|
||||
// WithRestartPolicy sets the RestartPolicy 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 RestartPolicy field is set to the value of the last call.
|
||||
func (b *EphemeralContainerCommonApplyConfiguration) WithRestartPolicy(value corev1.ContainerRestartPolicy) *EphemeralContainerCommonApplyConfiguration {
|
||||
b.RestartPolicy = &value
|
||||
return b
|
||||
}
|
||||
|
||||
// WithVolumeMounts adds the given value to the VolumeMounts field in the declarative configuration
|
||||
// and returns the receiver, so that objects can be build by chaining "With" function invocations.
|
||||
// If called multiple times, values provided by each call will be appended to the VolumeMounts field.
|
||||
|
@ -4312,6 +4312,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
type:
|
||||
namedType: io.k8s.api.core.v1.ResourceRequirements
|
||||
default: {}
|
||||
- name: restartPolicy
|
||||
type:
|
||||
scalar: string
|
||||
- name: securityContext
|
||||
type:
|
||||
namedType: io.k8s.api.core.v1.SecurityContext
|
||||
@ -4729,6 +4732,9 @@ var schemaYAML = typed.YAMLObject(`types:
|
||||
type:
|
||||
namedType: io.k8s.api.core.v1.ResourceRequirements
|
||||
default: {}
|
||||
- name: restartPolicy
|
||||
type:
|
||||
scalar: string
|
||||
- name: securityContext
|
||||
type:
|
||||
namedType: io.k8s.api.core.v1.SecurityContext
|
||||
|
Loading…
Reference in New Issue
Block a user