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 ¶
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. |