Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSampleConfig ¶
CreateSampleConfig create a sample config that can be used by all commands. The file can be parsed using ReadConfig() or test.readConfig().
Types ¶
type Config ¶ added in v0.8.0
type Config struct {
// Clusters are part of this environment. Requires "hub", "c1", and "c2".
Clusters map[string]config.Cluster `json:"clusters"`
// ClusterSet name with the managed clusters.
ClusterSet string `json:"clusterSet"`
// Distro is either config.DistroK8s or config.DistroOcp. If unset the distro is detected
// automatically when validating the config with the clusters.
Distro string `json:"distro"`
// Namespaces are set automatically based on Distro.
Namespaces config.Namespaces `json:"namespaces"`
}
Config is used for all ramenctl commands except the test commands. It is a subset of ramen/e2e/config.Config.
func ReadConfig ¶
ReadConfig reads the configuration file created by CreateSampleConfig, ignoring the test only configuration.
type EnvFile ¶ added in v0.2.0
func ReadEnvFile ¶ added in v0.2.0
ReadEnvFile reads and parses an environment file into an EnvFile struct.
func (*EnvFile) KubeconfigPath ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.