Skip to content

Commit

Permalink
Changed name of deployment from "deployment" to "deployment.apps". Ob…
Browse files Browse the repository at this point in the history
…viously this was changed when upgrading rancher2 server to 2.2.0.
  • Loading branch information
felixschul committed Apr 4, 2019
1 parent fcaab2f commit a13cc07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ echo "Upgrading deployment $2 in namespace $1 ..."

rancher kubectl \
--namespace=$1 \
patch deployment $2 \
patch deployment.apps $2 \
--type=strategic \
-p '{"spec":{"template":{"spec":{"containers":[{"name":"'$2'","env":[{"name":"FORCE_RESTART_AT","value":"'$(date --utc -Iseconds)'"}]}]}}}}'

0 comments on commit a13cc07

Please sign in to comment.