stack

package
v0.0.0-...-cce75fc Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	NameField = "name"

	YamlField    = "yaml"
	ComposeField = "compose"
)

Variables

This section is empty.

Functions

func AddDependentServicesIfNotPresent

func AddDependentServicesIfNotPresent(ctx context.Context, s *model.Stack, svcsToDeploy []string, c kubernetes.Interface) []string

AddDependentServicesIfNotPresent adds dependands services to deploy

func Destroy

func Destroy(ctx context.Context, s *model.Stack, removeVolumes bool, timeout time.Duration) error

Destroy destroys a stack

func DisplayNotSupportedFieldsWarnings

func DisplayNotSupportedFieldsWarnings(warnings []string)

func DisplaySanitizedServicesWarnings

func DisplaySanitizedServicesWarnings(previousToNewNameMap map[string]string)

func DisplayVolumeMountWarnings

func DisplayVolumeMountWarnings(warnings []string)

func DisplayWarnings

func DisplayWarnings(s *model.Stack)

func ListEndpoints

func ListEndpoints(ctx context.Context, stack *model.Stack) error

func ValidateDefinedServices

func ValidateDefinedServices(s *model.Stack, servicesToDeploy []string) error

ValidateDefinedServices checks that the services to deploy are in the compose file

Types

type DeployOptions

type DeployOptions struct {
	Name             string
	Namespace        string
	Progress         string
	StackPaths       []string
	ServicesToDeploy []string
	Timeout          time.Duration
	ForceBuild       bool
	Wait             bool
	NoCache          bool
	InsidePipeline   bool
}

DeployOptions represents the different options available for stack commands

type Divert

type Divert interface {
	UpdatePod(spec apiv1.PodSpec) apiv1.PodSpec
}

Divert is the interface for the divert operations needed for stacks command

type Stack

type Stack struct {
	K8sClient        kubernetes.Interface
	Config           *rest.Config
	AnalyticsTracker buildTrackerInterface
	Insights         buildTrackerInterface
	IoCtrl           *io.Controller
	Divert           Divert
}

Stack is the executor of stack commands

func (*Stack) Deploy

func (sd *Stack) Deploy(ctx context.Context, s *model.Stack, options *DeployOptions) error

Deploy deploys a stack

Jump to

Keyboard shortcuts

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