nodes

package
v0.9.13 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProviderIdFormat = "claudie://%s"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Deleter

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

func NewDeleter

func NewDeleter(masterNodes, workerNodes []string, cluster *spec.K8Scluster, keepNodePools map[string]struct{}) *Deleter

New returns new Deleter struct, used for node deletion from a k8s cluster masterNodes - master nodes to DELETE workerNodes - worker nodes to DELETE

func (*Deleter) DeleteNodes

func (d *Deleter) DeleteNodes() (*spec.K8Scluster, error)

DeleteNodes deletes nodes specified in d.masterNodes and d.workerNodes return nil if successful, error otherwise

type LonghornReplica

type LonghornReplica struct {
	Metadata struct {
		Name string `yaml:"name"`
	} `yaml:"metadata"`

	Status struct {
		InstanceManagerName string `yaml:"instanceManagerName"`
		CurrentState        string `yaml:"currentState"`
		Started             bool   `yaml:"started"`
	} `yaml:"status"`

	Spec struct {
		NodeID   string `yaml:"nodeID"`
		FailedAt string `yaml:"failedAt"`
	} `yaml:"spec"`
}

type MetadataAnnotations added in v0.7.0

type MetadataAnnotations struct {
	Annotations map[string]string `json:"annotations"`
}

type PatchAnnotations added in v0.7.0

type PatchAnnotations struct {
	MetadataAnnotations `json:"metadata"`
}

type Patcher

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

func NewPatcher

func NewPatcher(cluster *spec.K8Scluster, logger zerolog.Logger) *Patcher

func (*Patcher) Wait added in v0.9.12

func (p *Patcher) Wait() error

type ReplicaList added in v0.9.1

type ReplicaList struct {
	Items []LonghornReplica `yaml:"items"`
}

Jump to

Keyboard shortcuts

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