Documentation ¶
Index ¶
- Constants
- Variables
- func Bool(val bool) *bool
- func ConfigExists() (bool, error)
- func GetConfig() *v1.Config
- func GetConfigWithoutDefaults() *v1.Config
- func GetDefaultNamespace(config *v1.Config) (string, error)
- func GetOverwriteConfig() *v1.Config
- func InitConfig() *v1.Config
- func Merge(object interface{}, overwriteObject interface{}, unifyPointers bool)
- func SaveConfig() error
- func SetDefaultsOnce()
- func String(val string) *string
- type ConfigInterface
Constants ¶
const CurrentConfigVersion = "v1alpha1"
CurrentConfigVersion has the value of the current config version
const DefaultConfigPath = "/.devspace/config.yaml"
DefaultConfigPath is the default config path to use
const DefaultDevspaceDeploymentName = "devspace-default"
DefaultDevspaceDeploymentName is the name of the initial default deployment
Variables ¶
var ConfigPath = DefaultConfigPath
ConfigPath is the path for the main config
var OverwriteConfigPath = "/.devspace/overwrite.yaml"
OverwriteConfigPath specifies where the override.yaml lies
Functions ¶
func ConfigExists ¶
ConfigExists checks whether the yaml file for the config exists
func GetConfig ¶
GetConfig returns the config merged from .devspace/config.yaml and .devspace/overwrite.yaml
func GetConfigWithoutDefaults ¶
GetConfigWithoutDefaults returns the config without setting the default values
func GetDefaultNamespace ¶
GetDefaultNamespace retrieves the default namespace where to operate in, either from devspace config or kube config
func GetOverwriteConfig ¶
GetOverwriteConfig returns the config retrieved from .devspace/overwrite.yaml
func Merge ¶
func Merge(object interface{}, overwriteObject interface{}, unifyPointers bool)
Merge deeply merges two objects object MUST be a pointer of a pointer overwriteObject MUST be a pointer
func SetDefaultsOnce ¶
func SetDefaultsOnce()
SetDefaultsOnce ensures that specific values are set in the config
Types ¶
type ConfigInterface ¶
type ConfigInterface interface{}
ConfigInterface defines the pattern of every config