nodepool

package
v4.0.0-...-919b831 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsInvalidProvider

func IsInvalidProvider(err error) bool

IsInvalidProvider asserts invalidProviderError.

func IsNoResources

func IsNoResources(err error) bool

IsNoResources asserts noResourcesError.

func IsNotFound

func IsNotFound(err error) bool

IsNotFound asserts notFoundError.

Types

type Collection

type Collection struct {
	Items []Nodepool
}

Collection wraps a list of nodepools.

func (*Collection) Object

func (nc *Collection) Object() runtime.Object

type Config

type Config struct {
	Client client.Client
}

type GetOptions

type GetOptions struct {
	Name        string
	ClusterName string
	Provider    string
	Namespace   string
}

type Interface

type Interface interface {
	Get(context.Context, GetOptions) (Resource, error)
}

type Nodepool

type Nodepool struct {
	MachineDeployment *capi.MachineDeployment
	MachinePool       *capiexp.MachinePool

	AWSMachineDeployment  *infrastructurev1alpha3.AWSMachineDeployment
	AzureMachinePool      *capzexp.AzureMachinePool
	CAPAMachinePool       *capaexp.AWSMachinePool
	EKSManagedMachinePool *capaexp.AWSManagedMachinePool
}

Nodepool abstracts away provider-specific node pool resources.

func (*Nodepool) Object

func (n *Nodepool) Object() runtime.Object

type Resource

type Resource interface {
	Object() runtime.Object
}

type Service

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

func New

func New(config Config) (*Service, error)

func (*Service) Get

func (s *Service) Get(ctx context.Context, options GetOptions) (Resource, error)

Jump to

Keyboard shortcuts

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