We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ef65658 + 9a6e8e3 commit 0b3356eCopy full SHA for 0b3356e
dist/images/ovnkube.sh
@@ -815,8 +815,12 @@ function memory_trim_on_compaction_supported {
815
function get_node_zone() {
816
zone=$(kubectl --subresource=status --server=${K8S_APISERVER} --token=${k8s_token} --certificate-authority=${K8S_CACERT} \
817
get node ${K8S_NODE} -o=jsonpath={'.metadata.labels.k8s\.ovn\.org/zone-name'})
818
- if [ "$zone" == "" ]; then
819
- zone="global"
+ if [ -z "$zone" ]; then
+ if [[ ${ovn_enable_interconnect} == "true" ]]; then
820
+ zone="${K8S_NODE}"
821
+ else
822
+ zone="global"
823
+ fi
824
fi
825
echo "$zone"
826
}
0 commit comments