image

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NodeImageFinalizer = "image-distribution-operator.finalizers.giantswarm.io/node-image-controller"
)

Variables

This section is empty.

Functions

func DefaultRequeue added in v0.3.0

func DefaultRequeue() reconcile.Result

func ImageAvailable

func ImageAvailable(url string) error

func IsDeleted

func IsDeleted(nodeImage *imagev1alpha1.NodeImage) bool

Types

type NodeImageReconciler

type NodeImageReconciler struct {
	client.Client
	S3Client             *s3.Client
	Providers            map[string]provider.Provider
	ImageRetentionPeriod time.Duration
}

NodeImageReconciler reconciles a NodeImage object

func (*NodeImageReconciler) CreateProvider added in v0.5.0

func (r *NodeImageReconciler) CreateProvider(ctx context.Context, nodeImage *imagev1alpha1.NodeImage, url string, loc string, prov provider.Provider) error

func (*NodeImageReconciler) DeleteProvider added in v0.5.0

func (r *NodeImageReconciler) DeleteProvider(ctx context.Context, nodeImage *imagev1alpha1.NodeImage, loc string, prov provider.Provider) error

func (*NodeImageReconciler) Reconcile

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

Reconcile is part of the main kubernetes reconciliation loop which aims to move the current state of the cluster closer to the desired state. TODO(user): Modify the Reconcile function to compare the state specified by the NodeImage object against the actual cluster state, and then perform operations to make the cluster state reflect the state specified by the user.

For more details, check Reconcile and its Result here: - https://pkg.go.dev/sigs.k8s.io/controller-runtime@v0.20.0/pkg/reconcile

func (*NodeImageReconciler) SetupWithManager

func (r *NodeImageReconciler) SetupWithManager(mgr ctrl.Manager) error

SetupWithManager sets up the controller with the Manager.

func (*NodeImageReconciler) UpdateStatus

Jump to

Keyboard shortcuts

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