ked

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: MIT Imports: 8 Imported by: 0

README

Documentation

Index

Constants

View Source
const (
	StatePending = iota
	StateDeploying
	StateReplicasUpdated
	StateReplicasReady
	StateInterrupted
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AppTemplate

type AppTemplate interface {
	GetNs() string
	GetDeploymentName() string
	GenerateObjects() ([]*unstructured.Unstructured, error)
}

type Event

type Event struct {
	State int
	Ns    string
	Name  string
	Err   error
	Done  bool
}

type Operator

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

func NewOperator

func NewOperator(prefix string, kc *kube.Client) *Operator

func (*Operator) DeployApp

func (op *Operator) DeployApp(ctx context.Context, app AppTemplate, replace bool, watcher *Watcher) error

func (*Operator) RedeployAll

func (op *Operator) RedeployAll(ctx context.Context, ns string, should func(*unstructured.Unstructured) bool, watcher *Watcher) error

func (*Operator) RedeployApp

func (op *Operator) RedeployApp(ctx context.Context, app AppTemplate, watcher *Watcher) error

type Watcher

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

func NewWatcher

func NewWatcher(deployTimeout time.Duration, checkInterval time.Duration, recvEvent int) *Watcher

func (*Watcher) Events added in v0.1.1

func (w *Watcher) Events() <-chan Event

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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