We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb0daa7 commit 9ba82acCopy full SHA for 9ba82ac
pkg/cdi/container-edits.go
@@ -225,7 +225,25 @@ func (e *ContainerEdits) isEmpty() bool {
225
if e == nil {
226
return false
227
}
228
- return len(e.Env)+len(e.DeviceNodes)+len(e.Hooks)+len(e.Mounts)+len(e.AdditionalGIDs) == 0 && e.IntelRdt == nil
+ if len(e.Env) > 0 {
229
+ return false
230
+ }
231
+ if len(e.DeviceNodes) > 0 {
232
233
234
+ if len(e.Hooks) > 0 {
235
236
237
+ if len(e.Mounts) > 0 {
238
239
240
+ if len(e.AdditionalGIDs) > 0 {
241
242
243
+ if e.IntelRdt != nil {
244
245
246
+ return true
247
248
249
// ValidateEnv validates the given environment variables.
0 commit comments