managed

package
v0.0.0-...-1dd5257 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFound

func IsNotFound(err error) bool

Types

type HealthIssue

type HealthIssue struct {
	Message string
	Code    string
}

HealthIssue represents a health issue with a managed nodegroup

type Service

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

A Service provides methods for managing managed nodegroups

func NewService

func NewService(eksAPI awsapi.EKS, ec2API awsapi.EC2,
	stackCollection manager.StackManager, clusterName string) *Service

func (*Service) GetHealth

func (m *Service) GetHealth(ctx context.Context, nodeGroupName string) ([]HealthIssue, error)

GetHealth fetches the health status for a nodegroup

func (*Service) GetLabels

func (m *Service) GetLabels(ctx context.Context, nodeGroupName string) (map[string]string, error)

GetLabels fetches the labels for a nodegroup

func (*Service) UpdateLabels

func (m *Service) UpdateLabels(ctx context.Context, nodeGroupName string, labelsToAdd map[string]string, labelsToRemove []string) error

UpdateLabels adds or removes labels for a nodegroup

Jump to

Keyboard shortcuts

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