Documentation ¶
Index ¶
- Constants
- type Artifact
- type ArtifactType
- type BazelArtifact
- type BuildConfig
- type BuildType
- type DeployConfig
- type DeployType
- type DockerArtifact
- type EnvTemplateTagger
- type GitTagger
- type GoogleCloudBuild
- type HelmDeploy
- type HelmRelease
- type KanikoBuild
- type KubectlDeploy
- type LocalBuild
- type Profile
- type ShaTagger
- type SkaffoldConfig
- type TagPolicy
Constants ¶
const Version string = "skaffold/v1alpha2"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Artifact ¶
type Artifact struct { ImageName string `yaml:"imageName"` Workspace string `yaml:"workspace,omitempty"` ArtifactType `yaml:",inline"` }
Artifact represents items that need should be built, along with the context in which they should be built.
type ArtifactType ¶
type ArtifactType struct { DockerArtifact *DockerArtifact `yaml:"docker"` BazelArtifact *BazelArtifact `yaml:"bazel"` }
type BazelArtifact ¶
type BazelArtifact struct {
BuildTarget string `yaml:"target"`
}
type BuildConfig ¶
type BuildConfig struct { Artifacts []*Artifact `yaml:"artifacts,omitempty"` TagPolicy TagPolicy `yaml:"tagPolicy,omitempty"` BuildType `yaml:",inline"` }
BuildConfig contains all the configuration for the build steps
type BuildType ¶
type BuildType struct { LocalBuild *LocalBuild `yaml:"local"` GoogleCloudBuild *GoogleCloudBuild `yaml:"googleCloudBuild"` KanikoBuild *KanikoBuild `yaml:"kaniko"` }
BuildType contains the specific implementation and parameters needed for the build step. Only one field should be populated.
type DeployConfig ¶
type DeployConfig struct {
DeployType `yaml:",inline"`
}
DeployConfig contains all the configuration needed by the deploy steps
type DeployType ¶
type DeployType struct { HelmDeploy *HelmDeploy `yaml:"helm"` KubectlDeploy *KubectlDeploy `yaml:"kubectl"` }
DeployType contains the specific implementation and parameters needed for the deploy step. Only one field should be populated.
type DockerArtifact ¶
type EnvTemplateTagger ¶
type EnvTemplateTagger struct {
Template string `yaml:"template"`
}
EnvTemplateTagger contains the configuration for the envTemplate tagger.
type GoogleCloudBuild ¶
type GoogleCloudBuild struct {
ProjectID string `yaml:"projectId"`
}
GoogleCloudBuild contains the fields needed to do a remote build on Google Container Builder.
type HelmDeploy ¶
type HelmDeploy struct {
Releases []HelmRelease `yaml:"releases,omitempty"`
}
HelmDeploy contains the configuration needed for deploying with helm
type HelmRelease ¶
type HelmRelease struct { Name string `yaml:"name"` ChartPath string `yaml:"chartPath"` ValuesFilePath string `yaml:"valuesFilePath"` Values map[string]string `yaml:"values,omitempty"` Namespace string `yaml:"namespace"` Version string `yaml:"version"` SetValues map[string]string `yaml:"setValues"` }
type KanikoBuild ¶ added in v0.5.0
type KanikoBuild struct { GCSBucket string `yaml:"gcsBucket,omitempty"` PullSecret string `yaml:"pullSecret,omitempty"` }
KanikoBuild contains the fields needed to do a on-cluster build using the kaniko image
type KubectlDeploy ¶
type KubectlDeploy struct { Manifests []string `yaml:"manifests,omitempty"` RemoteManifests []string `yaml:"remoteManifests,omitempty"` }
KubectlDeploy contains the configuration needed for deploying with `kubectl apply`
type LocalBuild ¶
type LocalBuild struct {
SkipPush *bool `yaml:"skipPush"`
}
LocalBuild contains the fields needed to do a build on the local docker daemon and optionally push to a repository.
type Profile ¶
type Profile struct { Name string `yaml:"name"` Build BuildConfig `yaml:"build,omitempty"` Deploy DeployConfig `yaml:"deploy,omitempty"` }
Profile is additional configuration that overrides default configuration when it is activated.
type SkaffoldConfig ¶
type SkaffoldConfig struct { APIVersion string `yaml:"apiVersion"` Kind string `yaml:"kind"` Build BuildConfig `yaml:"build,omitempty"` Deploy DeployConfig `yaml:"deploy,omitempty"` Profiles []Profile `yaml:"profiles,omitempty"` }
func (*SkaffoldConfig) ApplyProfiles ¶
func (c *SkaffoldConfig) ApplyProfiles(profiles []string) error
ApplyProfiles returns configuration modified by the application of a list of profiles.
func (*SkaffoldConfig) GetVersion ¶
func (c *SkaffoldConfig) GetVersion() string
type TagPolicy ¶
type TagPolicy struct { GitTagger *GitTagger `yaml:"gitCommit"` ShaTagger *ShaTagger `yaml:"sha256"` EnvTemplateTagger *EnvTemplateTagger `yaml:"envTemplate"` }
TagPolicy contains all the configuration for the tagging step