Documentation ¶
Index ¶
- type Pipelines
- func (ps Pipelines) All() []latest.Pipeline
- func (ps Pipelines) AllOrderedConfigNames() []string
- func (ps Pipelines) Artifacts() []*latest.Artifact
- func (ps Pipelines) DeployConfigs() []latest.DeployConfig
- func (ps Pipelines) Deployers() []latest.DeployConfig
- func (ps Pipelines) GetForConfigName(configName string) latest.Pipeline
- func (ps Pipelines) Head() latest.Pipeline
- func (ps Pipelines) IsMultiCluster() bool
- func (ps Pipelines) IsMultiPipeline() bool
- func (ps Pipelines) PortForwardResources() []*latest.PortForwardResource
- func (ps Pipelines) Renderers() []latest.RenderConfig
- func (ps Pipelines) Select(imageName string) (latest.Pipeline, bool)
- func (ps Pipelines) StatusCheckDeadlineSeconds() int
- func (ps Pipelines) StatusCheckTolerateFailures() bool
- func (ps Pipelines) TestCases() []*latest.TestCase
- func (ps Pipelines) TransformAllowList() []latest.ResourceFilter
- func (ps Pipelines) TransformDenyList() []latest.ResourceFilter
- type RunContext
- func (rc *RunContext) AddSkaffoldLabels() bool
- func (rc *RunContext) Artifacts() []*latest.Artifact
- func (rc *RunContext) AutoBuild() bool
- func (rc *RunContext) AutoDeploy() bool
- func (rc *RunContext) AutoSync() bool
- func (rc *RunContext) BuildConcurrency() int
- func (rc *RunContext) CacheArtifacts() bool
- func (rc *RunContext) CacheFile() string
- func (rc *RunContext) CheckClusterNodePlatforms() bool
- func (rc *RunContext) ConfigurationFile() string
- func (rc *RunContext) ContainerDebugging() bool
- func (rc *RunContext) CustomLabels() []string
- func (rc *RunContext) CustomTag() string
- func (rc *RunContext) DefaultPipeline() latest.Pipeline
- func (rc *RunContext) DefaultRepo() *string
- func (rc *RunContext) DeployConfigs() []latest.DeployConfig
- func (rc *RunContext) Deployers() []latest.DeployConfig
- func (rc *RunContext) DigestSource() string
- func (rc *RunContext) DisableMultiPlatformBuild() bool
- func (rc *RunContext) DryRun() bool
- func (rc *RunContext) EnableGKEARMNodeTolerationInRenderedManifests() bool
- func (rc *RunContext) EnablePlatformNodeAffinityInRenderedManifests() bool
- func (rc *RunContext) FastFailStatusCheck() bool
- func (rc *RunContext) ForceDeploy() bool
- func (rc *RunContext) ForceLoadImages() bool
- func (rc *RunContext) GetCluster() config.Cluster
- func (rc *RunContext) GetInsecureRegistries() map[string]bool
- func (rc *RunContext) GetKubeConfig() string
- func (rc *RunContext) GetKubeContext() string
- func (rc *RunContext) GetKubeNamespace() string
- func (rc *RunContext) GetNamespace() string
- func (rc *RunContext) GetNamespaces() []string
- func (rc *RunContext) GetPipelines() []latest.Pipeline
- func (rc *RunContext) GetRunID() string
- func (rc *RunContext) GetWorkingDir() string
- func (rc *RunContext) GlobalConfig() string
- func (rc *RunContext) HydratedManifests() []string
- func (rc *RunContext) IsDefaultKubeContext() bool
- func (rc *RunContext) IsMultiCluster() bool
- func (rc *RunContext) IsMultiConfig() bool
- func (rc *RunContext) IsTestPhaseActive() bool
- func (rc *RunContext) IterativeStatusCheck() bool
- func (rc *RunContext) JSONParseConfig() latest.JSONParseConfig
- func (rc *RunContext) LoadImages() bool
- func (rc *RunContext) MinikubeProfile() string
- func (rc *RunContext) Mode() config.RunMode
- func (rc *RunContext) MultiLevelRepo() *bool
- func (rc *RunContext) Muted() config.Muted
- func (rc *RunContext) NoPruneChildren() bool
- func (rc *RunContext) Notification() bool
- func (rc *RunContext) PipelineForImage(imageName string) (latest.Pipeline, bool)
- func (rc *RunContext) PortForward() bool
- func (rc *RunContext) PortForwardOptions() config.PortForwardOptions
- func (rc *RunContext) PortForwardResources() []*latest.PortForwardResource
- func (rc *RunContext) Prune() bool
- func (rc *RunContext) PushImages() config.BoolOrUndefined
- func (rc *RunContext) RPCHTTPPort() *int
- func (rc *RunContext) RPCPort() *int
- func (rc *RunContext) RenderOnly() bool
- func (rc *RunContext) RenderOutput() string
- func (rc *RunContext) Renderers() []latest.RenderConfig
- func (rc *RunContext) SkipTests() bool
- func (rc *RunContext) StatusCheck() *bool
- func (rc *RunContext) StatusCheckCRDsFile() string
- func (rc *RunContext) StatusCheckDeadlineSeconds() int
- func (rc *RunContext) StatusCheckTolerateFailures() bool
- func (rc *RunContext) Tail() bool
- func (rc *RunContext) TestCases() []*latest.TestCase
- func (rc *RunContext) TransformAllowList() []latest.ResourceFilter
- func (rc *RunContext) TransformDenyList() []latest.ResourceFilter
- func (rc *RunContext) TransformRulesFile() string
- func (rc *RunContext) Trigger() string
- func (rc *RunContext) UsingLegacyHelmDeploy() bool
- func (rc *RunContext) VerifyDockerNetwork() string
- func (rc *RunContext) WaitForDeletions() config.WaitForDeletions
- func (rc *RunContext) WatchPollInterval() int
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 (Pipelines) AllOrderedConfigNames ¶
Returns the config names in the correct dependency order to be mapped against their proper pipeline.
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 ¶
Returns a pipeline given its associated config name.
func (Pipelines) IsMultiCluster ¶ added in v2.2.0
IsMultiPipeline returns true if there are more than one target kubernetes clusters.
func (Pipelines) IsMultiPipeline ¶
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 ¶
Select returns the first `latest.Pipeline` that matches the given artifact `imageName`.
func (Pipelines) StatusCheckDeadlineSeconds ¶
func (Pipelines) StatusCheckTolerateFailures ¶
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