-
Notifications
You must be signed in to change notification settings - Fork 42
add gardenctl hibernate and gardenctl wakeup to hibernate/wakeup shoot cluster #465
base: master
Are you sure you want to change the base?
add gardenctl hibernate and gardenctl wakeup to hibernate/wakeup shoot cluster #465
Conversation
if no objection i will merge this PR by EOB today |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please do not merge unreviewed PRs.
After scrolling quickly over the PR:
- Why do you fetch all shoots across all namespaces if you just want to get one?
- There is at least one typo:
descirption
(Last operation descirption is
- Instead of polling the shoot, why don't you watch for changes?
- I would not compare the Description, this would be a fragile solution
newShoot.Status.LastOperation.Description == "Shoot cluster state has been successfully reconciled."
. The description may be changed any time by the gardener
Hi @petersutter , thanks for your review and comments.
So 'each time pulling newShoot object is the simplest way i can come up with, in my test i see the performance is OK , as Do you have a better way for getting & comparing the newShoot status? it would be much appreciate if you can propose some code snippet for me to reference, thanks! |
Hi @neo-liang-sap ,
Implementing a watch is not required of course, but definitely more efficient and instant |
2f14bf8
to
8a0da1e
Compare
Hi @petersutter , thanks, i've changed code to use |
shoot.Spec.Hibernation = &gardencorev1beta1.Hibernation{ | ||
Enabled: &hibernated, | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will overwrite hibernation schedule.
/close as this feature will not be implemented |
per customer requirement i'm reopening this issue #450 (comment) |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
@neo-liang-sap You need rebase this pull request with latest master branch. Please check. |
What this PR does / why we need it:
add gardenctl hibernate and gardenctl wakeup to hibernate/wakeup shoot cluster
Which issue(s) this PR fixes:
Fixes #450
Special notes for your reviewer:
Release note: