diff --git a/upgrade.sh b/upgrade.sh index 8dd00e6..5d1fc1f 100755 --- a/upgrade.sh +++ b/upgrade.sh @@ -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)'"}]}]}}}}'