clusterpushsecret

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Package clusterpushsecret implements a controller for managing ClusterPushSecret resources, which allow pushing secrets to external systems across multiple namespaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClusterPushSecretCondition

func NewClusterPushSecretCondition(failedNamespaces map[string]error) *v1alpha1.PushSecretStatusCondition

NewClusterPushSecretCondition creates a new PushSecretStatusCondition based on failed namespaces. If there are no failed namespaces, it returns a Ready condition with True status. Otherwise, it returns a Ready condition with False status and an error message.

func SetClusterPushSecretCondition

func SetClusterPushSecretCondition(ces *v1alpha1.ClusterPushSecret, condition v1alpha1.PushSecretStatusCondition)

SetClusterPushSecretCondition updates the conditions on the ClusterPushSecret status and updates the corresponding metrics.

Types

type Reconciler

type Reconciler struct {
	client.Client
	Log             logr.Logger
	Scheme          *runtime.Scheme
	RequeueInterval time.Duration
	Recorder        record.EventRecorder
}

Reconciler reconciles a ClusterPushSecret object.

func (*Reconciler) Reconcile

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

Reconcile handles the reconciliation loop for ClusterPushSecret resources. It ensures that PushSecrets are created in selected namespaces according to the ClusterPushSecret specification and maintains their status.

func (*Reconciler) SetupWithManager

func (r *Reconciler) SetupWithManager(mgr ctrl.Manager, opts controller.Options) error

SetupWithManager sets up the controller with the Manager.

Directories

Path Synopsis
Package cpsmetrics provides functionality for tracking and exposing metrics related to ClusterPushSecret resources.
Package cpsmetrics provides functionality for tracking and exposing metrics related to ClusterPushSecret resources.

Jump to

Keyboard shortcuts

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