Skip to content

Commit 3386180

Browse files
authored
fix(kubernetes): use pending colour for node-group scaling states (#235)
1 parent 0441354 commit 3386180

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99
### Added
1010
- Add `--disable-utility-network-access` for `kubernetes nodegroup create` command
1111

12+
### Fixed
13+
- Use pending color (yellow) for kubernetes node group `scaling-down` and `scaling-up` states
14+
1215
## [2.9.1] - 2023-07-06
1316
### Changed
1417
- Release artifacts to follow package naming conventions provided by [nFPM](https://github.com/goreleaser/nfpm).

internal/format/kubernetes.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ func kubernetesNodeGroupStateColour(state upcloud.KubernetesNodeGroupState) text
2424
return text.Colors{text.FgGreen}
2525
case upcloud.KubernetesNodeGroupStatePending:
2626
return text.Colors{text.FgYellow}
27+
case upcloud.KubernetesNodeGroupStateScalingUp:
28+
return text.Colors{text.FgYellow}
29+
case upcloud.KubernetesNodeGroupStateScalingDown:
30+
return text.Colors{text.FgYellow}
2731
default:
2832
return text.Colors{text.FgHiBlack}
2933
}

0 commit comments

Comments
 (0)