- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for setCDIDevices (0.14 sec)
-
pkg/kubelet/cm/dra/claiminfo.go
info.annotations[pluginName] = append(info.annotations[pluginName], annotations...) } return info } // setCDIDevices adds a set of CDI devices to the claim info. func (info *ClaimInfo) setCDIDevices(pluginName string, cdiDevices []string) error { // NOTE: Passing CDI device names as annotations is a temporary solution // It will be removed after all runtimes are updated
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 03 13:30:31 UTC 2024 - 7.9K bytes - Viewed (0) -
pkg/kubelet/cm/dra/claiminfo_test.go
ClaimUID: claimUID, }, }, devices: []string{"incorrect"}, wantErr: true, }, } { t.Run(test.description, func(t *testing.T) { err := test.claimInfo.setCDIDevices(pluginName, test.devices) if test.wantErr { assert.Error(t, err) return } assert.NoError(t, err) assert.Equal(t, test.expectedCDIDevices, test.claimInfo.CDIDevices)
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 03 13:30:31 UTC 2024 - 21K bytes - Viewed (0) -
pkg/kubelet/cm/dra/manager.go
info, exists := m.cache.get(claim.Name, claim.Namespace) if !exists { return fmt.Errorf("unable to get claim info for claim %s in namespace %s", claim.Name, claim.Namespace) } if err := info.setCDIDevices(pluginName, result.GetCDIDevices()); err != nil { return fmt.Errorf("unable to add CDI devices for plugin %s of claim %s in namespace %s", pluginName, claim.Name, claim.Namespace) } return nil })
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 03 13:23:29 UTC 2024 - 19.4K bytes - Viewed (0)