From af318b24730d4d37965682e1c9fbc97a4fd7660c Mon Sep 17 00:00:00 2001 From: Alexander Kukushkin Date: Thu, 1 Jun 2023 07:28:29 -0400 Subject: [PATCH] Fix kubernetes behave tests (#2707) Starting from 1.27 there is containerd process, which also uses k3s binary and being detected by pidof. Therefore we will search for "k3s server" string in the process list instead of just "k3s". --- features/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/environment.py b/features/environment.py index c3fcce00..a4d22015 100644 --- a/features/environment.py +++ b/features/environment.py @@ -595,7 +595,7 @@ class KubernetesController(AbstractExternalDcsController): api_process = 'kube-apiserver' elif context.startswith('k3d-'): container = '{0}-server-0'.format(context) - api_process = 'k3s' + api_process = 'k3s server' else: return super(KubernetesController, self)._is_running() try: