Skip to content

Commit

Permalink
sks show: display whether auto-upgrade is enabled (#534)
Browse files Browse the repository at this point in the history
Co-authored-by: Philipp Sauter <philipp.sauter@exoscale.ch>
  • Loading branch information
sauterp and sauterp authored Aug 25, 2023
1 parent a69781e commit 2f6aaa8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## UNRELEASED

### Improvements

- sks show: display whether auto-upgrade is enabled #534

## 1.72.1

### Deprecations
Expand All @@ -12,7 +18,7 @@
- compute: remmove uri and tlssni fields when nlb service healthcheck is "tcp"
- cmd: fix panic if inexistent config file is given (#530)

## Improvements
### Improvements

- release: automate AUR releases for Arch Linux (#531)

Expand Down
3 changes: 3 additions & 0 deletions cmd/sks_show.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ type sksShowOutput struct {
Name string `json:"name"`
Description string `json:"description"`
CreationDate string `json:"creation_date"`
AutoUpgrade bool `json:"auto_upgrade"`
Zone string `json:"zone"`
Endpoint string `json:"endpoint"`
Version string `json:"version"`
Expand All @@ -44,6 +45,7 @@ func (o *sksShowOutput) ToTable() {
t.Append([]string{"Description", o.Description})
t.Append([]string{"Zone", o.Zone})
t.Append([]string{"Creation Date", o.CreationDate})
t.Append([]string{"Auto-upgrade", fmt.Sprint(o.AutoUpgrade)})
t.Append([]string{"Endpoint", o.Endpoint})
t.Append([]string{"Version", o.Version})
t.Append([]string{"Service Level", o.ServiceLevel})
Expand Down Expand Up @@ -137,6 +139,7 @@ func (c *sksShowCmd) cmdRun(_ *cobra.Command, _ []string) error {
}(),
CNI: utils.DefaultString(cluster.CNI, "-"),
CreationDate: cluster.CreatedAt.String(),
AutoUpgrade: *cluster.AutoUpgrade,
Description: utils.DefaultString(cluster.Description, ""),
Endpoint: *cluster.Endpoint,
ID: *cluster.ID,
Expand Down
2 changes: 1 addition & 1 deletion cmd/sks_update.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ type sksUpdateCmd struct {

Cluster string `cli-arg:"#" cli-usage:"NAME|ID"`

AutoUpgrade bool `cli-usage:"enable automatic upgrading of the SKS cluster control plane Kubernetes version"`
AutoUpgrade bool `cli-usage:"enable automatic upgrading of the SKS cluster control plane Kubernetes version(--auto-upgrade=false to disable again)"`
Description string `cli-usage:"SKS cluster description"`
Labels map[string]string `cli-flag:"label" cli-usage:"SKS cluster label (format: key=value)"`
Name string `cli-usage:"SKS cluster name"`
Expand Down

0 comments on commit 2f6aaa8

Please sign in to comment.