Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckCatalogDir ¶
Types ¶
type Config ¶
type Config struct {
// CatalogDir is the directory containing catalog of environments, projects and releases.
// Optional, defaults to ~/.joy
CatalogDir string `yaml:"catalogDir,omitempty"`
// Environments user has selected to work with.
Environments Environments `yaml:"environments,omitempty"`
// Releases user has selected to work with.
Releases Releases `yaml:"releases,omitempty"`
// MinVersion is the minimum version of the joy CLI required
MinVersion string `yaml:"minVersion,omitempty"`
// DefaultChart is the chart reference used by the catalog when omitted from the joy release
DefaultChart string `yaml:"defaultChart,omitempty"`
// ValueMapping are used to apply parameters to the chart values. The values of the mapping
// can use the Release and Environment as template values. Chart mappings will not override values
// already present in the chart
// For example:
//
// image.tag: {{ .Release.Spec.Version }}
// common.annotations.example\.com/custom: true
//
ValueMapping map[string]any `yaml:"valueMapping,omitempty"`
// FilePath is the path to the config file that was loaded, used to write back to the same file.
FilePath string `yaml:"-"`
JoyCache string `yaml:"-"`
}
func FromContext ¶
type Environments ¶
type Environments struct {
// Selected is the list of environments user has selected to work with.
// Only those will be displayed in table columns by default.
// An empty list means all environments are selected.
Selected []string `yaml:"selected,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.