Merge pull request #7647 from closeobserve/master

Fix some golang docblock comments
This commit is contained in:
Jose Diaz-Gonzalez authored and GitHub committed 2025-04-14 11:19:18 -04:00
commit 961bc7e92a
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -65,7 +65,7 @@ func CallSshCommand(input SshCommandInput) (SshResult, error) {
return CallSshCommandWithContext(context.Background(), input) return CallSshCommandWithContext(context.Background(), input)
} }
// CallSshCommand executes a command on a remote host via ssh with the given context // CallSshCommandWithContext executes a command on a remote host via ssh with the given context
func CallSshCommandWithContext(ctx context.Context, input SshCommandInput) (SshResult, error) { func CallSshCommandWithContext(ctx context.Context, input SshCommandInput) (SshResult, error) {
signals := make(chan os.Signal, 1) signals := make(chan os.Signal, 1)
signal.Notify(signals, os.Interrupt, syscall.SIGHUP, signal.Notify(signals, os.Interrupt, syscall.SIGHUP,
+1 -1
View File
@@ -449,7 +449,7 @@ type GetPodInput struct {
Namespace string Namespace string
} }
// GetJob gets a Kubernetes job // GetPod gets a Kubernetes pod
func (k KubernetesClient) GetPod(ctx context.Context, input GetPodInput) (corev1.Pod, error) { func (k KubernetesClient) GetPod(ctx context.Context, input GetPodInput) (corev1.Pod, error) {
pod, err := k.Client.CoreV1().Pods(input.Namespace).Get(ctx, input.Name, metav1.GetOptions{}) pod, err := k.Client.CoreV1().Pods(input.Namespace).Get(ctx, input.Name, metav1.GetOptions{})
if err != nil { if err != nil {