application

package
v0.5.28 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deploy

func Deploy(
	kclient *meshkube.Client,
	oamComp v1alpha1.Component,
	oamConfig v1alpha1.Configuration,
	isDel bool,
) error

Deploy will deploy the application

Types

type ArgoRollout

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

func (*ArgoRollout) Canary

Canary performs canary rollout of the given application

func (*ArgoRollout) Install

func (ar *ArgoRollout) Install() error

Install installs argo rollout in the given namespace

func (*ArgoRollout) Native

Native will do simple rollout

type PatternConfiguration

type PatternConfiguration struct {
	RolloutStrategy *PatternConfigurationRolloutStrategy `json:"rollout_strategy,omitempty"`
}

type PatternConfigurationRolloutStrategy

type PatternConfigurationRolloutStrategy struct {
}

type PatternSetting

type PatternSetting struct {
	Replicas   int                      `json:"replicas,omitempty"`
	Mesh       serviceMesh              `json:"mesh,omitempty"`
	Containers []RolloutEngineContainer `json:"containers,omitempty"`
}

type RolloutEngine

type RolloutEngine interface {
	// Canary(RolloutEngineCanaryOptions) error
	Install() error
	Native(RolloutEngineGenericOptions) error
}

func NewRolloutEngine

func NewRolloutEngine(kubeclient *meshkube.Client, typ string) (RolloutEngine, error)

type RolloutEngineCanaryOptions

type RolloutEngineCanaryOptions struct {
	RolloutEngineGenericOptions
	Steps []RolloutEngineCanaryStep
}

type RolloutEngineCanaryStep

type RolloutEngineCanaryStep struct {
	SetWeight int
	Steps     []RolloutEngineCanaryStepPause
}

type RolloutEngineCanaryStepPause

type RolloutEngineCanaryStepPause struct {
	Duration int
}

type RolloutEngineContainer

type RolloutEngineContainer struct {
	Name      string
	Image     string
	Ports     []RolloutEngineContainerPort
	Resources []RolloutEngineContainerResource
}

type RolloutEngineContainerPort

type RolloutEngineContainerPort struct {
	Name          string
	ContainerPort int
}

type RolloutEngineContainerResource

type RolloutEngineContainerResource struct {
	v1.ResourceRequirements
}

type RolloutEngineGenericOptions

type RolloutEngineGenericOptions struct {
	Name        string
	Namespace   string
	ServiceMesh string
	Replicas    int
	Containers  []RolloutEngineContainer
	Delete      bool
}

Directories

Path Synopsis
argo

Jump to

Keyboard shortcuts

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