Documentation
¶
Index ¶
- Variables
- func ApplyOptionsToContainers(containers []corev1.Container, options ...ContainerOption) []corev1.Container
- func PerformFinalizer[T FinalizerObject](ctx context.Context, t T, finalizerId string, ...) (bool, error)
- func ReconcileChildResource[T client.Object](ctx context.Context, c client.Client, desired client.Object, ...) error
- type ContainerOption
- func ContainerWithAdditionalArgs(args ...string) ContainerOption
- func ContainerWithAdditionalEnvVars(envs ...corev1.EnvVar) ContainerOption
- func ContainerWithAdditionalVolumeMounts(mounts ...corev1.VolumeMount) ContainerOption
- func ContainerWithPodSecurityStandardRestricted() ContainerOption
- func ContainerWithWorkingDir(dir string) ContainerOption
- type ContainerRunRequest
- type FinalizerObject
- type ReconcileFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCreation = goerrors.New("error creating resource")
Functions ¶
func ApplyOptionsToContainers ¶
func ApplyOptionsToContainers( containers []corev1.Container, options ...ContainerOption, ) []corev1.Container
func PerformFinalizer ¶
Types ¶
type ContainerOption ¶
func ContainerWithAdditionalArgs ¶
func ContainerWithAdditionalArgs(args ...string) ContainerOption
func ContainerWithAdditionalEnvVars ¶
func ContainerWithAdditionalEnvVars(envs ...corev1.EnvVar) ContainerOption
func ContainerWithAdditionalVolumeMounts ¶
func ContainerWithAdditionalVolumeMounts(mounts ...corev1.VolumeMount) ContainerOption
func ContainerWithPodSecurityStandardRestricted ¶
func ContainerWithPodSecurityStandardRestricted() ContainerOption
func ContainerWithWorkingDir ¶
func ContainerWithWorkingDir(dir string) ContainerOption
type ContainerRunRequest ¶
type FinalizerObject ¶
type FinalizerObject interface {
// GetObjectKind returns the ObjectKind of the object.
// from [k8s.io/apimachinery/pkg/apis/meta/v1.TypeMeta]
GetObjectKind() schema.ObjectKind
// GetName returns the name of the object.
// From [k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta]
GetName() string
// GetDeletionTimestamp returns the deletion timestamp
// if the object has been deleted. If the object hasn't been
// deleted, nil is returned.
// From [k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta]
GetDeletionTimestamp() *v1.Time
// GetFinalizers returns the finalizers of the object.
// From [k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta]
GetFinalizers() []string
// SetFinalizers sets the finalizers of the object.
// From [k8s.io/apimachinery/pkg/apis/meta/v1.ObjectMeta]
SetFinalizers(finalizers []string)
}
Click to show internal directories.
Click to hide internal directories.