2026-05-05 12:59:36 +02:00
|
|
|
// SPDX-License-Identifier: BSD-3-Clause
|
|
|
|
|
|
2026-04-23 19:17:53 +02:00
|
|
|
// Code generated by controller-gen. DO NOT EDIT.
|
|
|
|
|
|
|
|
|
|
package v1alpha1
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
v1 "k8s.io/api/core/v1"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// ContainerOverrideApplyConfiguration represents a declarative configuration of the ContainerOverride type for use
|
|
|
|
|
// with apply.
|
|
|
|
|
type ContainerOverrideApplyConfiguration struct {
|
|
|
|
|
// Image overrides the image used by the client.
|
|
|
|
|
Image *string `json:"image,omitempty"`
|
|
|
|
|
Env []v1.EnvVar `json:"env,omitempty"`
|
|
|
|
|
SecurityContext *v1.SecurityContext `json:"securityContext,omitempty"`
|
2026-05-29 10:58:28 +02:00
|
|
|
// StartupProbe overrides the startup probe for the sidecar container.
|
|
|
|
|
StartupProbe *v1.Probe `json:"startupProbe,omitempty"`
|
|
|
|
|
// LivenessProbe overrides the liveness probe for the sidecar container.
|
|
|
|
|
LivenessProbe *v1.Probe `json:"livenessProbe,omitempty"`
|
|
|
|
|
// ReadinessProbe overrides the readiness probe for the sidecar container.
|
|
|
|
|
ReadinessProbe *v1.Probe `json:"readinessProbe,omitempty"`
|
2026-04-23 19:17:53 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// ContainerOverrideApplyConfiguration constructs a declarative configuration of the ContainerOverride type for use with
|
|
|
|
|
// apply.
|
|
|
|
|
func ContainerOverride() *ContainerOverrideApplyConfiguration {
|
|
|
|
|
return &ContainerOverrideApplyConfiguration{}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// WithImage sets the Image 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 Image field is set to the value of the last call.
|
|
|
|
|
func (b *ContainerOverrideApplyConfiguration) WithImage(value string) *ContainerOverrideApplyConfiguration {
|
|
|
|
|
b.Image = &value
|
|
|
|
|
return b
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// WithEnv adds the given value to the Env 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 Env field.
|
|
|
|
|
func (b *ContainerOverrideApplyConfiguration) WithEnv(values ...v1.EnvVar) *ContainerOverrideApplyConfiguration {
|
|
|
|
|
for i := range values {
|
|
|
|
|
b.Env = append(b.Env, values[i])
|
|
|
|
|
}
|
|
|
|
|
return b
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// WithSecurityContext sets the SecurityContext 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 SecurityContext field is set to the value of the last call.
|
|
|
|
|
func (b *ContainerOverrideApplyConfiguration) WithSecurityContext(value v1.SecurityContext) *ContainerOverrideApplyConfiguration {
|
|
|
|
|
b.SecurityContext = &value
|
|
|
|
|
return b
|
|
|
|
|
}
|
2026-05-29 10:58:28 +02:00
|
|
|
|
|
|
|
|
// WithStartupProbe sets the StartupProbe 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 StartupProbe field is set to the value of the last call.
|
|
|
|
|
func (b *ContainerOverrideApplyConfiguration) WithStartupProbe(value v1.Probe) *ContainerOverrideApplyConfiguration {
|
|
|
|
|
b.StartupProbe = &value
|
|
|
|
|
return b
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// WithLivenessProbe sets the LivenessProbe 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 LivenessProbe field is set to the value of the last call.
|
|
|
|
|
func (b *ContainerOverrideApplyConfiguration) WithLivenessProbe(value v1.Probe) *ContainerOverrideApplyConfiguration {
|
|
|
|
|
b.LivenessProbe = &value
|
|
|
|
|
return b
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// WithReadinessProbe sets the ReadinessProbe 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 ReadinessProbe field is set to the value of the last call.
|
|
|
|
|
func (b *ContainerOverrideApplyConfiguration) WithReadinessProbe(value v1.Probe) *ContainerOverrideApplyConfiguration {
|
|
|
|
|
b.ReadinessProbe = &value
|
|
|
|
|
return b
|
|
|
|
|
}
|