Skip to content

Commit

Permalink
enh: PR feedback II
Browse files Browse the repository at this point in the history
  • Loading branch information
sven-petersen committed Dec 12, 2022
1 parent 5b9d25f commit a439f42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/help/gardenctl_config_set-garden.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ gardenctl config set-garden my-garden --context garden-context --pattern "^(?:la
### Options

```
--alias string unique alias of this Garden that can be used instead of the name to target this Garden
--context string override the current-context of the garden cluster kubeconfig
-h, --help help for set-garden
--kubeconfig string path to kubeconfig file for this Garden cluster
Expand Down
4 changes: 2 additions & 2 deletions pkg/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ type Garden struct {
Name string `yaml:"identity" json:"identity"`
// Alias is a unique identifier of this Garden that can be used as an alternate name to target this Garden
// +optional
Alias string `yaml:"alias,omitempty" json:"alias,omitempty"`
Alias string `yaml:"name,omitempty" json:"name,omitempty"`
// Kubeconfig holds the path for the kubeconfig of the garden cluster
Kubeconfig string `yaml:"kubeconfig" json:"kubeconfig"`
// Context overrides the current-context of the garden cluster kubeconfig
Expand Down Expand Up @@ -105,7 +105,7 @@ func LoadFromFile(filename string) (*Config, error) {
return config, nil
}

// validate checks the config for ambigous definitions and prints a warnings to the user.
// validate checks the config for ambiguous definitions and prints warnings to the user.
func (config *Config) validate() {
seen := make(map[string]bool, len(config.Gardens))

Expand Down

0 comments on commit a439f42

Please sign in to comment.