Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 134 for preStop (0.16 sec)

  1. pkg/kubelet/kuberuntime/kuberuntime_container_test.go

    	m.runner = lcHanlder
    
    	// Configured and works as expected
    	t.Run("PreStop-CMDExec", func(t *testing.T) {
    		ctx := context.Background()
    		testContainer.Lifecycle = cmdLifeCycle
    		_ = m.killContainer(ctx, testPod, cID, "foo", "testKill", "", &gracePeriod, nil)
    		if fakeRunner.Cmd[0] != cmdLifeCycle.PreStop.Exec.Command[0] {
    			t.Errorf("CMD Prestop hook was not invoked")
    		}
    	})
    
    	// Configured and working HTTP hook
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 28K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/labels_test.go

    )
    
    func TestContainerLabels(t *testing.T) {
    	deletionGracePeriod := int64(10)
    	terminationGracePeriod := int64(10)
    	lifecycle := &v1.Lifecycle{
    		// Left PostStart as nil
    		PreStop: &v1.LifecycleHandler{
    			Exec: &v1.ExecAction{
    				Command: []string{"action1", "action2"},
    			},
    			HTTPGet: &v1.HTTPGetAction{
    				Path:   "path",
    				Host:   "host",
    				Port:   intstr.FromInt32(8080),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 22:43:36 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. pkg/kubelet/kuberuntime/labels.go

    	}
    
    	if container.Lifecycle != nil && container.Lifecycle.PreStop != nil {
    		// Using json encoding so that the PreStop handler object is readable after writing as a label
    		rawPreStop, err := json.Marshal(container.Lifecycle.PreStop)
    		if err != nil {
    			klog.ErrorS(err, "Unable to marshal lifecycle PreStop handler for container", "containerName", container.Name, "pod", klog.KObj(pod))
    		} else {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. pkg/api/pod/util.go

    		return
    	}
    
    	adjustLifecycle := func(lifecycle *api.Lifecycle) {
    		if lifecycle.PreStop != nil && lifecycle.PreStop.Sleep != nil {
    			lifecycle.PreStop.Sleep = nil
    			if lifecycle.PreStop.Exec == nil && lifecycle.PreStop.HTTPGet == nil && lifecycle.PreStop.TCPSocket == nil {
    				lifecycle.PreStop = nil
    			}
    		}
    		if lifecycle.PostStart != nil && lifecycle.PostStart.Sleep != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 41.3K bytes
    - Viewed (0)
  5. pkg/apis/core/v1/defaults_test.go

    		".Spec.Containers[0].Lifecycle.PostStart.HTTPGet.Path":           `"/"`,
    		".Spec.Containers[0].Lifecycle.PostStart.HTTPGet.Scheme":         `"HTTP"`,
    		".Spec.Containers[0].Lifecycle.PreStop.HTTPGet.Path":             `"/"`,
    		".Spec.Containers[0].Lifecycle.PreStop.HTTPGet.Scheme":           `"HTTP"`,
    		".Spec.Containers[0].LivenessProbe.FailureThreshold":             `3`,
    		".Spec.Containers[0].LivenessProbe.ProbeHandler.HTTPGet.Path":    `"/"`,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 84.4K bytes
    - Viewed (0)
  6. staging/src/k8s.io/api/testdata/HEAD/apps.v1.Deployment.json

                      "port": "portValue",
                      "host": "hostValue"
                    },
                    "sleep": {
                      "seconds": 1
                    }
                  },
                  "preStop": {
                    "exec": {
                      "command": [
                        "commandValue"
                      ]
                    },
                    "httpGet": {
                      "path": "pathValue",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/testdata/HEAD/apps.v1.ReplicaSet.yaml

                  port: portValue
                  scheme: schemeValue
                sleep:
                  seconds: 1
                tcpSocket:
                  host: hostValue
                  port: portValue
              preStop:
                exec:
                  command:
                  - commandValue
                httpGet:
                  host: hostValue
                  httpHeaders:
                  - name: nameValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 34.8K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/testdata/HEAD/apps.v1beta1.Deployment.json

                      "port": "portValue",
                      "host": "hostValue"
                    },
                    "sleep": {
                      "seconds": 1
                    }
                  },
                  "preStop": {
                    "exec": {
                      "command": [
                        "commandValue"
                      ]
                    },
                    "httpGet": {
                      "path": "pathValue",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/testdata/HEAD/apps.v1.DaemonSet.yaml

                  port: portValue
                  scheme: schemeValue
                sleep:
                  seconds: 1
                tcpSocket:
                  host: hostValue
                  port: portValue
              preStop:
                exec:
                  command:
                  - commandValue
                httpGet:
                  host: hostValue
                  httpHeaders:
                  - name: nameValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 35.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/testdata/HEAD/extensions.v1beta1.Deployment.json

                      "port": "portValue",
                      "host": "hostValue"
                    },
                    "sleep": {
                      "seconds": 1
                    }
                  },
                  "preStop": {
                    "exec": {
                      "command": [
                        "commandValue"
                      ]
                    },
                    "httpGet": {
                      "path": "pathValue",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 54.5K bytes
    - Viewed (0)
Back to top