Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 75 for PROBE (1.65 sec)

  1. pkg/kube/apimirror/probe.go

    John Howard <******@****.***> 1716476823 -0700
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  2. pkg/probe/exec/exec.go

    	"k8s.io/kubernetes/pkg/probe"
    
    	"k8s.io/klog/v2"
    	"k8s.io/utils/exec"
    )
    
    const (
    	maxReadLength = 10 * 1 << 10 // 10KB
    )
    
    // New creates a Prober.
    func New() Prober {
    	return execProber{}
    }
    
    // Prober is an interface defining the Probe object for container readiness/liveness checks.
    type Prober interface {
    	Probe(e exec.Cmd) (probe.Result, string, error)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildServiceIntegrationTest.groovy

            configurationCacheRun ':included:classloader1:probe', ':included:boundary:classloader2:probe'
    
            then: 'on classloader classloader1'
            outputContains 'probe(classloader1) => 1'
            outputContains 'probe(classloader1) => 2'
            outputContains 'probe(classloader1) => 3'
    
            and: 'on classloader classloader2'
            outputContains 'probe(classloader2) => 1'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 11:47:23 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  4. pkg/probe/exec/exec_test.go

    	tests := []struct {
    		expectedStatus   probe.Result
    		expectError      bool
    		execProbeTimeout bool
    		input            string
    		output           string
    		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},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 14 08:58:18 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. hack/testdata/pod-with-metadata-and-probes.yaml

      - image: registry.k8s.io/nginx:1.7.9
        name: target
        readinessProbe:
          exec:
            command: ["/bin/sh", "-c", "cat probe"]
        livenessProbe:
          exec:
            command: ["/bin/sh", "-c", "cat probe"]
        startupProbe:
          exec:
            command: ["/bin/sh", "-c", "cat probe"]
      initContainers:
      - image: busybox
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 17:26:20 UTC 2024
    - 471 bytes
    - Viewed (0)
  6. pkg/kubelet/kuberuntime/kuberuntime_container_test.go

    			expectedGracePeriod: shortGracePeriod,
    		},
    		{
    			name: "startup probe overrides pod termination grace period, probe period > pod period",
    			pod: &v1.Pod{
    				Spec: v1.PodSpec{
    					Containers: []v1.Container{{
    						Name: "foo", StartupProbe: &v1.Probe{TerminationGracePeriodSeconds: &longGracePeriod},
    					}},
    					TerminationGracePeriodSeconds: &shortGracePeriod,
    				},
    			},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 28K bytes
    - Viewed (0)
  7. pilot/cmd/pilot-agent/status/server.go

    func isRedirect(code int) bool {
    	return code >= http.StatusMultipleChoices && code < http.StatusBadRequest
    }
    
    // Using the same redirect logic that kubelet does: https://github.com/kubernetes/kubernetes/blob/b152001f459/pkg/probe/http/http.go#L141
    // This means that:
    // * If we exceed 10 redirects, the probe fails
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 31.1K bytes
    - Viewed (1)
  8. pilot/cmd/pilot-agent/status/server_test.go

    	testCases := []struct {
    		probe string
    		err   string
    	}{
    		// Json can't be parsed.
    		{
    			probe: "invalid-prober-json-encoding",
    			err:   "failed to decode",
    		},
    		// map key is not well formed.
    		{
    			probe: `{"abc": {"path": "/app-foo/health"}}`,
    			err:   "invalid path",
    		},
    		// invalid probe type
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/options/encryptionconfig/config_test.go

    		t.Run(tt.desc, func(t *testing.T) {
    			tt.probe.state.Store(&envelopekmsv2.State{})
    			_ = tt.probe.check(ctx)
    			if tt.probe.ttl != tt.wantTTL {
    				t.Fatalf("want ttl %v, got ttl %v", tt.wantTTL, tt.probe.ttl)
    			}
    		})
    	}
    }
    
    func TestKMSv2InvalidKeyID(t *testing.T) {
    	ctx := testContext(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 16:56:39 UTC 2024
    - 72.3K bytes
    - Viewed (0)
  10. platforms/jvm/jvm-services/src/main/java/org/gradle/internal/jvm/inspection/DefaultJvmMetadataDetector.java

        private JvmInstallationMetadata getMetadataFromInstallation(File jdkPath) {
            File tmpDir = temporaryFileProvider.createTemporaryDirectory("jvm", "probe");
            File probe = writeProbeClass(tmpDir);
            ExecHandleBuilder exec = execHandleFactory.newExec();
            exec.setWorkingDir(probe.getParentFile());
            exec.executable(javaExecutable(jdkPath));
            try {
                ByteArrayOutputStream out = new ByteArrayOutputStream();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 02:32:22 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top