Documentation ¶
Index ¶
Constants ¶
const Version string = "skaffold/v1alpha1"
Variables ¶
This section is empty.
Functions ¶
func NewSkaffoldPipeline ¶ added in v0.16.0
func NewSkaffoldPipeline() util.VersionedConfig
NewSkaffoldPipeline creates a SkaffoldPipeline
Types ¶
type Artifact ¶
type Artifact struct { ImageName string `yaml:"imageName"` DockerfilePath string `yaml:"dockerfilePath,omitempty"` Workspace string `yaml:"workspace"` BuildArgs map[string]*string `yaml:"buildArgs,omitempty"` }
Artifact represents items that need should be built, along with the context in which they should be built.
type BuildConfig ¶
type BuildConfig struct { Artifacts []*Artifact `yaml:"artifacts"` TagPolicy string `yaml:"tagPolicy,omitempty"` BuildType `yaml:",inline"` }
BuildConfig contains all the configuration for the build steps
type BuildType ¶
type BuildType struct { LocalBuild *LocalBuild `yaml:"local,omitempty"` GoogleCloudBuild *GoogleCloudBuild `yaml:"googleCloudBuild,omitempty"` }
BuildType contains the specific implementation and parameters needed for the build step. Only one field should be populated.
type DeployConfig ¶
type DeployConfig struct { Name string `yaml:"name,omitempty"` DeployType `yaml:",inline"` }
DeployConfig contains all the configuration needed by the deploy steps
type DeployType ¶
type DeployType struct { HelmDeploy *HelmDeploy `yaml:"helm,omitempty"` KubectlDeploy *KubectlDeploy `yaml:"kubectl,omitempty"` }
DeployType contains the specific implementation and parameters needed for the deploy step. Only one field should be populated.
type GoogleCloudBuild ¶
type GoogleCloudBuild struct {
ProjectID string `yaml:"projectId"`
}
type HelmDeploy ¶
type HelmDeploy struct {
Releases []HelmRelease `yaml:"releases"`
}
type HelmRelease ¶
type KubectlDeploy ¶
type KubectlDeploy struct {
Manifests []Manifest `yaml:"manifests"`
}
KubectlDeploy contains the configuration needed for deploying with `kubectl apply`
type LocalBuild ¶
type LocalBuild struct {
SkipPush *bool `yaml:"skipPush,omitempty"`
}
LocalBuild contains the fields needed to do a build on the local docker daemon and optionally push to a repository.
type SkaffoldPipeline ¶ added in v0.16.0
type SkaffoldPipeline struct { APIVersion string `yaml:"apiVersion"` Kind string `yaml:"kind"` Build BuildConfig `yaml:"build"` Deploy DeployConfig `yaml:"deploy"` }
SkaffoldPipeline is the top level config object that is parsed from a skaffold.yaml
func (*SkaffoldPipeline) GetVersion ¶ added in v0.16.0
func (config *SkaffoldPipeline) GetVersion() string
func (*SkaffoldPipeline) SetDefaultValues ¶ added in v0.19.0
func (c *SkaffoldPipeline) SetDefaultValues() error
SetDefaultValues makes sure default values are set.
func (*SkaffoldPipeline) Upgrade ¶ added in v0.16.0
func (config *SkaffoldPipeline) Upgrade() (util.VersionedConfig, error)
Upgrade upgrades a configuration to the next version. Config changes from v1alpha1 to v1alpha2: 1. Additions
- Profiles
- BuildType.KanikoBuild
- LocalBuild.useDockerCLI, useBuildkit
- GoogleCloudBuild. DiskSizeGb, MachineType, Timeout, DockerImage
- DeployType.KustomizeDeploy
- KubectlDeploy.RemoteManifests, Flags - KubectlFlags type
- HelmRelease fields: setValues, setValueTemplates,wait,recreatePods,overrides,packaged,imageStrategy
- BazelArtifact introduced
- DockerArtifact fields: CacheFrom, Target
2. No removal 3. Updates
- TagPolicy is a struct