strategy

package
v0.0.0-...-96e757f Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrDeploymentTimeout = fmt.Errorf("timeout while waiting for deployment to succeed")
)

Functions

func EventStreamMatch

func EventStreamMatch(event *v1.Event, resourceName string) bool

func EventString

func EventString(event *v1.Event) string

func StatusFromEvent

func StatusFromEvent(event *v1.Event, req *pb.DeploymentRequest) *pb.DeploymentStatus

Types

type DeployStrategy

type DeployStrategy interface {
	Deploy(ctx context.Context, resource unstructured.Unstructured) (*unstructured.Unstructured, error)
}

func NewDeployStrategy

func NewDeployStrategy(namespacedResource dynamic.ResourceInterface) DeployStrategy

type NoOp

type NoOp struct{}

func (NoOp) Watch

type WatchStrategy

type WatchStrategy interface {
	Watch(op *operation.Operation, resource unstructured.Unstructured) *pb.DeploymentStatus
}

func NewWatchStrategy

func NewWatchStrategy(gvk schema.GroupVersionKind, client kubeclient.Interface) WatchStrategy

Jump to

Keyboard shortcuts

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