Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for fakehost (0.11 sec)

  1. pkg/kubelet/container/testing/fake_runtime.go

    	f.CalledFunctions = append(f.CalledFunctions, "GetExec")
    	return &url.URL{Host: FakeHost}, f.Err
    }
    
    func (f *FakeStreamingRuntime) GetAttach(_ context.Context, id kubecontainer.ContainerID, stdin, stdout, stderr, tty bool) (*url.URL, error) {
    	f.Lock()
    	defer f.Unlock()
    
    	f.CalledFunctions = append(f.CalledFunctions, "GetAttach")
    	return &url.URL{Host: FakeHost}, f.Err
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 14 00:23:50 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  2. pkg/volume/csi/csi_plugin_test.go

    			"fakeNode",
    			csiDriverLister,
    			volumeAttachmentLister,
    		)
    	default:
    		t.Fatalf("Unsupported volume host type")
    	}
    
    	fakeHost, ok := host.(volumetest.FakeVolumeHost)
    	if !ok {
    		t.Fatalf("Unsupported volume host type")
    	}
    
    	pluginMgr := fakeHost.GetPluginMgr()
    	plug, err := pluginMgr.FindPluginByName(CSIPluginName)
    	if err != nil {
    		t.Fatalf("can't find plugin %v", CSIPluginName)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 41.8K bytes
    - Viewed (0)
  3. pkg/kubelet/kubelet_pods_test.go

    			if tc.expectError {
    				assert.Error(t, err, description)
    			} else {
    				assert.NoError(t, err, description)
    				assert.Equal(t, containertest.FakeHost, redirect.Host, description+": redirect")
    			}
    		})
    	}
    }
    
    func TestGetPortForward(t *testing.T) {
    	const (
    		podName                = "podFoo"
    		podNamespace           = "nsFoo"
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jun 07 00:05:23 UTC 2024
    - 198.8K bytes
    - Viewed (0)
  4. pilot/pkg/serviceregistry/serviceentry/controller_test.go

    			Name:              "fakeDestinationRule",
    			Namespace:         "default",
    			Domain:            "cluster.local",
    			CreationTimestamp: GlobalTime,
    		},
    		Spec: &networking.DestinationRule{
    			Host: "fakehost",
    		},
    	}
    	_, err := store.Create(cfg)
    	if err != nil {
    		t.Errorf("error occurred crearting ServiceEntry config: %v", err)
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 29 15:31:09 UTC 2024
    - 92.9K bytes
    - Viewed (0)
  5. staging/src/k8s.io/cli-runtime/pkg/resource/query_param_verifier_v3_test.go

    	spec *spec3.OpenAPI
    }
    
    func (f *fakeRoot) GroupVersions() ([]schema.GroupVersion, error) {
    	// Unused
    	return nil, nil
    }
    
    // GVSpec returns hard-coded OpenAPI V3 document.
    func (f *fakeRoot) GVSpec(gv schema.GroupVersion) (*spec3.OpenAPI, error) {
    	return f.spec, nil
    }
    
    func (f *fakeRoot) GVSpecAsMap(gv schema.GroupVersion) (map[string]interface{}, error) {
    	// Unused
    	return nil, nil
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 12 04:44:45 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  6. platforms/software/resources/src/main/java/org/gradle/internal/verifier/HttpRedirectVerifierFactory.java

                return NoopHttpRedirectVerifier.instance;
            } else {
                // Verify that the base URL is secure now.
                if (baseHost != null && !GUtil.isSecureUrl(baseHost)) {
                    insecureBaseHost.run();
                }
    
                // Verify that any future redirect locations are secure.
                // Lambda will be called back on for every redirect in the chain.
                return redirectLocations ->
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  7. pkg/kubelet/container/testing/os.go

    func (f *FakeOS) Stat(path string) (os.FileInfo, error) {
    	if f.StatFn != nil {
    		return f.StatFn(path)
    	}
    	return nil, errors.New("unimplemented testing mock")
    }
    
    // Remove is a fake call that returns nil.
    func (f *FakeOS) Remove(path string) error {
    	f.Removes = append(f.Removes, path)
    	return nil
    }
    
    // RemoveAll is a fake call that just returns nil.
    func (f *FakeOS) RemoveAll(path string) error {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 07 13:37:31 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  8. pkg/kube/client_factory.go

    	// now do a simple collapse of non-AZ09 characters.  Collisions are possible but unlikely.  Even if we do collide the problem is short lived
    	safeHost := overlyCautiousIllegalFileCharacters.ReplaceAllString(schemelessHost, "_")
    	return filepath.Join(parentDir, safeHost)
    }
    
    func (c *clientFactory) ToRESTMapper() (meta.RESTMapper, error) {
    	return c.expander.Get()
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Dec 15 21:30:37 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/admission/plugin/policy/generic/policy_test_context.go

    	}
    	return objectGVK, mapping.Resource, nil
    }
    
    type FakeList[T runtime.Object] struct {
    	metav1.TypeMeta
    	metav1.ListMeta
    	Items []T
    }
    
    func (fl *FakeList[P]) DeepCopyObject() runtime.Object {
    	copiedItems := make([]P, len(fl.Items))
    	for i, item := range fl.Items {
    		copiedItems[i] = item.DeepCopyObject().(P)
    	}
    	return &FakeList[P]{
    		TypeMeta: fl.TypeMeta,
    		ListMeta: fl.ListMeta,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 19K bytes
    - Viewed (0)
  10. pkg/kubelet/kuberuntime/kuberuntime_sandbox_test.go

    func TestCreatePodSandbox(t *testing.T) {
    	ctx := context.Background()
    	fakeRuntime, _, m, err := createTestRuntimeManager()
    	require.NoError(t, err)
    	pod := newTestPod()
    
    	fakeOS := m.osInterface.(*containertest.FakeOS)
    	fakeOS.MkdirAllFn = func(path string, perm os.FileMode) error {
    		// Check pod logs root directory is created.
    		assert.Equal(t, filepath.Join(testPodLogsDirectory, pod.Namespace+"_"+pod.Name+"_12345678"), path)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 14.3K bytes
    - Viewed (0)
Back to top