- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 147 for preStop (0.27 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
staging/src/k8s.io/api/testdata/HEAD/apps.v1.Deployment.json
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 54.5K bytes - Viewed (0) -
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) -
staging/src/k8s.io/api/testdata/HEAD/apps.v1beta1.Deployment.json
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed May 29 22:40:29 UTC 2024 - 54.5K bytes - Viewed (0) -
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)