Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for preStopHandler (0.16 sec)

  1. pkg/kubelet/kuberuntime/labels.go

    	}
    
    	preStopHandler := &v1.LifecycleHandler{}
    	if found, err := getJSONObjectFromLabel(annotations, containerPreStopHandlerLabel, preStopHandler); err != nil {
    		klog.ErrorS(err, "Unable to get label value from annotations", "label", containerPreStopHandlerLabel, "annotations", annotations)
    	} else if found {
    		containerInfo.PreStopHandler = preStopHandler
    	}
    
    	containerPorts := []v1.ContainerPort{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 02:01:31 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. pkg/kubelet/kuberuntime/labels_test.go

    		Hash:                      kubecontainer.HashContainer(container),
    		RestartCount:              restartCount,
    		TerminationMessagePath:    container.TerminationMessagePath,
    		PreStopHandler:            container.Lifecycle.PreStop,
    	}
    
    	featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, features.InPlacePodVerticalScaling, true)
    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/kuberuntime_container.go

    		Name:                   l.ContainerName,
    		Ports:                  a.ContainerPorts,
    		TerminationMessagePath: a.TerminationMessagePath,
    	}
    	if a.PreStopHandler != nil {
    		container.Lifecycle = &v1.Lifecycle{
    			PreStop: a.PreStopHandler,
    		}
    	}
    	return pod, container, nil
    }
    
    // killContainer kills a container through the following steps:
    // * Run the pre-stop lifecycle hooks (if applicable).
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 54.7K bytes
    - Viewed (0)
Back to top