Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 190 for preStop (0.17 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/kube/inject/testdata/inject/proxy-override.yaml

              tty: true
              terminationMessagePath: "/foo/bar"
              volumeMounts:
                - mountPath: /etc/certs
                  name: certs
              lifecycle:
                preStop:
                  exec:
                    command: ["sleep", "10"]
              securityContext:
                allowPrivilegeEscalation: true
                readOnlyRootFilesystem: false
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Nov 17 19:52:06 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  6. pkg/kube/inject/testdata/inject/proxy-override.yaml.injected

    ests":{"cpu":"123m"}},"volumeMounts":[{"name":"certs","mountPath":"/etc/certs"}],"livenessProbe":{"httpGet":{"path":"/healthz/ready","port":15021},"initialDelaySeconds":10,"timeoutSeconds":3,"periodSeconds":2,"failureThreshold":30},"lifecycle":{"preStop":{"exec":{"command":["sleep","10"]}}},"terminationMessagePath":"/foo/bar","securityContext":{"runAsUser":1234,"runAsGroup":1234,"readOnlyRootFilesystem":false,"allowPrivilegeEscalation":true},"tty":true}],"initContainers":[{"name":"istio-init","i...
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Feb 27 16:55:16 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. 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)
  8. staging/src/k8s.io/api/testdata/v1.29.0/apps.v1.DaemonSet.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: Fri Dec 15 04:12:07 UTC 2023
    - 53.6K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/testdata/v1.29.0/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: Fri Dec 15 04:12:07 UTC 2023
    - 53.7K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/testdata/v1.29.0/apps.v1beta2.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: Fri Dec 15 04:12:07 UTC 2023
    - 34.2K bytes
    - Viewed (0)
Back to top