- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for fakevolume (0.13 sec)
-
pkg/kubelet/server/stats/volume_stat_calculator_test.go
case <-time.After(5 * time.Second): return "", ErrorWatchTimeout } } // Fake volume/metrics provider var _ volume.Volume = &fakeVolume{} type fakeVolume struct{} func (v *fakeVolume) GetPath() string { return "" } func (v *fakeVolume) GetMetrics() (*volume.Metrics, error) { return expectedMetrics(), nil } func expectedMetrics() *volume.Metrics { vMetrics := &volume.Metrics{
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Apr 24 18:25:29 UTC 2024 - 9.6K bytes - Viewed (0) -
pkg/volume/testing/testing.go
} fakeVolume := plugin.getFakeVolume(&plugin.Mounters) fakeVolume.Lock() defer fakeVolume.Unlock() fakeVolume.PodUID = pod.UID fakeVolume.VolName = spec.Name() fakeVolume.Plugin = plugin fakeVolume.MetricsNil = volume.MetricsNil{} return fakeVolume, nil } func (plugin *FakeVolumePlugin) GetMounters() (Mounters []*FakeVolume) { plugin.RLock() defer plugin.RUnlock()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri May 31 12:32:15 UTC 2024 - 53.3K bytes - Viewed (0) -
pkg/volume/flexvolume/flexvolume_test.go
exit 0 elif [ "$1" == "detach" -a $# -eq 2 ]; then echo -n '{ "status": "Success" }' exit 0 elif [ "$1" == "getvolumename" -a $# -eq 4 ]; then echo -n '{ "status": "Success", "volume": "fakevolume" }' exit 0 elif [ "$1" == "isattached" -a $# -eq 2 ]; then echo -n '{ "status": "Success", "attached": true }' exit 0 fi echo -n '{ "status": "Not supported" }'
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 01 15:56:32 UTC 2022 - 6.8K bytes - Viewed (0) -
pkg/controller/volume/attachdetach/testing/testvolumespec.go
fakeVolume := &v1.Volume{ Name: volumeName, VolumeSource: v1.VolumeSource{ GCEPersistentDisk: &v1.GCEPersistentDiskVolumeSource{ PDName: "pdName", FSType: "ext4", ReadOnly: false, }, }, } return volume.ReconstructedVolume{ Spec: volume.NewSpecFromVolume(fakeVolume), }, nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 17 08:48:30 UTC 2023 - 16.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/options/server_run_options_test.go
testOptions: &ServerRunOptions{ AdvertiseAddress: netutils.ParseIPSloppy("192.168.10.10"), CorsAllowedOriginList: []string{"10.10.10.100", "10.10.10.200"}, HSTSDirectives: []string{"fakevalue", "includeSubDomains", "preload"}, MaxRequestsInFlight: 400, MaxMutatingRequestsInFlight: 200, RequestTimeout: time.Duration(2) * time.Minute, MinRequestTimeout: 1800,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Feb 27 15:49:49 UTC 2023 - 10.9K bytes - Viewed (0)