rollout

package
v0.3.8 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallEventWebhook added in v0.3.3

func CallEventWebhook(r *v1alpha1.RolloutTrait, webhookURL, message, eventtype string) error

CallEventWebhook does a HTTP POST to an external service with meta data

func CallWebhook added in v0.3.3

func CallWebhook(name string, namespace string, phase v1alpha1.RollingState, w v1alpha1.RolloutWebhook) error

CallWebhook does a HTTP POST to an external service and returns an error if the response status code is non-2xx

Types

type Controller added in v0.3.3

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

Controller is the controller that controls the rollout plan resource

func NewRolloutPlanController added in v0.3.3

func NewRolloutPlanController(client client.Client, parentController oam.Object, recorder event.Recorder,
	rolloutSpec *v1alpha1.RolloutPlan,
	rolloutStatus v1alpha1.RolloutStatus, targetWorkload,
	sourceWorkload *unstructured.Unstructured) *Controller

NewRolloutPlanController creates a RolloutPlanController

func (*Controller) GetWorkloadController added in v0.3.3

func (r *Controller) GetWorkloadController() (workloads.WorkloadController, error)

GetWorkloadController pick the right workload controller to work on the workload

func (*Controller) Reconcile added in v0.3.3

func (r *Controller) Reconcile(ctx context.Context) (res reconcile.Result, status v1alpha1.RolloutStatus)

Reconcile reconciles a rollout plan

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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