Created
October 30, 2019 20:53
-
-
Save nexus166/c535c2365d56eb48551a071fe844a4dc to your computer and use it in GitHub Desktop.
kube-deployment-reload.sh
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 | |
| kubectl patch deployment ${@} -p ' | |
| { | |
| "spec": { | |
| "template": { | |
| "metadata": { | |
| "annotations": { | |
| "date": "'$(date +%s)'", | |
| "user": "'$USER'" | |
| } | |
| } | |
| } | |
| } | |
| }' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment