Documentation
¶
Index ¶
- Constants
- func ControllerOptions(maxConcurrency int, cacheSyncTimeout time.Duration) controller.Options
- type BaseReconciler
- func (r *BaseReconciler) AddAnnotationsAndLabel(ctx context.Context, resource client.Object, ...) error
- func (r *BaseReconciler) ExtractFromAnnotations(resource client.Object) ([]string, string, string)
- func (r *BaseReconciler) GetCurrentDigest(hr *helmv2.HelmRelease) string
- func (r *BaseReconciler) GetHelmRelease(ctx context.Context, name, namespace string) (*helmv2.HelmRelease, error)
- func (r *BaseReconciler) GetNewDigest(resource client.Object) string
- func (r *BaseReconciler) GetOrGenerateAnnotations(resource client.Object, hrNameAnnotation, ns, hrName string) map[string]string
- func (r *BaseReconciler) IsDeployed(hr *helmv2.HelmRelease) bool
- func (r *BaseReconciler) PatchHR(ctx context.Context, hr *helmv2.HelmRelease) error
- func (r *BaseReconciler) ReconcileHRSecretOrConfigMap(ctx context.Context, hr *helmv2.HelmRelease, valueFrom helmv2.ValuesReference) error
- func (r *BaseReconciler) ReconcileResource(ctx context.Context, req ctrl.Request, resource client.Object) (ctrl.Result, error)
- func (r *BaseReconciler) RemoveHRNameFromAnnotations(ctx context.Context, resource client.Object, hrName string) error
- func (r *BaseReconciler) UpdateDigest(ctx context.Context, obj client.Object, newDigest string) error
- type ConfigMapReconciler
- type HRAutodicoverReconciler
- type SecretReconciler
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 ¶
func (*BaseReconciler) AddAnnotationsAndLabel ¶
func (*BaseReconciler) ExtractFromAnnotations ¶
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 (*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 (*BaseReconciler) RemoveHRNameFromAnnotations ¶
func (*BaseReconciler) UpdateDigest ¶
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) SetupWithManager ¶
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) SetupWithManager ¶
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) SetupWithManager ¶
Click to show internal directories.
Click to hide internal directories.