Skip to content

Commit d64a1dd

Browse files
committed
K8S-637 coredns check fix
1 parent 4321933 commit d64a1dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

addons/upgrade.jps

+2-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ onInstall:
7777
actions:
7878
check-cluster-status:
7979
- cmd[${nodes.k8sm.master.id}]: |-
80-
for cluster_comp in "Kubernetes control plane" "KubeDNS"; do
81-
echo "$(TERM=dumb kubectl cluster-info 2>/dev/null)" | grep -q "${cluster_comp} is running" || echo "false";
80+
for cluster_comp in "^Kubernetes control plane" "^(KubeDNS|CoreDNS)"; do
81+
echo "$(TERM=dumb kubectl cluster-info 2>/dev/null)" | grep -Eq "${cluster_comp} is running" || echo "false";
8282
done
8383
- set:
8484
k8s_cluster_status: ${response.out}

0 commit comments

Comments
 (0)