Created
November 27, 2021 10:21
-
-
Save curx/ff518d0743687ee59a0372a4609e3b22 to your computer and use it in GitHub Desktop.
hibernate or not a shoot cluster
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| ## desc: hibernate a gardener shoot cluster | |
| ## author: Thorsten Schifferdecker https://github.com/curx | |
| ## license: ASL-2.0 | |
| kubectl patch shoot ${1:?shootcluster name not given} \ | |
| -p '{"spec": { "hibernation": { "enabled": '${2:?hibernate true or false}'}}}' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment