Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 748 for prober (0.17 sec)

  1. pilot/cmd/pilot-agent/status/ready/probe.go

    	Check() error
    }
    
    var _ Prober = &Probe{}
    
    // Check executes the probe and returns an error if the probe fails.
    func (p *Probe) Check() error {
    	// First, check that Envoy has received a configuration update from Pilot.
    	if err := p.checkConfigStatus(); err != nil {
    		return err
    	}
    	return p.isEnvoyReady()
    }
    
    // checkConfigStatus checks to make sure initial configs have been received from Pilot.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 02 00:35:05 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. pkg/kubelet/prober/testing/fake_manager.go

    	"k8s.io/apimachinery/pkg/util/sets"
    )
    
    // FakeManager simulates a prober.Manager for testing.
    type FakeManager struct{}
    
    // Unused methods below.
    
    // AddPod simulates adding a Pod.
    func (FakeManager) AddPod(_ *v1.Pod) {}
    
    // RemovePod simulates removing a Pod.
    func (FakeManager) RemovePod(_ *v1.Pod) {}
    
    // Simulated stopping liveness and startup probes.
    func (FakeManager) StopLivenessAndStartup(_ *v1.Pod) {}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jul 07 22:26:12 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  3. pkg/probe/exec/exec_test.go

    		err              error
    	}{
    		// Ok
    		{probe.Success, false, true, "OK", "OK", nil},
    		// Ok
    		{probe.Success, false, true, "OK", "OK", &fakeExitError{true, 0}},
    		// Ok - truncated output
    		{probe.Success, false, true, elevenKilobyte, tenKilobyte, nil},
    		// Run returns error
    		{probe.Unknown, true, true, "", "", fmt.Errorf("test error")},
    		// Unhealthy
    		{probe.Failure, false, true, "Fail", "", &fakeExitError{true, 1}},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  4. pkg/registry/core/componentstatus/rest_test.go

    	api "k8s.io/kubernetes/pkg/apis/core"
    	"k8s.io/kubernetes/pkg/probe"
    )
    
    type fakeHttpProber struct {
    	result probe.Result
    	body   string
    	err    error
    }
    
    func (f *fakeHttpProber) Probe(*http.Request, time.Duration) (probe.Result, string, error) {
    	return f.result, f.body, f.err
    }
    
    type testResponse struct {
    	result probe.Result
    	data   string
    	err    error
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 13 08:10:29 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/storage/storagebackend/factory/etcd3.go

    		}
    		if err != nil {
    			clientErr = err
    			return false, nil
    		}
    		prober = newProber
    		clientErr = nil
    		return true, nil
    	}, stopCh)
    
    	// Close the client on shutdown.
    	go func() {
    		defer utilruntime.HandleCrash()
    		<-stopCh
    
    		lock.Lock()
    		defer lock.Unlock()
    		if prober != nil {
    			prober.Close()
    			clientErr = fmt.Errorf("server is shutting down")
    		}
    	}()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 07:56:39 UTC 2024
    - 15.1K bytes
    - Viewed (0)
  6. pilot/cmd/pilot-agent/options/statusserver.go

    		PodIP:          InstanceIPVar.Get(),
    		AdminPort:      uint16(proxyConfig.ProxyAdminPort),
    		StatusPort:     uint16(proxyConfig.StatusPort),
    		KubeAppProbers: kubeAppProberNameVar.Get(),
    		NodeType:       t,
    		Probes:         []ready.Prober{agent},
    		NoEnvoy:        agent.EnvoyDisabled(),
    		FetchDNS:       agent.GetDNSTable,
    		GRPCBootstrap:  agent.GRPCBootstrapPath(),
    		TriggerDrain: func() {
    			agent.DrainNow()
    		},
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 05 23:51:52 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  7. pkg/volume/plugins.go

    	pm.mutex.Lock()
    	defer pm.mutex.Unlock()
    
    	pm.Host = host
    	pm.loggedDeprecationWarnings = sets.New[string]()
    
    	if prober == nil {
    		// Use a dummy prober to prevent nil deference.
    		pm.prober = &dummyPluginProber{}
    	} else {
    		pm.prober = prober
    	}
    	if err := pm.prober.Init(); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 06 16:13:15 UTC 2024
    - 38.2K bytes
    - Viewed (0)
  8. pkg/volume/plugins_test.go

    func newTestPlugin() []VolumePlugin {
    	return []VolumePlugin{&testPlugins{}}
    }
    
    func TestVolumePluginMgrFunc(t *testing.T) {
    	vpm := VolumePluginMgr{}
    	var prober DynamicPluginProber = nil // TODO (#51147) inject mock
    	vpm.InitPlugins(newTestPlugin(), prober, nil)
    
    	plug, err := vpm.FindPluginByName(testPluginName)
    	if err != nil {
    		t.Fatal("Can't find the plugin by name")
    	}
    	if plug.GetPluginName() != testPluginName {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 06:17:25 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. pkg/volume/configmap/configmap_test.go

    }
    
    func TestCanSupport(t *testing.T) {
    	pluginMgr := volume.VolumePluginMgr{}
    	tempDir, host := newTestHost(t, nil)
    	defer os.RemoveAll(tempDir)
    	pluginMgr.InitPlugins(ProbeVolumePlugins(), nil /* prober */, host)
    
    	plugin, err := pluginMgr.FindPluginByName(configMapPluginName)
    	if err != nil {
    		t.Fatal("Can't find the plugin by name")
    	}
    	if plugin.GetPluginName() != configMapPluginName {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 19.9K bytes
    - Viewed (0)
  10. pkg/volume/hostpath/host_path_test.go

    	}
    
    	return typeList
    }
    
    func TestCanSupport(t *testing.T) {
    	plugMgr := volume.VolumePluginMgr{}
    	plugMgr.InitPlugins(ProbeVolumePlugins(volume.VolumeConfig{}), nil /* prober */, volumetest.NewFakeKubeletVolumeHost(t, "fake", nil, nil))
    
    	plug, err := plugMgr.FindPluginByName(hostPathPluginName)
    	if err != nil {
    		t.Fatal("Can't find the plugin by name")
    	}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 20.5K bytes
    - Viewed (0)
Back to top