Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jiangpengcheng committed May 6, 2024
1 parent d377f45 commit a516c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .ci/helm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ function ci::verify_vpa_with_resource_unit() {

resources='{"limits":{"cpu":"'$targetCpu'","memory":"'$targetMemory'"},"requests":{"cpu":"'$targetCpu'","memory":"'$targetMemory'"}}'

realResource=`kubectl get function $name -o jsonpath='{.spec.resources}'`
realResource=`kubectl get $kind $name -o jsonpath='{.spec.resources}'`
if [[ "$resources" != "$realResource" ]]; then
echo "vpa tests failed for function"
echo "recommend resource is: ${resources}, actual resource is ${realResource}"
Expand Down

0 comments on commit a516c48

Please sign in to comment.