secret

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Overview

Package secret provides object-manager helpers for copying Kubernetes secrets.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ManagePullSecret

func ManagePullSecret(targetCluster objectmanager.Cluster, config CopyConfig) error

ManagePullSecret registers an image-pull secret copy on a target cluster.

func NewCleaner

func NewCleaner(cluster objectmanager.Cluster, serviceProvider, namespace string, secretsToKeep []corev1.LocalObjectReference) objectmanager.Cleaner

NewCleaner removes managed pull secrets not included in secretsToKeep.

func PrefixName

func PrefixName(name, prefix string) (string, error)

PrefixName prefixes a secret name and limits it to the Kubernetes name length.

Types

type CopyConfig

type CopyConfig struct {
	SourceClient    client.Client
	SourceName      string
	SourceNamespace string
	TargetNamespace string
	TargetName      string
}

CopyConfig holds the configuration for copying a secret between clusters or namespaces.

Jump to

Keyboard shortcuts

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