- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for AllContainers (0.14 sec)
-
pkg/apis/core/v1/helper/qos/qos.go
requests := v1.ResourceList{} limits := v1.ResourceList{} zeroQuantity := resource.MustParse("0") isGuaranteed := true allContainers := []v1.Container{} allContainers = append(allContainers, pod.Spec.Containers...) allContainers = append(allContainers, pod.Spec.InitContainers...) for _, container := range allContainers { // process requests for name, quantity := range container.Resources.Requests {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 08 04:01:46 UTC 2023 - 3.5K bytes - Viewed (0) -
pkg/apis/core/helper/qos/qos.go
isGuaranteed := true // note, ephemeral containers are not considered for QoS as they cannot define resources allContainers := []core.Container{} allContainers = append(allContainers, pod.Spec.Containers...) allContainers = append(allContainers, pod.Spec.InitContainers...) for _, container := range allContainers { // process requests for name, quantity := range container.Resources.Requests {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Aug 08 04:01:46 UTC 2023 - 3.7K bytes - Viewed (0) -
pkg/security/apparmor/validate.go
if !isRequired(pod) { return nil } if v.ValidateHost() != nil { return v.validateHostErr } var retErr error podutil.VisitContainers(&pod.Spec, podutil.AllContainers, func(container *v1.Container, containerType podutil.ContainerType) bool { profile := GetProfile(pod, container) if profile == nil { return true }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Mar 05 20:22:50 UTC 2024 - 3.1K bytes - Viewed (0) -
pkg/kube/inject/app_probe.go
return nil } *probePort = intstr.FromInt32(port) } else if probePort.IntVal == targetPort { // Already is rewritten return nil } return p } for _, c := range allContainers(pod) { if c.Name == ProxyContainerName { continue } readyz, livez, startupz := status.FormatProberURL(c.Name) portMap := map[string]int32{} for _, p := range c.Ports { if p.Name != "" {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Aug 04 15:06:24 UTC 2023 - 8.4K bytes - Viewed (0) -
pkg/security/apparmor/helpers.go
pod.Spec.SecurityContext.AppArmorProfile.Type != v1.AppArmorProfileTypeUnconfined { return true } inUse := !podutil.VisitContainers(&pod.Spec, podutil.AllContainers, func(c *v1.Container, _ podutil.ContainerType) bool { if c.SecurityContext != nil && c.SecurityContext.AppArmorProfile != nil && c.SecurityContext.AppArmorProfile.Type != v1.AppArmorProfileTypeUnconfined {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Mar 06 18:46:32 UTC 2024 - 3.5K bytes - Viewed (0)