docstr: Method: wait a milvus instance until healthy or timeout
  Params:
      release_name: release name of milvus
      namespace: namespace that the milvus is running in
      timeout: default: 600 seconds
docstr_tok: ["Method",":","wait","a","milvus","instance","until","healthy","or","timeout","Params",":","release_name",":","release","name","of","milvus","namespace",":","namespace","that","the","milvus","is","running","in","timeout",":","default",":","600","seconds"]
code: def wait_for_healthy(
      self, release_name, namespace="default", timeout=600
  ):
      """
      Method: wait a milvus instance until healthy or timeout
      Params:
          release_name: release name of milvus
          namespace: namespace that the milvus is running in
          timeout: default: 600 seconds
      """
      cus_res = CusResource(
          kind=self.plural,
          group=self.group,
          version=self.version,
          namespace=namespace,
      )
      starttime = time.time()
      log.info(f"start to check healthy: {starttime}")
      while time.time() < starttime + timeout:
          time.sleep(10)
          res_object = cus_res.get(release_name)
          mic_status = res_object.get("status", None)
          if mic_status is not None:
              if "Healthy" == mic_status.get("status"):
                  log.info(
                      f"milvus healthy in {time.time() - starttime} seconds"
                  )
                  return True
              else:
                  log.info(
                      f"milvus status is: {mic_status.get('status')}"
                  )
      log.info(f"end to check healthy until timeout {timeout}")
      return False
  
file_path: milvus/tests/python_client/customize/milvus_operator.py
imports: import json
  import os
  import time
  from benedict import benedict
  from utils.util_log import test_log
  from common.cus_resource_opts import CustomResourceOperations
label_desc: Use image node_id 6 for calling the MilvusOperator obj's underlying member method code with example usage: obj.wait_for_healthy(release_name, namespace, timeout) and returns: False, True