Remove duplicate function
Change-Id: I5f8af9c7f90dbda299122f4ed346d685fb311dd9
diff --git a/libraries/k8s.robot b/libraries/k8s.robot
index 2f2772e..53cd8b3 100644
--- a/libraries/k8s.robot
+++ b/libraries/k8s.robot
@@ -253,20 +253,6 @@
... kubectl -n ${namespace} get pods -l ${key}=${value} -o json | jq -r ".items[].status.containerStatuses[].ready" | grep -c false
Should Be Equal as Integers ${rc} 0
-Validate Pod Status
- [Arguments] ${pod_name} ${namespace} ${expectedStatus}
- [Documentation] To run the kubectl command and check the status of the given pod matches the expected status
- ${length}= Run ${KUBECTL_CONFIG}; kubectl get pod -n ${namespace} | wc -l
- FOR ${index} IN RANGE ${length}-1
- ${currentPodName}= Run ${KUBECTL_CONFIG}; kubectl get pod -n ${namespace} -o jsonpath={.items[${index}].status.containerStatuses[0].name}
- Log Required Pod : ${pod_name}
- Log Current Pod: ${currentPodName}
- Run Keyword and Ignore Error Run Keyword If '${currentPodName}'=='${pod_name}' Exit For Loop
- END
- ${currentStatusofPod}= Run ${KUBECTL_CONFIG}; kubectl get pod -n ${namespace} -o jsonpath={.items[${index}].status.phase}
- Log ${currentStatusofPod}
- Should Contain ${currentStatusofPod} ${expectedStatus}
-
Check Expected Running Pods Number By Label
[Arguments] ${namespace} ${key} ${value} ${number}
[Documentation] Succeeds if the desired pod has expected number replicas