imagepulljob

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2024 License: Apache-2.0 Imports: 37 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// SourceSecretKeyAnno is an annotations instead of label
	// because the length of key may be more than 64.
	SourceSecretKeyAnno = "imagepulljobs.kruise.io/source-key"
	// SourceSecretUIDLabelKey is designed to select target via source secret.
	SourceSecretUIDLabelKey = "imagepulljobs.kruise.io/source-uid"
	// TargetOwnerReferencesAnno records the keys of imagePullJobs that refers
	// the target secret. If TargetOwnerReferencesAnno is empty, means the target
	// secret should be deleted.
	TargetOwnerReferencesAnno = "imagepulljobs.kruise.io/references"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new ImagePullJob Controller and adds it to the Manager with default RBAC. The Manager will set fields on the Controller and Start it when the Manager is Started.

Types

type ReconcileImagePullJob

type ReconcileImagePullJob struct {
	client.Client
	// contains filtered or unexported fields
}

ReconcileImagePullJob reconciles a ImagePullJob object

func (*ReconcileImagePullJob) Reconcile

func (r *ReconcileImagePullJob) Reconcile(_ context.Context, request reconcile.Request) (res reconcile.Result, err error)

Reconcile reads that state of the cluster for a ImagePullJob object and makes changes based on the state read and what is in the ImagePullJob.Spec Automatically generate RBAC rules to allow the Controller to read and write Deployments

Jump to

Keyboard shortcuts

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