You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
updated the logic to collect all the errors for failed crio cpu partitioning checks so we get a better idea if the error is specific to a container or a cluster wide config error
Signed-off-by: ehila <ehila@redhat.com>
o.Expect(err).ToNot(o.HaveOccurred(), fmt.Sprintf("%s | failed to get container resource annotation json", failLocation), err)
226
-
o.Expect(resource.CPUShares).To(o.Equal(containerInfo.CPUShares), fmt.Sprintf("%s | cpushares do not match between crio config and desired", failLocation))
239
+
iferr!=nil {
240
+
validationErrors=append(validationErrors, fmt.Sprintf("%s | failed to get container resource annotation json: %v", failLocation, err))
241
+
continue
242
+
}
243
+
ifresource.CPUShares!=containerInfo.CPUShares {
244
+
validationErrors=append(validationErrors, fmt.Sprintf("%s | CPUShares mismatch between annotation (%d) and CRIO config (%d)", failLocation, resource.CPUShares, containerInfo.CPUShares))
0 commit comments