Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 71 for vfunc (0.12 sec)

  1. pkg/controller/volume/attachdetach/reconciler/reconciler_test.go

    // Verifies there is one detach call and no (new) attach calls.
    func Test_Run_Positive_OneDesiredVolumeAttachThenDetachWithMountedVolume(t *testing.T) {
    	registerMetrics.Do(func() {
    		legacyregistry.MustRegister(metrics.ForceDetachMetricCounter)
    	})
    	// Arrange
    	volumePluginMgr, fakePlugin := volumetesting.GetTestVolumePluginMgr(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 07:00:14 UTC 2024
    - 72.8K bytes
    - Viewed (0)
  2. pkg/controller/volume/attachdetach/cache/actual_state_of_world_test.go

    	volumetesting "k8s.io/kubernetes/pkg/volume/testing"
    	volumeutil "k8s.io/kubernetes/pkg/volume/util"
    )
    
    // Calls AddVolumeNode() once with attached set to true.
    // Verifies a single volume/node entry exists.
    func Test_AddVolumeNode_Positive_NewVolumeNewNode(t *testing.T) {
    	// Arrange
    	volumePluginMgr, _ := volumetesting.GetTestVolumePluginMgr(t)
    	asw := NewActualStateOfWorld(volumePluginMgr)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 11 07:35:17 UTC 2024
    - 66.1K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/kuberuntime_container.go

    type startSpec struct {
    	container          *v1.Container
    	ephemeralContainer *v1.EphemeralContainer
    }
    
    func containerStartSpec(c *v1.Container) *startSpec {
    	return &startSpec{container: c}
    }
    
    func ephemeralContainerStartSpec(ec *v1.EphemeralContainer) *startSpec {
    	return &startSpec{
    		container:          (*v1.Container)(&ec.EphemeralContainerCommon),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 54.7K bytes
    - Viewed (0)
  4. pkg/kubelet/pod_workers.go

    	observedRuntime bool
    }
    
    func (s *podSyncStatus) IsWorking() bool              { return s.working }
    func (s *podSyncStatus) IsTerminationRequested() bool { return !s.terminatingAt.IsZero() }
    func (s *podSyncStatus) IsTerminationStarted() bool   { return s.startedTerminating }
    func (s *podSyncStatus) IsTerminated() bool           { return !s.terminatedAt.IsZero() }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 02 13:22:37 UTC 2024
    - 74.8K bytes
    - Viewed (0)
  5. pkg/kubelet/stats/cri_stats_provider_test.go

    }
    
    func checkCRIPodSwapStats(assert *assert.Assertions, actual statsapi.PodStats, cs *cadvisorapiv2.ContainerStats) {
    	if runtime.GOOS != "linux" {
    		return
    	}
    
    	assert.Equal(cs.Timestamp.UnixNano(), actual.Swap.Time.UnixNano())
    	assert.Equal(cs.Memory.Swap, *actual.Swap.SwapUsageBytes)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 14:24:16 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  6. pilot/pkg/model/telemetry_logging_test.go

    				},
    			},
    		},
    	} {
    		t.Run(tc.name, func(t *testing.T) {
    			got := buildOpenTelemetryAccessLogConfig(tc.logName, tc.hostname, tc.clusterName, tc.body, tc.labels)
    			assert.Equal(t, tc.expected, got)
    		})
    	}
    }
    
    func TestTelemetryAccessLogExhaustiveness(t *testing.T) {
    	AssertProvidersHandled(telemetryAccessLogHandled)
    }
    
    func TestTelemetryAccessLog(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 54K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiextensions-apiserver/test/integration/ratcheting_test.go

    							"otherField": []interface{}{1, 2, 3},
    						},
    					}},
    			},
    		},
    	}
    
    	runTests(t, cases)
    }
    
    func ptr[T any](v T) *T {
    	return &v
    }
    
    type validator func(new, old *unstructured.Unstructured)
    
    func newValidator(customResourceValidation *apiextensionsinternal.JSONSchemaProps, kind schema.GroupVersionKind, namespaceScoped bool) (validator, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 28 08:48:22 UTC 2024
    - 59.5K bytes
    - Viewed (0)
  8. src/cmd/internal/obj/loong64/asm.go

    				}
    				opset(i, r0)
    			}
    		}
    	}
    }
    
    func OP(x uint32, y uint32) uint32 {
    	return x<<3 | y<<0
    }
    
    func SP(x uint32, y uint32) uint32 {
    	return x<<29 | y<<26
    }
    
    func OP_TEN(x uint32, y uint32) uint32 {
    	return x<<21 | y<<10
    }
    
    // r1 -> rk
    // r2 -> rj
    // r3 -> rd
    func OP_RRR(op uint32, r1 uint32, r2 uint32, r3 uint32) uint32 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:04:54 UTC 2024
    - 61.8K bytes
    - Viewed (0)
  9. pilot/pkg/model/sidecar_test.go

    				}
    			}
    		})
    	}
    }
    
    func BenchmarkConvertIstioListenerToWrapper(b *testing.B) {
    	b.Run("small-exact", func(b *testing.B) {
    		benchmarkConvertIstioListenerToWrapper(b, 10, 3, "", false)
    	})
    	b.Run("small-wildcard", func(b *testing.B) {
    		benchmarkConvertIstioListenerToWrapper(b, 10, 3, "*.", false)
    	})
    	b.Run("small-match-all", func(b *testing.B) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 07 09:38:49 UTC 2024
    - 74.3K bytes
    - Viewed (0)
  10. src/runtime/mgcpacer.go

    		c.revise()
    	}
    }
    
    func (c *gcControllerState) addScannableStack(pp *p, amount int64) {
    	if pp == nil {
    		c.maxStackScan.Add(amount)
    		return
    	}
    	pp.maxStackScanDelta += amount
    	if pp.maxStackScanDelta >= maxStackScanSlack || pp.maxStackScanDelta <= -maxStackScanSlack {
    		c.maxStackScan.Add(pp.maxStackScanDelta)
    		pp.maxStackScanDelta = 0
    	}
    }
    
    func (c *gcControllerState) addGlobals(amount int64) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 55.4K bytes
    - Viewed (0)
Back to top