addon

package
v0.167.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: Apache-2.0 Imports: 27 Imported by: 4 modules, 12 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAddonTasks

func CreateAddonTasks(ctx context.Context, cfg *api.ClusterConfig, clusterProvider *eks.ClusterProvider, forceAll bool, timeout time.Duration) (*tasks.TaskTree, *tasks.TaskTree)

Types

type CreateClientSet added in v0.167.0

type CreateClientSet func() (kubeclient.Interface, error)

CreateClientSet creates a Kubernetes ClientSet.

type Issue added in v0.98.0

type Issue struct {
	Code        string
	Message     string
	ResourceIDs []string
}

type Manager

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

func New

func New(clusterConfig *api.ClusterConfig, eksAPI awsapi.EKS, stackManager StackManager, withOIDC bool, oidcManager *iamoidc.OpenIDConnectManager, createClientSet CreateClientSet) (*Manager, error)

func (*Manager) Create

func (a *Manager) Create(ctx context.Context, addon *api.Addon, waitTimeout time.Duration) error

func (*Manager) Delete

func (a *Manager) Delete(ctx context.Context, addon *api.Addon) error

func (*Manager) DeleteWithPreserve added in v0.63.0

func (a *Manager) DeleteWithPreserve(ctx context.Context, addon *api.Addon) error

func (*Manager) DescribeAllVersions

func (a *Manager) DescribeAllVersions(ctx context.Context, addon *api.Addon) (string, error)

func (*Manager) DescribeVersions

func (a *Manager) DescribeVersions(ctx context.Context, addon *api.Addon) (string, error)

func (*Manager) Get

func (a *Manager) Get(ctx context.Context, addon *api.Addon) (Summary, error)

func (*Manager) GetAll

func (a *Manager) GetAll(ctx context.Context) ([]Summary, error)

func (*Manager) Update

func (a *Manager) Update(ctx context.Context, addon *api.Addon, waitTimeout time.Duration) error

type Remover added in v0.161.0

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

func NewRemover added in v0.161.0

func NewRemover(stackManager StackManager) *Remover

func (*Remover) DeleteAddonIAMTasks added in v0.161.0

func (ar *Remover) DeleteAddonIAMTasks(ctx context.Context, wait bool) (*tasks.TaskTree, error)

type StackManager

type StackManager interface {
	CreateStack(ctx context.Context, name string, stack builder.ResourceSetReader, tags, parameters map[string]string, errs chan error) error
	DeleteStackBySpec(ctx context.Context, s *cfntypes.Stack) (*cfntypes.Stack, error)
	DeleteStackBySpecSync(ctx context.Context, s *cfntypes.Stack, errs chan error) error
	DescribeStack(ctx context.Context, i *cfntypes.Stack) (*cfntypes.Stack, error)
	GetIAMAddonsStacks(ctx context.Context) ([]*cfntypes.Stack, error)
	UpdateStack(ctx context.Context, options manager.UpdateStackOptions) error
}

StackManager manages CloudFormation stacks for addons.

type Summary

type Summary struct {
	Name                string
	Version             string
	NewerVersion        string
	IAMRole             string
	Status              string
	ConfigurationValues string
	Issues              []Issue
}

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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