reflect

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package reflect contains the business logic for reflecting secrets between namespaces. Importantly, it tackles implementing the functions that will work on the workqueue that is constructed.

Each worker will read from the queue and start in on its reflection to each namespace in due time.

Index

Constants

View Source
const Namespace = "reflector"

Namespace is the namespace for metrics produced by the reflector.

View Source
const SubsystemReflections = "reflections"

SubsystemReflections is the subsystem for reflections

Variables

This section is empty.

Functions

This section is empty.

Types

type Reflector

type Reflector interface {
	Start(ctx context.Context) error
}

Reflector is the core reflector interface which takes care of watching and syncing secrets

func NewReflector

func NewReflector(
	logger zerolog.Logger,
	clientset kubernetes.Interface,
	reflectConcurrency int,
	workerConcurrency int,
	retries int,
	cascadeDelete bool,
	namespace string,
) (Reflector, error)

NewReflector creates a new reflector for reflecting secrets to other namespaces

Jump to

Keyboard shortcuts

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