Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for NewWorkloadHealthChecker (0.81 sec)

  1. pkg/istio-agent/health/health_check_test.go

    }
    
    func TestWorkloadHealthChecker_PerformApplicationHealthCheck(t *testing.T) {
    	t.Run("tcp", func(t *testing.T) {
    		listener, err := NewDelayedListener()
    		assert.NoError(t, err)
    		tcpHealthChecker := NewWorkloadHealthChecker(&v1alpha3.ReadinessProbe{
    			InitialDelaySeconds: 0,
    			TimeoutSeconds:      1,
    			PeriodSeconds:       1,
    			SuccessThreshold:    1,
    			FailureThreshold:    1,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 09 16:50:11 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  2. pkg/istio-agent/health/health_check.go

    			if len(ipAddresses) == 0 || status.LegacyLocalhostProbeDestination.Get() {
    				h.HttpGet.Host = "localhost"
    			} else {
    				h.HttpGet.Host = ipAddresses[0]
    			}
    		}
    	}
    	return cfg
    }
    
    func NewWorkloadHealthChecker(cfg *v1alpha3.ReadinessProbe, envoyProbe ready.Prober, proxyAddrs []string, ipv6 bool) *WorkloadHealthChecker {
    	// if a config does not exist return a no-op prober
    	if cfg == nil {
    		return nil
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jul 21 03:06:44 UTC 2021
    - 5.7K bytes
    - Viewed (0)
Back to top