Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDeploymentTimeout = fmt.Errorf("timeout while waiting for deployment to succeed")
)
Functions ¶
func EventString ¶
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 ¶
func (c NoOp) Watch(op *operation.Operation, resource unstructured.Unstructured) *pb.DeploymentStatus
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
Click to show internal directories.
Click to hide internal directories.