Nikolay Mahotkin 4fd1b640ca [K8s] Fixing patchService.sh
* Since update command is replaced by replace here
   https://review.openstack.org/#/c/358661/
   for patching the resource it needs to use
   'kubectl patch <type> <name> --patch <patch>'

Change-Id: Ie7e5c4aea3b0cee519ae5ed81cff0dcc3ab67562
2016-08-26 16:33:27 +03:00

7 lines
105 B
Bash

#!/bin/bash
# $1 - service name
# $2 - publicIPs JSON
/opt/bin/kubectl patch service "$1" --patch="$2"