Skip to content
This repository has been archived by the owner on Jul 25, 2022. It is now read-only.

Handle properly hibernated Shoots #148

Merged

Conversation

KristianZH
Copy link

@KristianZH KristianZH commented Nov 20, 2019

What this PR does / why we need it:

  1. Show hibernated shoots on gardenctl ls shoots and gardenctl info command.
  2. Handle properly hibernated Shoots for gardenctl shell

Which issue(s) this PR fixes:
Fixes #135

Special notes for your reviewer:
@ialidzhikov @DockToFuture

Release note:

`gardenctl info` does now show also the number of hibernated Shoots per Seeds. `gardenctl ls shoots` now also list whether the Shoot is hibernated.

@gardener-robot-ci-2 gardener-robot-ci-2 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Nov 20, 2019
@gardener-robot-ci-3 gardener-robot-ci-3 added needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Nov 20, 2019
@DockToFuture
Copy link
Contributor

Thank you for the PR, the feature looks pretty nice. Can we also the total number of hibernated shoots to the output of the gardenctl info cmd?

@DockToFuture
Copy link
Contributor

Do you also want to add the other two points from #135 to the PR as @ialidzhikov has suggested?

@KristianZH
Copy link
Author

KristianZH commented Nov 20, 2019

Can we also the total number of hibernated shoots to the output of the gardenctl info cmd?

Yup, will add it.

Do you also want to add the other two points from #135 to the PR as @ialidzhikov has suggested?

Okay i can rename this PR as WIP for now and to bind it to #135

@KristianZH KristianZH changed the title Show hibernated shoots [WIP] Add proper support for hibernated shoots Nov 20, 2019
@KristianZH KristianZH changed the title [WIP] Add proper support for hibernated shoots [WIP] Handle properly hibernated Shoots Nov 20, 2019
@KristianZH KristianZH added the reviewed/do-not-merge Has no approval for merging as it may break things, be of poor quality or have (ext.) dependencies label Nov 20, 2019
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Nov 21, 2019
@KristianZH KristianZH changed the title [WIP] Handle properly hibernated Shoots Handle properly hibernated Shoots Nov 21, 2019
@KristianZH KristianZH removed the reviewed/do-not-merge Has no approval for merging as it may break things, be of poor quality or have (ext.) dependencies label Nov 21, 2019
@gardener-robot-ci-3 gardener-robot-ci-3 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Nov 21, 2019
Copy link
Contributor

@ialidzhikov ialidzhikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR.
Can we adapt the info output to be like?

$ g info
Garden: foo
Shoots:
  active: 3
  hibernated: 2
  total: 5
  unscheduled: 0
  aws-bar:
    active: 3
    hibernated: 2
    total: 5

@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Nov 21, 2019
@gardener-robot-ci-2 gardener-robot-ci-2 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Nov 21, 2019
Copy link
Contributor

@ialidzhikov ialidzhikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! Minor nits.

pkg/cmd/info.go Outdated Show resolved Hide resolved
pkg/cmd/shell.go Outdated Show resolved Hide resolved
pkg/cmd/shell.go Show resolved Hide resolved
pkg/cmd/shell.go Outdated Show resolved Hide resolved
pkg/cmd/ssh.go Outdated Show resolved Hide resolved
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Nov 21, 2019
@gardener-robot-ci-3 gardener-robot-ci-3 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Nov 21, 2019
pkg/cmd/utils.go Outdated Show resolved Hide resolved
pkg/cmd/utils.go Outdated Show resolved Hide resolved
pkg/cmd/utils.go Outdated Show resolved Hide resolved
pkg/cmd/utils.go Outdated Show resolved Hide resolved
pkg/cmd/utils.go Outdated Show resolved Hide resolved
pkg/cmd/ssh.go Outdated Show resolved Hide resolved
pkg/cmd/ssh.go Outdated Show resolved Hide resolved
pkg/cmd/info.go Outdated Show resolved Hide resolved
pkg/cmd/shell.go Outdated Show resolved Hide resolved
@gardener-robot-ci-3 gardener-robot-ci-3 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Nov 21, 2019
@gardener-robot-ci-2 gardener-robot-ci-2 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Nov 21, 2019
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Nov 21, 2019
@gardener-robot-ci-2 gardener-robot-ci-2 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Nov 21, 2019
@gardener-robot-ci-1 gardener-robot-ci-1 added reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) and removed reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) labels Nov 21, 2019
@gardener-robot-ci-1 gardener-robot-ci-1 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Nov 21, 2019
@gardener-robot-ci-3 gardener-robot-ci-3 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Nov 21, 2019
@ialidzhikov
Copy link
Contributor

With #138, gardenctl no longer calls the Shoot kube-apiserver to get the nodes. So the hibernation check here is no longer needed.

@gardener-robot-ci-3 gardener-robot-ci-3 added the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Nov 21, 2019
@gardener-robot-ci-2 gardener-robot-ci-2 removed the reviewed/ok-to-test Has approval for testing (check PR in detail before setting this label because PR is run on CI/CD) label Nov 21, 2019
Copy link
Contributor

@ialidzhikov ialidzhikov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/approve

@ialidzhikov ialidzhikov merged commit e729c4a into gardener-attic:master Nov 21, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs/ok-to-test Needs approval for testing (check PR in detail before setting this label because PR is run on CI/CD)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improvements around hibernation
7 participants