- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for setPrepared (0.13 sec)
-
pkg/kubelet/cm/dra/claiminfo.go
// deletePodReference deletes a pod reference from the claim info. func (info *ClaimInfo) deletePodReference(podUID types.UID) { info.PodUIDs.Delete(string(podUID)) } // setPrepared marks the claim info as prepared. func (info *ClaimInfo) setPrepared() { info.prepared = true } // isPrepared checks if claim info is prepared or not. func (info *ClaimInfo) isPrepared() bool { return info.prepared }
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
prepared: true, }, }, { description: "empty claim info", claimInfo: &ClaimInfo{}, }, } { t.Run(test.description, func(t *testing.T) { test.claimInfo.setPrepared() assert.Equal(t, test.claimInfo.isPrepared(), true) }) } } func TestClaimInfoIsPrepared(t *testing.T) { for _, test := range []struct { description string claimInfo *ClaimInfo
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) } info.setPrepared() } // Checkpoint to ensure all prepared claims are tracked with their list // of CDI devices attached. if err := m.cache.syncToCheckpoint(); err != 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)