benchmark-runner 1.0.755__py3-none-any.whl → 1.0.756__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of benchmark-runner might be problematic. Click here for more details.

@@ -735,20 +735,6 @@ class OC(SSH):
735
735
  self.run(f"{self.__cli} get events -A > '{output_filename}' ")
736
736
  return output_filename
737
737
 
738
- def get_kube_api_server(self):
739
- try:
740
- with open(self.__kubeconfig_path, "r") as f:
741
- config = yaml.safe_load(f)
742
-
743
- # Extract the API server URL from the clusters section
744
- return config["clusters"][0]["cluster"]["server"]
745
- except FileNotFoundError:
746
- return "Kubeconfig file not found."
747
- except KeyError:
748
- return "Invalid kubeconfig format. Could not find API server."
749
- except Exception as e:
750
- return f"Error: {str(e)}"
751
-
752
738
  @logger_time_stamp
753
739
  def __login(self):
754
740
  """
@@ -762,11 +748,11 @@ class OC(SSH):
762
748
  try:
763
749
  if self.__kubeadmin_password and self.__kubeadmin_password.strip():
764
750
  self.run(
765
- f'{self.__cli} login {self.get_kube_api_server()} -u kubeadmin -p {self.__kubeadmin_password}',
751
+ f'{self.__cli} login -u kubeadmin -p {self.__kubeadmin_password}',
766
752
  is_check=True
767
753
  )
768
754
  self._is_logged_in = True # Mark as logged in globally
769
- break # Exit loop upon success
755
+ return True # Success
770
756
  except Exception as err:
771
757
  logger.warning(f"Login attempt {attempt + 1} failed: {err}")
772
758
  if attempt < self.RETRIES - 1:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: benchmark-runner
3
- Version: 1.0.755
3
+ Version: 1.0.756
4
4
  Summary: Benchmark Runner Tool
5
5
  Home-page: https://github.com/redhat-performance/benchmark-runner
6
6
  Author: Red Hat
@@ -46,7 +46,7 @@ benchmark_runner/common/logger/init_logger.py,sha256=ERa-gNqrl2pZybj7v3csvmao7Mv
46
46
  benchmark_runner/common/logger/logger_exceptions.py,sha256=rivdlRm_jIsKQ53rP_-HX8emdtOmQNO4JuIkg8fnBoc,454
47
47
  benchmark_runner/common/logger/logger_time_stamp.py,sha256=2JgugN9LpXF4Ijx0wPRzz3DAGJB8eJpM5g1qPvbWbV8,1479
48
48
  benchmark_runner/common/oc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
49
- benchmark_runner/common/oc/oc.py,sha256=mwAZ30vrv1WQIFrKmAXx0YBWu8H93MQZ0Ses4MJ1Ksw,69981
49
+ benchmark_runner/common/oc/oc.py,sha256=wVxDXkQwNpNTjENnIwtIQha6K971mt3xns09niZO2-8,69413
50
50
  benchmark_runner/common/oc/oc_exceptions.py,sha256=XfKUzeK3Ors_Y2csQEoGqrlsZlYvq6OXLkFh9s_mQRM,6311
51
51
  benchmark_runner/common/ocp_resources/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
52
52
  benchmark_runner/common/ocp_resources/create_cnv.py,sha256=AXsyR8_g_RIFHz2rkyHzzvvUDIiGdOi9rZWJPhiPzDQ,3511
@@ -172,8 +172,8 @@ benchmark_runner/workloads/windows_vm.py,sha256=eHK79ueAkSlNC1uamz19o7CO20wzJi-U
172
172
  benchmark_runner/workloads/workloads.py,sha256=F9fnk4h715tq7ANSCbDH0jktB8fpr_u3YG61Kdi5_os,1422
173
173
  benchmark_runner/workloads/workloads_exceptions.py,sha256=u7VII95iPRF_YhfpGH1U1RmgiIYESMOtbSF1dz7_ToE,1858
174
174
  benchmark_runner/workloads/workloads_operations.py,sha256=EEIZjNYGjEkyUafxFKSu4X9jaN_wgYDbMeCi1hZBZ-0,25186
175
- benchmark_runner-1.0.755.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
176
- benchmark_runner-1.0.755.dist-info/METADATA,sha256=T1jvuTpygYknOPfmkBaIqKhBnPt_A2Icb1Td2xpFEFo,11498
177
- benchmark_runner-1.0.755.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
178
- benchmark_runner-1.0.755.dist-info/top_level.txt,sha256=MP7UbTCzu59D53uKCZl5VsQeM_vheyMc7FmryczJQbk,17
179
- benchmark_runner-1.0.755.dist-info/RECORD,,
175
+ benchmark_runner-1.0.756.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
176
+ benchmark_runner-1.0.756.dist-info/METADATA,sha256=uJUeRf5xwfVuCV97vkTLEkf4PXRW28Z-onnhf5rH-JU,11498
177
+ benchmark_runner-1.0.756.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
178
+ benchmark_runner-1.0.756.dist-info/top_level.txt,sha256=MP7UbTCzu59D53uKCZl5VsQeM_vheyMc7FmryczJQbk,17
179
+ benchmark_runner-1.0.756.dist-info/RECORD,,