config

package
v0.13.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddConfigFlags

func AddConfigFlags(cmd *cobra.Command)

func AddListFlags

func AddListFlags(cmd *cobra.Command)

func AddSetFlags

func AddSetFlags(cmd *cobra.Command)

func NewCmdList

func NewCmdList(out io.Writer) *cobra.Command

func NewCmdSet

func NewCmdSet(out io.Writer) *cobra.Command

Types

type Config

type Config struct {
	Global         *ContextConfig   `yaml:"global,omitempty"`
	ContextConfigs []*ContextConfig `yaml:"kubeContexts"`
}

Config is the top level struct for the global Skaffold config It is unrelated to the SkaffoldConfig object (parsed from the skaffold.yaml)

func ReadConfigForFile

func ReadConfigForFile(filename string) (*Config, error)

type ContextConfig

type ContextConfig struct {
	Kubecontext string `yaml:"kube-context,omitempty"`
	DefaultRepo string `yaml:"default-repo"`
}

ContextConfig is the context-specific config information provided in the global Skaffold config.

Jump to

Keyboard shortcuts

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