Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 1,007 for lake (0.31 sec)

  1. staging/src/k8s.io/apiserver/pkg/quota/v1/generic/evaluator_test.go

    	}
    	if fake.called != 0 {
    		t.Fatalf("expected called=0, got %d", fake.called)
    	}
    	fake.called = 0
    
    	hasSynced = true
    
    	if _, err := l.List(nil); err != errFakeLister {
    		t.Fatalf("expected %v, got %v", errFakeLister, err)
    	}
    	if _, err := l.Get(""); err != errFakeLister {
    		t.Fatalf("expected %v, got %v", errFakeLister, err)
    	}
    	if fake.called != 2 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 04 12:53:52 UTC 2020
    - 3K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiextensions-apiserver/examples/client-go/pkg/client/clientset/versioned/typed/cr/v1/fake/fake_example.go

    	_, err := c.Fake.Invokes(action, &v1.ExampleList{})
    	return err
    }
    
    // Patch applies the patch and returns the patched example.
    func (c *FakeExamples) Patch(ctx context.Context, name string, pt types.PatchType, data []byte, opts metav1.PatchOptions, subresources ...string) (result *v1.Example, err error) {
    	emptyResult := &v1.Example{}
    	obj, err := c.Fake.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. pkg/filewatcher/fakefilewatcher.go

    func NewFakeWatcher(changedFunc func(path string, added bool)) (NewFileWatcherFunc, *FakeWatcher) {
    	w := &FakeWatcher{
    		events:      make(map[string]chan fsnotify.Event),
    		errors:      make(map[string]chan error),
    		changedFunc: changedFunc,
    	}
    	return func() FileWatcher {
    		return w
    	}, w
    }
    
    // Add is a fake implementation of the FileWatcher interface.
    func (w *FakeWatcher) Add(path string) error {
    	w.Lock()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 24 14:06:41 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  4. staging/src/k8s.io/apiextensions-apiserver/pkg/client/clientset/clientset/typed/apiextensions/v1/fake/fake_customresourcedefinition.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    // Code generated by client-gen. DO NOT EDIT.
    
    package fake
    
    import (
    	"context"
    	json "encoding/json"
    	"fmt"
    
    	v1 "k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1"
    	apiextensionsv1 "k8s.io/apiextensions-apiserver/pkg/client/applyconfiguration/apiextensions/v1"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  5. pkg/kubelet/pluginmanager/metrics/metrics_test.go

    	if !ok {
    		t.Errorf("getPluginCount failed. Expected <desired_state_of_world>, got nothing")
    	}
    
    	fakePluginCount := dswCount["fake/path/plugin.sock"]
    	if fakePluginCount != 1 {
    		t.Errorf("getPluginCount failed. Expected <1> fake/path/plugin.sock in DesiredStateOfWorld, got <%d>",
    			fakePluginCount)
    	}
    
    	aswCount, ok := count["actual_state_of_world"]
    	if !ok {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Nov 12 12:48:20 UTC 2019
    - 2.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/plugin/pkg/audit/fake/doc.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    // Package fake provides a fake audit.Backend interface implementation for testing.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 10 17:16:18 UTC 2018
    - 719 bytes
    - Viewed (0)
  7. pkg/proxy/conntrack/cleanup_test.go

    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.description, func(t *testing.T) {
    			fake := NewFake()
    			CleanStaleEntries(fake, svcPortMap, tc.serviceUpdates, tc.endpointsUpdates)
    			if !fake.ClearedIPs.Equal(tc.result.ClearedIPs) {
    				t.Errorf("Expected ClearedIPs=%v, got %v", tc.result.ClearedIPs, fake.ClearedIPs)
    			}
    			if !fake.ClearedPorts.Equal(tc.result.ClearedPorts) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jan 15 18:09:05 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. cni/pkg/nodeagent/server_test.go

    	server := &fakeServer{}
    	server.Start(fakeCtx)
    
    	server.On("DelPodFromMesh",
    		fakeCtx,
    		pod,
    	).Return(errors.New("fake error"))
    
    	fakeClientSet := fake.NewSimpleClientset()
    	m := meshDataplane{
    		kubeClient: fakeClientSet,
    		netServer:  server,
    	}
    
    	// pod is not in fake client, so if this will try to remove annotation, it will fail.
    	err := m.DelPodFromMesh(fakeCtx, pod)
    	assert.Error(t, err)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apimachinery/pkg/util/strategicpatch/testing/openapi.go

    	openapi "k8s.io/kube-openapi/pkg/util/proto"
    )
    
    // Fake opens and returns a openapi swagger from a file Path. It will
    // parse only once and then return the same copy everytime.
    type Fake struct {
    	Path string
    
    	once     sync.Once
    	document *openapi_v2.Document
    	err      error
    }
    
    // OpenAPISchema returns the openapi document and a potential error.
    func (f *Fake) OpenAPISchema() (*openapi_v2.Document, error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 02 14:34:26 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  10. pkg/kubelet/volumemanager/metrics/metrics_test.go

    	}
    
    	fakePluginCount := dswCount["fake-plugin"]
    	if fakePluginCount != 1 {
    		t.Errorf("getVolumeCount failed. Expected <1> fake-plugin volume in DesiredStateOfWorld, got <%d>",
    			fakePluginCount)
    	}
    
    	aswCount, ok := count["actual_state_of_world"]
    	if !ok {
    		t.Errorf("getVolumeCount failed. Expected <actual_state_of_world>, got nothing")
    	}
    
    	fakePluginCount = aswCount["fake-plugin"]
    	if fakePluginCount != 1 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 4K bytes
    - Viewed (0)
Back to top