这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/common/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func CallSshCommand(input SshCommandInput) (SshResult, error) {
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) {
signals := make(chan os.Signal, 1)
signal.Notify(signals, os.Interrupt, syscall.SIGHUP,
Expand Down
2 changes: 1 addition & 1 deletion plugins/scheduler-k3s/k8s.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ type GetPodInput struct {
Namespace string
}

// GetJob gets a Kubernetes job
// GetPod gets a Kubernetes pod
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{})
if err != nil {
Expand Down