runcontext

package
v2.11.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pipelines

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

Pipelines encapsulates multiple config pipelines

func NewPipelines

func NewPipelines(pipelinesByConfig map[string]latest.Pipeline, orderedConfigs []string) Pipelines

func (Pipelines) All

func (ps Pipelines) All() []latest.Pipeline

All returns all config pipelines.

func (Pipelines) AllOrderedConfigNames

func (ps Pipelines) AllOrderedConfigNames() []string

Returns the config names in the correct dependency order to be mapped against their proper pipeline.

func (Pipelines) Artifacts

func (ps Pipelines) Artifacts() []*latest.Artifact

func (Pipelines) DeployConfigs

func (ps Pipelines) DeployConfigs() []latest.DeployConfig

TODO: Clean up code duplication

func (Pipelines) Deployers

func (ps Pipelines) Deployers() []latest.DeployConfig

func (Pipelines) GetForConfigName

func (ps Pipelines) GetForConfigName(configName string) latest.Pipeline

Returns a pipeline given its associated config name.

func (Pipelines) Head

func (ps Pipelines) Head() latest.Pipeline

Head returns the first `latest.Pipeline`.

func (Pipelines) IsMultiCluster added in v2.2.0

func (ps Pipelines) IsMultiCluster() bool

IsMultiPipeline returns true if there are more than one target kubernetes clusters.

func (Pipelines) IsMultiPipeline

func (ps Pipelines) IsMultiPipeline() bool

IsMultiPipeline returns true if there are more than one constituent skaffold pipelines.

func (Pipelines) PortForwardResources

func (ps Pipelines) PortForwardResources() []*latest.PortForwardResource

func (Pipelines) Renderers

func (ps Pipelines) Renderers() []latest.RenderConfig

func (Pipelines) Select

func (ps Pipelines) Select(imageName string) (latest.Pipeline, bool)

Select returns the first `latest.Pipeline` that matches the given artifact `imageName`.

func (Pipelines) StatusCheckDeadlineSeconds

func (ps Pipelines) StatusCheckDeadlineSeconds() int

func (Pipelines) StatusCheckTolerateFailures

func (ps Pipelines) StatusCheckTolerateFailures() bool

func (Pipelines) TestCases

func (ps Pipelines) TestCases() []*latest.TestCase

func (Pipelines) TransformAllowList

func (ps Pipelines) TransformAllowList() []latest.ResourceFilter

TransformAllowList returns combined allowlist from pipelines

func (Pipelines) TransformDenyList

func (ps Pipelines) TransformDenyList() []latest.ResourceFilter

TransformDenyList returns combined denylist from pipelines

type RunContext

type RunContext struct {
	Opts               config.SkaffoldOptions
	Pipelines          Pipelines
	KubeContext        string
	Namespaces         []string
	WorkingDir         string
	InsecureRegistries map[string]bool
	Cluster            config.Cluster
	RunID              string
}

func GetRunContext

func GetRunContext(ctx context.Context, opts config.SkaffoldOptions, configs []schemaUtil.VersionedConfig) (*RunContext, error)

func (*RunContext) AddSkaffoldLabels

func (rc *RunContext) AddSkaffoldLabels() bool

AddSkaffoldLabels tells the Runner whether to add skaffold-specific labels. We only ever skip adding labels during a `skaffold render`.

func (*RunContext) Artifacts

func (rc *RunContext) Artifacts() []*latest.Artifact

func (*RunContext) AutoBuild

func (rc *RunContext) AutoBuild() bool

func (*RunContext) AutoDeploy

func (rc *RunContext) AutoDeploy() bool

func (*RunContext) AutoSync

func (rc *RunContext) AutoSync() bool

func (*RunContext) BuildConcurrency

func (rc *RunContext) BuildConcurrency() int

func (*RunContext) CacheArtifacts

func (rc *RunContext) CacheArtifacts() bool

func (*RunContext) CacheFile

func (rc *RunContext) CacheFile() string

func (*RunContext) CheckClusterNodePlatforms

func (rc *RunContext) CheckClusterNodePlatforms() bool

func (*RunContext) ConfigurationFile

func (rc *RunContext) ConfigurationFile() string

func (*RunContext) ContainerDebugging

func (rc *RunContext) ContainerDebugging() bool

func (*RunContext) CustomLabels

func (rc *RunContext) CustomLabels() []string

func (*RunContext) CustomTag

func (rc *RunContext) CustomTag() string

func (*RunContext) DefaultPipeline

func (rc *RunContext) DefaultPipeline() latest.Pipeline

func (*RunContext) DefaultRepo

func (rc *RunContext) DefaultRepo() *string

func (*RunContext) DeployConfigs

func (rc *RunContext) DeployConfigs() []latest.DeployConfig

func (*RunContext) Deployers

func (rc *RunContext) Deployers() []latest.DeployConfig

func (*RunContext) DigestSource

func (rc *RunContext) DigestSource() string

func (*RunContext) DisableMultiPlatformBuild

func (rc *RunContext) DisableMultiPlatformBuild() bool

func (*RunContext) DryRun

func (rc *RunContext) DryRun() bool

func (*RunContext) EnableGKEARMNodeTolerationInRenderedManifests

func (rc *RunContext) EnableGKEARMNodeTolerationInRenderedManifests() bool

func (*RunContext) EnablePlatformNodeAffinityInRenderedManifests

func (rc *RunContext) EnablePlatformNodeAffinityInRenderedManifests() bool

