Documentation ¶
Index ¶
- func AddConfigFlags(cmd *cobra.Command)
- func AddListFlags(cmd *cobra.Command)
- func AddSetFlags(cmd *cobra.Command)
- func GetDefaultRepo(cliValue string) (string, error)
- func GetInsecureRegistries() ([]string, error)
- func GetLocalCluster() (bool, error)
- func NewCmdList(out io.Writer) *cobra.Command
- func NewCmdSet(out io.Writer) *cobra.Command
- func NewCmdUnset(out io.Writer) *cobra.Command
- type Config
- type ContextConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddConfigFlags ¶
func AddListFlags ¶
func AddSetFlags ¶
func GetDefaultRepo ¶ added in v0.17.0
func GetInsecureRegistries ¶ added in v0.27.0
func GetLocalCluster ¶ added in v0.22.0
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 ¶
ReadConfigForFile reads the specified file and returns the contents parsed into a Config struct.
type ContextConfig ¶
type ContextConfig struct { Kubecontext string `yaml:"kube-context,omitempty"` DefaultRepo string `yaml:"default-repo,omitempty"` LocalCluster *bool `yaml:"local-cluster,omitempty"` InsecureRegistries []string `yaml:"insecure-registries,omitempty"` }
ContextConfig is the context-specific config information provided in the global Skaffold config.
func GetConfigForKubectx ¶ added in v0.17.0
func GetConfigForKubectx() (*ContextConfig, error)
GetConfigForKubectx returns the specific config to be modified based on the provided kube context. Either returns the config corresponding to the provided or current context, or the global config if that is specified (or if no current context is set).
func GetGlobalConfig ¶ added in v0.17.0
func GetGlobalConfig() (*ContextConfig, error)
GetGlobalConfig returns the global config values
Click to show internal directories.
Click to hide internal directories.