npls

package
v0.0.0-...-e7c744b Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager synchronizes nodepool labels.

func NewManager

func NewManager(client dynamic.Interface, namespace string) Manager

NewManager returns a new Manager.

func (Manager) Delete

func (m Manager) Delete(ctx context.Context, poolName string) error

func (Manager) GetAll

func (m Manager) GetAll(ctx context.Context) (map[string]map[string]string, error)

func (Manager) Sync

func (m Manager) Sync(ctx context.Context, labels map[string]map[string]string) error

func (Manager) SyncOne

func (m Manager) SyncOne(ctx context.Context, poolName string, labels map[string]string) error

Jump to

Keyboard shortcuts

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