secretsync

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControllerName = "secret-sync"
	// #nosec G101
	SecretName = "policy-encryption-key"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SecretReconciler

type SecretReconciler struct {
	client.Client
	ManagedClient client.Client
	Scheme        *runtime.Scheme
}

func (*SecretReconciler) Reconcile

func (r *SecretReconciler) Reconcile(ctx context.Context, request reconcile.Request) (reconcile.Result, error)

Reconcile handles updates to the "policy-encryption-key" Secret in the managed cluster namespace on the Hub. The method is responsible for synchronizing the Secret to the managed cluster namespace on the managed cluster.

func (*SecretReconciler) SetupWithManager

func (r *SecretReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

Jump to

Keyboard shortcuts

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