resourcedistribution

package
v1.7.3 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 38 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GetConditionID         = 0
	CreateConditionID      = 1
	UpdateConditionID      = 2
	DeleteConditionID      = 3
	ConflictConditionID    = 4
	NotExistConditionID    = 5
	NumberOfConditionTypes = 6
	OperationSucceeded     = "Succeeded"
)

Variables

This section is empty.

Functions

func Add

func Add(mgr manager.Manager) error

Add creates a new ResourceDistribution 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 ReconcileResourceDistribution

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

ReconcileResourceDistribution reconciles a ResourceDistribution object

func (*ReconcileResourceDistribution) 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 ResourceDistribution 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.6.4/pkg/reconcile

func (*ReconcileResourceDistribution) SetupWithManager

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

SetupWithManager sets up the controller with the Manager.

type UnexpectedError

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

UnexpectedError is designed to store the information about .status.conditions when error occurs

Jump to

Keyboard shortcuts

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