v1alpha1

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const Version string = "skaffold/v1alpha1"

Variables

This section is empty.

Functions

This section is empty.

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 HelmRelease struct {
	Name           string            `yaml:"name"`
	ChartPath      string            `yaml:"chartPath"`
	ValuesFilePath string            `yaml:"valuesFilePath"`
	Values         map[string]string `yaml:"values"`
	Namespace      string            `yaml:"namespace"`
	Version        string            `yaml:"version"`
}

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 Manifest

type Manifest struct {
	Paths      []string          `yaml:"paths"`
	Parameters map[string]string `yaml:"parameters,omitempty"`
}

type SkaffoldConfig

type SkaffoldConfig struct {
	APIVersion string `yaml:"apiVersion"`
	Kind       string `yaml:"kind"`

	Build  BuildConfig  `yaml:"build"`
	Deploy DeployConfig `yaml:"deploy"`
}

SkaffoldConfig is the top level config object that is parsed from a skaffold.yaml

func (*SkaffoldConfig) GetVersion

func (config *SkaffoldConfig) GetVersion() string

func (*SkaffoldConfig) Parse

func (config *SkaffoldConfig) Parse(contents []byte, useDefault bool) error

Parse reads from an io.Reader and unmarshals the result into a SkaffoldConfig. The default config argument provides default values for the config, which can be overridden if present in the config file.

Jump to

Keyboard shortcuts

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