controller

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ACRPullBindingLabel is a label on Secrets that holds the name of the ACRPullBinding for which the Secret holds a pull credential
	ACRPullBindingLabel = "acr.microsoft.com/binding"
)

Variables

This section is empty.

Functions

func LegacyPullSecretsPresent added in v0.1.4

func LegacyPullSecretsPresent(pullBindings msiacrpullv1beta1.AcrPullBindingList, secrets corev1.SecretList) bool

LegacyPullSecretsPresent determines if any legacy pull secrets still exist on the cluster.

Types

type AcrPullBindingReconciler

type AcrPullBindingReconciler struct {
	client.Client
	Log                              logr.Logger
	Scheme                           *runtime.Scheme
	Auth                             authorizer.Interface
	DefaultManagedIdentityResourceID string
	DefaultManagedIdentityClientID   string
	DefaultACRServer                 string
	// contains filtered or unexported fields
}

AcrPullBindingReconciler reconciles a AcrPullBinding object

func (*AcrPullBindingReconciler) Reconcile

func (*AcrPullBindingReconciler) SetupWithManager

func (r *AcrPullBindingReconciler) SetupWithManager(ctx context.Context, mgr ctrl.Manager) error

type LegacyTokenCleanupController added in v0.1.4

type LegacyTokenCleanupController struct {
	Client client.Client
	Log    logr.Logger
}

func (*LegacyTokenCleanupController) Reconcile added in v0.1.4

Reconcile cleans up legacy ACR pull token secrets and references to them from the cluster if new tokens have been generated.

func (*LegacyTokenCleanupController) SetupWithManager added in v0.1.4

func (c *LegacyTokenCleanupController) SetupWithManager(_ context.Context, mgr ctrl.Manager) error

Jump to

Keyboard shortcuts

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