Skip to content

Commit

Permalink
Updated scripts to ignore kruize-db pod
Browse files Browse the repository at this point in the history
Signed-off-by: Chandrakala Subramanyam <[email protected]>
  • Loading branch information
chandrams committed Jun 27, 2024
1 parent 9467e73 commit fd9004b
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions tests/scripts/common/common_functions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ function deploy_autotune() {
echo "Namespace = $namespace"
if [ ${target} == "crc" ]; then
service="kruize"
autotune_pod=$(kubectl get pod -n ${namespace} | grep ${service} | grep -v kruize-ui | cut -d " " -f1)
autotune_pod=$(kubectl get pod -n ${namespace} | grep ${service} | grep -v kruize-ui | grep -v kruize-db | cut -d " " -f1)
echo "autotune_pod = $autotune_pod"
echo "kubectl -n ${namespace} logs -f ${autotune_pod} > "${AUTOTUNE_POD_LOG}" 2>&1 &"
kubectl -n ${namespace} logs -f ${autotune_pod} > "${AUTOTUNE_POD_LOG}" 2>&1 &
Expand Down Expand Up @@ -1798,7 +1798,7 @@ function get_autotune_pod_log() {

echo "target = $target"
if [ ${target} == "crc" ]; then
autotune_pod=$(kubectl get pod -n ${NAMESPACE} | grep kruize | grep -v kruize-ui | cut -d " " -f1)
autotune_pod=$(kubectl get pod -n ${NAMESPACE} | grep kruize | grep -v kruize-ui | grep -v kruize-db | cut -d " " -f1)
pod_log_msg=$(kubectl logs ${autotune_pod} -n ${NAMESPACE})
else
autotune_pod=$(kubectl get pod -n ${NAMESPACE} | grep autotune | cut -d " " -f1)
Expand Down
2 changes: 1 addition & 1 deletion tests/scripts/helpers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ def compare_json_files(json_file1, json_file2):


def get_kruize_pod(namespace):
command = f"kubectl get pod -n {namespace} | grep kruize | grep -v kruize-ui | cut -d ' ' -f1"
command = f"kubectl get pod -n {namespace} | grep kruize | grep -v kruize-ui | grep -v kruize-db | cut -d ' ' -f1"
# Execute the command and capture the output
output = subprocess.check_output(command, shell=True)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ function get_kruize_pod_log() {

echo ""
echo "Fetch the kruize pod logs and store in ${log}..."
kruize_pod=$(kubectl get pod -n ${NAMESPACE} | grep kruize | grep -v kruize-ui | cut -d " " -f1)
kruize_pod=$(kubectl get pod -n ${NAMESPACE} | grep kruize | grep -v kruize-ui | grep -v kruize-db | cut -d " " -f1)
kubectl logs -f ${kruize_pod} -n ${NAMESPACE} > ${log} 2>&1 &
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function get_kruize_pod_log() {

echo ""
echo "Fetch the kruize pod logs and store in ${log}..."
kruize_pod=$(kubectl get pod -n ${NAMESPACE} | grep kruize | grep -v kruize-ui | cut -d " " -f1)
kruize_pod=$(kubectl get pod -n ${NAMESPACE} | grep kruize | grep -v kruize-ui | grep -v kruize-db | cut -d " " -f1)
kubectl logs -f ${kruize_pod} -n ${NAMESPACE} > ${log} 2>&1 &
}

Expand Down

0 comments on commit fd9004b

Please sign in to comment.