func (*RunContext) FastFailStatusCheck

func (rc *RunContext) FastFailStatusCheck() bool

func (*RunContext) ForceDeploy

func (rc *RunContext) ForceDeploy() bool

func (*RunContext) ForceLoadImages

func (rc *RunContext) ForceLoadImages() bool

func (*RunContext) GetCluster

func (rc *RunContext) GetCluster() config.Cluster

func (*RunContext) GetInsecureRegistries

func (rc *RunContext) GetInsecureRegistries() map[string]bool

func (*RunContext) GetKubeConfig

func (rc *RunContext) GetKubeConfig() string

func (*RunContext) GetKubeContext

func (rc *RunContext) GetKubeContext() string

func (*RunContext) GetKubeNamespace

func (rc *RunContext) GetKubeNamespace() string

func (*RunContext) GetNamespace

func (rc *RunContext) GetNamespace() string

func (*RunContext) GetNamespaces

func (rc *RunContext) GetNamespaces() []string

func (*RunContext) GetPipelines

func (rc *RunContext) GetPipelines() []latest.Pipeline

func (*RunContext) GetRunID

func (rc *RunContext) GetRunID() string

func (*RunContext) GetWorkingDir

func (rc *RunContext) GetWorkingDir() string

func (*RunContext) GlobalConfig

func (rc *RunContext) GlobalConfig() string

func (*RunContext) HydratedManifests

func (rc *RunContext) HydratedManifests() []string

func (*RunContext) IsDefaultKubeContext

func (rc *RunContext) IsDefaultKubeContext() bool

func (*RunContext) IsMultiCluster added in v2.2.0

func (rc *RunContext) IsMultiCluster() bool

func (*RunContext) IsMultiConfig

func (rc *RunContext) IsMultiConfig() bool

func (*RunContext) IsTestPhaseActive

func (rc *RunContext) IsTestPhaseActive() bool

func (*RunContext) IterativeStatusCheck

func (rc *RunContext) IterativeStatusCheck() bool

func (*RunContext) JSONParseConfig

func (rc *RunContext) JSONParseConfig() latest.JSONParseConfig

func (*RunContext) LoadImages

func (rc *RunContext) LoadImages() bool

func (*RunContext) MinikubeProfile

func (rc *RunContext) MinikubeProfile() string

func (*RunContext) Mode

func (rc *RunContext) Mode() config.RunMode

func (*RunContext) MultiLevelRepo

func (rc *RunContext) MultiLevelRepo() *bool

func (*RunContext) Muted

func (rc *RunContext) Muted() config.Muted

func (*RunContext) NoPruneChildren

func (rc *RunContext) NoPruneChildren() bool

func (*RunContext) Notification

func (rc *RunContext) Notification() bool

func (*RunContext) PipelineForImage

func (rc *RunContext) PipelineForImage(imageName string) (latest.Pipeline, bool)

func (*RunContext) PortForward

func (rc *RunContext) PortForward() bool

func (*RunContext) PortForwardOptions

func (rc *RunContext) PortForwardOptions() config.PortForwardOptions

func (*RunContext) PortForwardResources

func (rc *RunContext) PortForwardResources() []*latest.PortForwardResource

func (*RunContext) Prune

func (rc *RunContext) Prune() bool

func (*RunContext) PushImages

func (rc *RunContext) PushImages() config.BoolOrUndefined

func (*RunContext) RPCHTTPPort

func (rc *RunContext) RPCHTTPPort() *int

func (*RunContext) RPCPort

func (rc *RunContext) RPCPort() *int

func (*RunContext) RenderOnly

func (rc *RunContext) RenderOnly() bool

func (*RunContext) RenderOutput

func (rc *RunContext) RenderOutput() string

func (*RunContext) Renderers

func (rc *RunContext) Renderers() []latest.RenderConfig

func (*RunContext) SkipTests

func (rc *RunContext) SkipTests() bool

func (*RunContext) StatusCheck

func (rc *RunContext) StatusCheck() *bool

func (*RunContext) StatusCheckCRDsFile added in v2.7.0

func (rc *RunContext) StatusCheckCRDsFile() string

func (*RunContext) StatusCheckDeadlineSeconds

func (rc *RunContext) StatusCheckDeadlineSeconds() int

func (*RunContext) StatusCheckTolerateFailures

func (rc *RunContext) StatusCheckTolerateFailures() bool

func (*RunContext) Tail

func (rc *RunContext) Tail() bool

func (*RunContext) TestCases

func (rc *RunContext) TestCases() []*latest.TestCase

func (*RunContext) TransformAllowList

func (rc *RunContext) TransformAllowList() []latest.ResourceFilter

func (*RunContext) TransformDenyList

func (rc *RunContext) TransformDenyList() []latest.ResourceFilter

func (*RunContext) TransformRulesFile

func (rc *RunContext) TransformRulesFile() string

func (*RunContext) Trigger

func (rc *RunContext) Trigger() string

func (*RunContext) UsingLegacyHelmDeploy

func (rc *RunContext) UsingLegacyHelmDeploy() bool

func (*RunContext) VerifyDockerNetwork

func (rc *RunContext) VerifyDockerNetwork() string

func (*RunContext) WaitForDeletions

func (rc *RunContext) WaitForDeletions() config.WaitForDeletions

func (*RunContext) WatchPollInterval

func (rc *RunContext) WatchPollInterval() int

Jump to

Keyboard shortcuts

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