- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 36 for newRefs (0.51 sec)
-
plugin/pkg/admission/gc/gc_admission.go
newMeta, err := meta.Accessor(newObj) if err != nil { // if we don't have objectmeta, we don't have the object reference return nil } newRefs := newMeta.GetOwnerReferences() blockingNewRefs := blockingOwnerRefs(newRefs) if len(blockingNewRefs) == 0 { return nil } if oldObj == nil { return blockingNewRefs } oldMeta, err := meta.Accessor(oldObj) if err != nil {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Sep 05 02:24:38 UTC 2023 - 10.3K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_utils.go
func removeRefs(refs []metav1.OwnerReference, predicate func(ref *metav1.OwnerReference) bool) []metav1.OwnerReference { newRefs := []metav1.OwnerReference{} for _, ownerRef := range refs { if !predicate(&ownerRef) { newRefs = append(newRefs, ownerRef) } } return newRefs } // isClaimOwnerUpToDate returns false if the ownerRefs of the claim are not set consistently with the
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 26.7K bytes - Viewed (0) -
pkg/controller/statefulset/stateful_set_utils_test.go
if len(matches) != 2 { return podName } return matches[1] } // ownerRefsChanged returns true if newRefs does not match originalRefs. func ownerRefsChanged(originalRefs, newRefs []metav1.OwnerReference) bool { if len(originalRefs) != len(newRefs) { return true } key := func(ref *metav1.OwnerReference) string { return fmt.Sprintf("%s-%s-%s", ref.APIVersion, ref.Kind, ref.Name) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 05 19:06:41 UTC 2024 - 50.9K bytes - Viewed (0) -
pkg/kube/krt/collection.go
newRes, newExists := results[key] // Find the old O object oldRes, oldExists := h.collectionState.outputs[key] e := Event[O]{} if newExists && oldExists { if equal(newRes, oldRes) { // NOP change, skip continue } e.Event = controllers.EventUpdate e.New = &newRes e.Old = &oldRes h.collectionState.outputs[key] = newRes } else if newExists {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri May 10 23:33:56 UTC 2024 - 19.4K bytes - Viewed (0) -
pkg/registry/discovery/endpointslice/strategy_test.go
Strategy.PrepareForUpdate(context.TODO(), tc.newEPS, tc.oldEPS) if !apiequality.Semantic.DeepEqual(tc.newEPS, tc.expectedEPS) { t.Errorf("Expected %+v\nGot: %+v", tc.expectedEPS, tc.newEPS) } }) } } func Test_dropTopologyOnV1(t *testing.T) { testcases := []struct { name string v1Request bool newEPS *discovery.EndpointSlice originalEPS *discovery.EndpointSlice
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 27.3K bytes - Viewed (0) -
cmd/xl-storage-format-v2_test.go
vMod := make([][]xlMetaV2ShallowVersion, 0, len(vers)) for i, ver := range vers { newVers := make([]xlMetaV2ShallowVersion, 0, len(ver)) for _, v := range ver { v.header.Signature = [4]byte{byte(i + 10), 0, 0, 0} newVers = append(newVers, v) } vMod = append(vMod, newVers) } merged := mergeXLV2Versions(i, false, 0, vMod...) if len(merged) == 0 {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Mar 08 17:50:48 UTC 2024 - 36.4K bytes - Viewed (0) -
pkg/ledger/smt.go
// insert shortcut in slices newKeys = append(newKeys, keys[:i]...) newKeys = append(newKeys, shortcutKey) newKeys = append(newKeys, keys[i:]...) newVals = append(newVals, values[:i]...) newVals = append(newVals, shortcutVal) newVals = append(newVals, values[i:]...) break } } } return newKeys, newVals } const batchLen int = 31
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 08 16:43:05 UTC 2023 - 14K bytes - Viewed (0) -
pkg/registry/discovery/endpointslice/strategy.go
ogNewMeta.Generation = ogOldMeta.Generation + 1 } newEPS.ObjectMeta = ogNewMeta oldEPS.ObjectMeta = ogOldMeta dropDisabledFieldsOnUpdate(oldEPS, newEPS) dropTopologyOnV1(ctx, oldEPS, newEPS) } // Validate validates a new EndpointSlice.
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Jan 02 10:00:01 UTC 2023 - 7.6K bytes - Viewed (0) -
pkg/ledger/smt_test.go
t.Fatal("value not updated") } } // Append to the trie newKeys := getFreshData(5) newValues := getFreshData(5) ch = make(chan result, 1) smt.update(root, newKeys, newValues, nil, 0, smt.trieHeight, false, true, ch) res = <-ch newRoot := res.update if bytes.Equal(root, newRoot) { t.Fatal("trie not updated") } for i, newKey := range newKeys { newValue, _ := smt.get(newRoot, newKey, nil, 0, smt.trieHeight)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Aug 08 16:43:05 UTC 2023 - 7.9K bytes - Viewed (0) -
pkg/kubelet/cm/devicemanager/endpoint_test.go
m := newMockPluginManager() m.pluginListAndWatchReceiver = func(r string, resp *pluginapi.ListAndWatchResponse) { var newDevs []pluginapi.Device for _, d := range resp.Devices { newDevs = append(newDevs, *d) } callback(resourceName, newDevs) } var dp plugin.DevicePlugin var wg sync.WaitGroup wg.Add(1) m.pluginConnected = func(r string, c plugin.DevicePlugin) error {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Nov 08 16:05:48 UTC 2022 - 7.6K bytes - Viewed (0)