chainnodeset

package
v1.52.1 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2025 License: MIT Imports: 43 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ChainNodeWaitTimeout = 3 * time.Minute
	ChainNodeKind        = "ChainNode"
)

Variables

This section is empty.

Functions

func AddOrUpdateNodeStatus

func AddOrUpdateNodeStatus(nodeSet *v1.ChainNodeSet, status v1.ChainNodeSetNodeStatus)

func AddOrUpdateUpgrade

func AddOrUpdateUpgrade(upgrades []appsv1.Upgrade, upgrade appsv1.Upgrade) []appsv1.Upgrade

func AddressWithPortFromFullAddress added in v1.49.4

func AddressWithPortFromFullAddress(fullAddress string) string

func ContainsGlobalIngress

func ContainsGlobalIngress(ingresses []v1.GlobalIngressConfig, ingressName string, ignoreServicesOnly bool) bool

func ContainsGroup

func ContainsGroup(groups []v1.NodeGroupSpec, groupName string) bool

func DeleteNodeStatus

func DeleteNodeStatus(nodeSet *v1.ChainNodeSet, name string)

func RemoveIdFromFullAddresses added in v1.49.4

func RemoveIdFromFullAddresses(fullAddresses []string) []string

func WithChainNodeSetLabels

func WithChainNodeSetLabels(nodeSet *v1.ChainNodeSet, additional ...map[string]string) map[string]string

Types

type GenerationChangedPredicate

type GenerationChangedPredicate struct {
	predicate.Funcs
}

func (GenerationChangedPredicate) Create

Create implements default CreateEvent filter

func (GenerationChangedPredicate) Delete

Delete implements default DeleteEvent filter

func (GenerationChangedPredicate) Update

Update implements default UpdateEvent filter for validating generation change

type Reconciler

type Reconciler struct {
	client.Client
	ClientSet  *kubernetes.Clientset
	RestConfig *rest.Config
	Scheme     *runtime.Scheme
	// contains filtered or unexported fields
}

Reconciler reconciles a ChainNode object

func (*Reconciler) Reconcile

func (r *Reconciler) 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.

Jump to

Keyboard shortcuts

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