(containers []*userconfig.Container)
| 106 | } |
| 107 | |
| 108 | func GetReadinessProbesFromContainers(containers []*userconfig.Container) map[string]kcore.Probe { |
| 109 | probes := map[string]kcore.Probe{} |
| 110 | |
| 111 | for _, container := range containers { |
| 112 | // this should never happen, it's just a precaution |
| 113 | if container == nil { |
| 114 | continue |
| 115 | } |
| 116 | if container.ReadinessProbe != nil { |
| 117 | probes[container.Name] = *GetProbeSpec(container.ReadinessProbe) |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | return probes |
| 122 | } |
| 123 | |
| 124 | func HasReadinessProbesTargetingPort(containers []*userconfig.Container, targetPort int32) bool { |
| 125 | for _, container := range containers { |
no test coverage detected