Documentation
¶
Overview ¶
nolint:gofumpt
nolint:gofumpt
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MutateFuncFor ¶
func MutateFuncFor(existing, desired client.Object) controllerutil.MutateFn
MutateFuncFor returns a mutate function based on the existing resource's concrete type. It supports currently only the following types or else panics: - Service - Ingress - TargetAllocator In order for the operator to reconcile other types, they must be added here. The function returned takes no arguments but instead uses the existing and desired inputs here. Existing is expected to be set by the controller-runtime package through a client get call.
func ObjectIsNotNil ¶
ObjectIsNotNil ensures that we only create an object IFF it isn't nil, and it's concrete type isn't nil either. This works around the Go type system by using reflection to verify its concrete type isn't nil.
Types ¶
type ImmutableFieldChangeError ¶
type ImmutableFieldChangeError struct {
Field string
}
var (
ErrImmutableChange *ImmutableFieldChangeError
)
func (*ImmutableFieldChangeError) Error ¶
func (e *ImmutableFieldChangeError) Error() string
type K8sManifestFactory ¶
type K8sManifestFactory[Params any] ManifestFactory[client.Object, Params]
func Factory ¶
func Factory[T client.Object, Params any](f ManifestFactory[T, Params]) K8sManifestFactory[Params]
func FactoryWithoutError ¶
func FactoryWithoutError[T client.Object, Params any](f SimpleManifestFactory[T, Params]) K8sManifestFactory[Params]
type ManifestFactory ¶
type Params ¶
type Params struct {
Client client.Client
Scheme *runtime.Scheme
Log *zap.Logger
OtelMdaiIngressComb mdaiv1.OtelMdaiIngressComb
}
Params holds the reconciliation-specific parameters.