mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-25 12:43:23 +00:00
Fix function comment
This commit is contained in:
parent
1208f25b3f
commit
d62e766dad
@ -256,7 +256,7 @@ func FindPodConditionByType(podStatus *v1.PodStatus, conditionType v1.PodConditi
|
|||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// FindContainerByName finds the v1.Container in a pod by its name in the provided pod
|
// FindContainerInPod finds the container in a pod by its name
|
||||||
func FindContainerInPod(pod *v1.Pod, containerName string) *v1.Container {
|
func FindContainerInPod(pod *v1.Pod, containerName string) *v1.Container {
|
||||||
for _, container := range pod.Spec.InitContainers {
|
for _, container := range pod.Spec.InitContainers {
|
||||||
if container.Name == containerName {
|
if container.Name == containerName {
|
||||||
|
Loading…
Reference in New Issue
Block a user