Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 23 for preStop (0.1 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.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)
  3. 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)
  4. 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)
  5. 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)
  6. staging/src/k8s.io/api/testdata/HEAD/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: Wed May 29 22:40:29 UTC 2024
    - 34.9K bytes
    - Viewed (0)
  7. staging/src/k8s.io/api/testdata/HEAD/core.v1.PodTemplate.yaml

                port: portValue
                scheme: schemeValue
              sleep:
                seconds: 1
              tcpSocket:
                host: hostValue
                port: portValue
            preStop:
              exec:
                command:
                - commandValue
              httpGet:
                host: hostValue
                httpHeaders:
                - name: nameValue
                  value: valueValue
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 22:40:29 UTC 2024
    - 32.1K bytes
    - Viewed (0)
  8. staging/src/k8s.io/api/testdata/HEAD/core.v1.ReplicationController.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.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/api/testdata/HEAD/extensions.v1beta1.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.9K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/testdata/HEAD/batch.v1.CronJob.yaml

                      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
    - 41.3K bytes
    - Viewed (0)
Back to top