Skip to content

Commit 61038aa

Browse files
hangyanantoninbas
andauthored
Apply suggestions from code review
Co-authored-by: Antonin Bas <[email protected]>
1 parent 6738353 commit 61038aa

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/antctl/raw/supportbundle/command.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,7 @@ func downloadFallbackControllerBundleFromKubernetes(ctx context.Context, antreaC
753753
return err
754754
}
755755
if podRef == nil {
756-
return fmt.Errorf("no podRef found in antrea controllerInfo")
756+
return fmt.Errorf("no podRef found in AntreaControllerInfo")
757757
}
758758
pod, err := k8sClient.CoreV1().Pods(podRef.Namespace).Get(ctx, podRef.Name, metav1.GetOptions{})
759759
if err != nil {

pkg/util/k8s/pod.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func IsPodTerminated(pod *v1.Pod) bool {
2121
return pod.Status.Phase == v1.PodFailed || pod.Status.Phase == v1.PodSucceeded
2222
}
2323

24-
// GetPodContainersNames return all the container names in a Pod, including init container.
24+
// GetPodContainersNames returns all the container names in a Pod, including init containers.
2525
func GetPodContainerNames(pod *v1.Pod) []string {
2626
var names []string
2727
for _, c := range pod.Spec.InitContainers {

0 commit comments

Comments
 (0)