File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -48,14 +48,12 @@ for i in "${languages[@]}"; do
4848 --env " HTTPBIN_BASE_URL=$httbin_url " \
4949 --wait
5050
51-
52- kubectl patch jobdefinition " $job_name " --type=json -p=' [
53- {"op":"add","path":"/metadata/labels/codeengine.cloud.ibm.com~1userMetricsScrape","value":"true"},
54- {"op":"add","path":"/metadata/labels/codeengine.cloud.ibm.com~1userMetricsPath","value":"/metrics"},
55- {"op":"add","path":"/metadata/labels/codeengine.cloud.ibm.com~1userMetricsPort","value":"2112"}
56- ]'
51+ kubectl annotate jobdefinition " $job_name " codeengine.cloud.ibm.com/userMetricsScrape=true
52+ kubectl annotate jobdefinition " $job_name " codeengine.cloud.ibm.com/userMetricsPath=' /metrics'
53+ kubectl annotate jobdefinition " $job_name " codeengine.cloud.ibm.com/userMetricsPort=2112
5754
5855 # Submit a jobrun
56+ ibmcloud ce jobrun submit --job " $job_name "
5957 else
6058 continue ;
6159 fi
You can’t perform that action at this time.
0 commit comments