controller

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 12, 2025 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LabelReconcilerNameSourceKey = "nebius.ai/helmrelease-trigger-operator"
	HRNameAnnotation             = "nebius.ai/helmreleases-name"
	HRNSAnnotation               = "nebius.ai/helmreleases-namespace"
	HashAnnotation               = "nebius.ai/config-digest"
	DefaultFluxcdNamespace       = "flux-system"
)
View Source
const (
	ConfigMapReconcilerName = "configmap-reconciler"
)
View Source
const (
	HRAutodicoverReconcilerName = "hr-autodiscovery"
)
View Source
const (
	SecretReconcilerName = "secret-reconciler"
)

Variables

This section is empty.

Functions

func ControllerOptions

func ControllerOptions(maxConcurrency int, cacheSyncTimeout time.Duration) controller.Options

Types

type BaseReconciler

type BaseReconciler struct {
	client.Client
	Scheme *runtime.Scheme
}

func (*BaseReconciler) AddAnnotationsAndLabel

func (r *BaseReconciler) AddAnnotationsAndLabel(
	ctx context.Context, resource client.Object, annotations, labels map[string]string) error

func (*BaseReconciler) ExtractFromAnnotations

func (r *BaseReconciler) ExtractFromAnnotations(resource client.Object) ([]string, string, string)

func (*BaseReconciler) GetCurrentDigest

func (r *BaseReconciler) GetCurrentDigest(hr *helmv2.HelmRelease) string

func (*BaseReconciler) GetHelmRelease

func (r *BaseReconciler) GetHelmRelease(ctx context.Context, name, namespace string) (*helmv2.HelmRelease, error)

func (*BaseReconciler) GetNewDigest

func (r *BaseReconciler) GetNewDigest(resource client.Object) string

func (*BaseReconciler) GetOrGenerateAnnotations

func (r *BaseReconciler) GetOrGenerateAnnotations(resource client.Object, hrNameAnnotation, ns, hrName string) map[string]string

func (*BaseReconciler) IsDeployed

func (r *BaseReconciler) IsDeployed(hr *helmv2.HelmRelease) bool

func (*BaseReconciler) PatchHR

func (r *BaseReconciler) PatchHR(ctx context.Context, hr *helmv2.HelmRelease) error

func (*BaseReconciler) ReconcileHRSecretOrConfigMap

func (r *BaseReconciler) ReconcileHRSecretOrConfigMap(ctx context.Context, hr *helmv2.HelmRelease, valueFrom helmv2.ValuesReference) error

func (*BaseReconciler) ReconcileResource

func (r *BaseReconciler) ReconcileResource(
	ctx context.Context,
	req ctrl.Request,
	resource client.Object,
) (ctrl.Result, error)

func (*BaseReconciler) RemoveHRNameFromAnnotations

func (r *BaseReconciler) RemoveHRNameFromAnnotations(
	ctx context.Context, resource client.Object, hrName string,
) error

func (*BaseReconciler) UpdateDigest

func (r *BaseReconciler) UpdateDigest(ctx context.Context, obj client.Object, newDigest string) error

type ConfigMapReconciler

type ConfigMapReconciler struct {
	BaseReconciler
}

ConfigMapReconciler reconciles ConfigMap resources in a Kubernetes cluster.

func NewConfigMapReconciler

func NewConfigMapReconciler(client client.Client, scheme *runtime.Scheme) *ConfigMapReconciler

NewConfigMapReconciler creates a new ConfigMapReconciler instance.

func (*ConfigMapReconciler) Reconcile

func (r *ConfigMapReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*ConfigMapReconciler) SetupWithManager

func (r *ConfigMapReconciler) SetupWithManager(
	mgr ctrl.Manager, maxConcurrency int, cacheSyncTimeout time.Duration) error

type HRAutodicoverReconciler

type HRAutodicoverReconciler struct {
	BaseReconciler
}

func NewHRAutodicoverReconciler

func NewHRAutodicoverReconciler(client client.Client, scheme *runtime.Scheme) *HRAutodicoverReconciler

NewHRAutodicoverReconciler creates a new HRAutodicoverReconciler instance.

func (*HRAutodicoverReconciler) Reconcile

func (r *HRAutodicoverReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*HRAutodicoverReconciler) SetupWithManager

func (r *HRAutodicoverReconciler) SetupWithManager(mgr ctrl.Manager,
	maxConcurrency int, cacheSyncTimeout time.Duration) error

type SecretReconciler

type SecretReconciler struct {
	BaseReconciler
}

SecretReconciler reconciles Secret resources in a Kubernetes cluster.

func NewSecretReconciler

func NewSecretReconciler(client client.Client, scheme *runtime.Scheme) *SecretReconciler

NewSecretReconciler creates a new SecretReconciler instance.

func (*SecretReconciler) Reconcile

func (r *SecretReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)

func (*SecretReconciler) SetupWithManager

func (r *SecretReconciler) SetupWithManager(
	mgr ctrl.Manager, maxConcurrency int, cacheSyncTimeout time.Duration) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL