cri: add ignore_rdt_not_enabled_errors config option
Enabling this option effectively causes RDT class of a container to be a soft requirement. If RDT support has not been enabled the RDT class setting will not have any effect. Signed-off-by: Markus Lehtonen <markus.lehtonen@intel.com>
This commit is contained in:
@@ -257,7 +257,7 @@ func (c *criService) containerSpec(
|
||||
supplementalGroups := securityContext.GetSupplementalGroups()
|
||||
|
||||
// Get RDT class
|
||||
rdtClass, err := rdtClassFromAnnotations(config.GetMetadata().GetName(), config.Annotations, sandboxConfig.Annotations)
|
||||
rdtClass, err := c.rdtClassFromAnnotations(config.GetMetadata().GetName(), config.Annotations, sandboxConfig.Annotations)
|
||||
if err != nil {
|
||||
return nil, errors.Wrap(err, "failed to set RDT class")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user