Skip to content

Commit c4b013d

Browse files
authored
Update upgrade-ovs.sh to use POD_NAMESPACE variable for fetching update strategy (#5243)
Signed-off-by: Mengxin Liu <liumengxinfly@gmail.com>
1 parent 11b05dc commit c4b013d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dist/images/upgrade-ovs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ENABLE_SSL=${ENABLE_SSL:-false}
77
POD_NAMESPACE=${POD_NAMESPACE:-kube-system}
88
OVN_VERSION_COMPATIBILITY=${OVN_VERSION_COMPATIBILITY:-}
99

10-
UPDATE_STRATEGY=`kubectl -n kube-system get ds ovs-ovn -o jsonpath='{.spec.updateStrategy.type}'`
10+
UPDATE_STRATEGY=`kubectl -n $POD_NAMESPACE get ds ovs-ovn -o jsonpath='{.spec.updateStrategy.type}'`
1111

1212
SSL_OPTIONS=
1313
if [ "$ENABLE_SSL" != "false" ]; then

0 commit comments

Comments
 (0)