-
Bug
-
Resolution: Not a Bug
-
Medium
-
None
-
None
-
None
-
False
-
None
-
False
-
-
-
0
-
0
Description
Azure OCP 4.16.0-0.nightly-2024-08-08-161834
OSC 1.6.0 GA peerpods
Test 43514-kata pod displaying correct overhead
launches a pod successfully
kataPodObj __ = pod's json
gets peer-pods- webhook deployment (ppVMResourceDefaults) as json string from
-o=jsonpath={.spec.template.spec.containers[?(@.name=='"+ppWebhookDeploymentName+"')].env[?(@.name=='"+ppVMExtendedResourceEnv+"')].value}
actualResourceLimit is kataPodObj's json spec.containers via
gjson.Get(kataPodObj, "spec.containers").ForEach(func(key, container gjson.Result) bool {
This is transformed each time it loops
ppVMResourceDefaults = strings.Replace(ppVMResourceDefaults, ".", "\\.", -1)
actualResourceLimit should == "resource.limits.".+ppVMResourceDefaults
fails because actualResourceLimit == ""
err.logThe test log
The error should have (the transformed) ppVMResourceDefaults, kataPodObj and container.String() so we can see if the things were extracted properly from the json.