Documentation
¶
Index ¶
- Constants
- func ImageAvailable(url string) error
- func IsDeleted(nodeImage *imagev1alpha1.NodeImage) bool
- func ValidURL(url string) error
- type NodeImageReconciler
- func (r *NodeImageReconciler) CreateVsphere(ctx context.Context, nodeImage *imagev1alpha1.NodeImage, url string, ...) error
- func (r *NodeImageReconciler) DeleteVsphere(ctx context.Context, nodeImage *imagev1alpha1.NodeImage, loc string) error
- func (r *NodeImageReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ctrl.Result, error)
- func (r *NodeImageReconciler) SetupWithManager(mgr ctrl.Manager) error
- func (r *NodeImageReconciler) UpdateStatus(ctx context.Context, nodeImage *imagev1alpha1.NodeImage, ...) error
Constants ¶
View Source
const ( NodeImageFinalizer = "image-distribution-operator.finalizers.giantswarm.io/node-image-controller" ProviderVsphere = "capv" )
Variables ¶
This section is empty.
Functions ¶
func ImageAvailable ¶
func IsDeleted ¶
func IsDeleted(nodeImage *imagev1alpha1.NodeImage) bool
Types ¶
type NodeImageReconciler ¶
NodeImageReconciler reconciles a NodeImage object
func (*NodeImageReconciler) CreateVsphere ¶
func (r *NodeImageReconciler) CreateVsphere(ctx context.Context, nodeImage *imagev1alpha1.NodeImage, url string, loc string) error
func (*NodeImageReconciler) DeleteVsphere ¶
func (r *NodeImageReconciler) DeleteVsphere(ctx context.Context, nodeImage *imagev1alpha1.NodeImage, loc string) error
func (*NodeImageReconciler) Reconcile ¶
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 ¶
func (r *NodeImageReconciler) UpdateStatus(ctx context.Context, nodeImage *imagev1alpha1.NodeImage, state imagev1alpha1.NodeImageState) error
Click to show internal directories.
Click to hide internal directories.