application

package
v0.0.0-...-9e9d5e8 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Deploy

func Deploy(
	kubeClient *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"`
	Advanced   PatternSettingAdvanced   `json:"advanced,omitempty"`
}

type PatternSettingAdvanced

type PatternSettingAdvanced struct {
	CreateService *bool `json:"create_service,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
	Commands  []string
	Ports     []RolloutEngineContainerPort
	Resources []RolloutEngineContainerResource
	Envs      []v1.EnvVar
}

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
	Metadata    RolloutEngineGenericOptionsMetadata
	Replicas    int
	Containers  []RolloutEngineContainer
	Delete      bool
	Advanced    PatternSettingAdvanced
}

type RolloutEngineGenericOptionsMetadata

type RolloutEngineGenericOptionsMetadata struct {
	Labels      map[string]string
	Annotations map[string]string
}

Directories

Path Synopsis
argo

Jump to

Keyboard shortcuts

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