Skip to content

Commit

Permalink
fix alerts
Browse files Browse the repository at this point in the history
Signed-off-by: bdattoma <[email protected]>
  • Loading branch information
bdattoma committed Oct 19, 2023
1 parent bf2985c commit dc840af
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,7 @@ Verify Runtime Upgrade Does Not Affect Deployed Models
${created_at} ${caikitsha}= Get Model Pods Creation Date And Image URL model_name=${flan_model_name}
... namespace=${test_namespace}
Upgrade Caikit Runtime Image new_image_url=quay.io/opendatahub/caikit-tgis-serving:fast
... model_name=${flan_model_name} namespace=${test_namespace}
... namespace=${test_namespace}
Sleep 5s reason=Sleep, in case the runtime upgrade takes some time to start performing actions on the pods...
Wait For Pods To Be Ready label_selector=serving.kserve.io/inferenceservice=${flan_model_name}
... namespace=${test_namespace} exp_replicas=1
Expand Down Expand Up @@ -879,16 +879,18 @@ Run Install Script
Upgrade Caikit Runtime Image
[Documentation] Replaces the image URL of the Caikit Runtim with the given
... ${new_image_url}
[Arguments] ${new_image_url} ${model_name} ${namespace}
[Arguments] ${new_image_url} ${namespace}
${rc} ${out}= Run And Return Rc And Output
... oc patch ServingRuntime caikit-runtime -n ${namespace} --type=json -p="[{'op': 'replace', 'path': '/spec/containers/0/image', 'value': '${new_image_url}'}]"
Should Be Equal As Integers ${rc} ${0}

Get Model Pods Creation Date And Image URL
[Documentation] Fetches the creation date and the caikit runtime image URL.
... Useful in upgrade scenarios
[Arguments] ${model_name} ${namespace}
${created_at}= Oc Get kind=Pod label_selector=serving.kserve.io/inferenceservice=${model_name}
... namespace=${namespace} fields=["metadata.creationTimestamp"]
${rc} ${caikitsha}= Run And Return Rc And Output
... oc get pod --selector serving.kserve.io/inferenceservice=${model_name} -n ${namespace} -ojson | jq '.items[].spec.containers[].image' | grep caikit-tgis # robocop: disable
Should Be Equal As Integers ${rc} ${0}
RETURN ${created_at} ${caikitsha}
RETURN ${created_at} ${caikitsha}

0 comments on commit dc840af

Please sign in to comment.