controller

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 26 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 {
	// contains filtered or unexported fields
}

AcrPullBindingReconciler reconciles a AcrPullBinding object

func NewV1beta1Reconciler added in v0.1.5

func NewV1beta1Reconciler(opts *V1beta1ReconcilerOpts) *AcrPullBindingReconciler

func (AcrPullBindingReconciler) Reconcile

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

func (*AcrPullBindingReconciler) SetupWithManager

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

type CoreOpts added in v0.1.5

type CoreOpts struct {
	Client crclient.Client
	Logger logr.Logger
	Scheme *runtime.Scheme
	// contains filtered or unexported fields
}

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

type PullBindingReconciler added in v0.1.5

type PullBindingReconciler struct {
	// contains filtered or unexported fields
}

PullBindingReconciler reconciles AcrPullBindings

func NewV1beta2Reconciler added in v0.1.5

func NewV1beta2Reconciler(opts *V1beta2ReconcilerOpts) *PullBindingReconciler

func (PullBindingReconciler) Reconcile added in v0.1.5

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

func (*PullBindingReconciler) SetupWithManager added in v0.1.5

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

type ServiceAccountTokenMinter added in v0.1.5

type ServiceAccountTokenMinter func(ctx context.Context, serviceAccountNamespace, serviceAccountName string) (*authenticationv1.TokenRequest, error)

type V1beta1ReconcilerOpts added in v0.1.5

type V1beta1ReconcilerOpts struct {
	CoreOpts

	Auth                             authorizer.Interface
	DefaultManagedIdentityResourceID string
	DefaultManagedIdentityClientID   string
	DefaultACRServer                 string
}

V1beta1ReconcilerOpts configures the inputs for reconciling v1beta2 pull bindings

type V1beta2ReconcilerOpts added in v0.1.5

type V1beta2ReconcilerOpts struct {
	CoreOpts

	TTLRotationFraction         float64
	ServiceAccountClient        corev1client.ServiceAccountsGetter
	ServiceAccountTokenAudience string
	// contains filtered or unexported fields
}

V1beta2ReconcilerOpts configures the inputs for reconciling v1beta2 pull bindings

Jump to

Keyboard shortcuts

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