Skip to content

Commit

Permalink
++
Browse files Browse the repository at this point in the history
  • Loading branch information
d2285 committed Feb 21, 2025
1 parent 8a68ba4 commit 37ed524
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/backup/cmd/loki/loki.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ func GetDeckhousePod(kubeCl kubernetes.Interface, namespace string, labelSelecto
return podName, nil
}

func ExecInPod(config *rest.Config, kubeCl kubernetes.Interface, getApi []string, podName string, namespace string, containerName string) (remotecommand.Executor, error) {
func ExecInPod(config *rest.Config, kubeCl kubernetes.Interface, command []string, podName string, namespace string, containerName string) (remotecommand.Executor, error) {
scheme := runtime.NewScheme()
parameterCodec := runtime.NewParameterCodec(scheme)
if err := v1.AddToScheme(scheme); err != nil {
Expand All @@ -249,7 +249,7 @@ func ExecInPod(config *rest.Config, kubeCl kubernetes.Interface, getApi []string
Namespace(namespace).
SubResource("exec").
VersionedParams(&v1.PodExecOptions{
Command: getApi,
Command: command,
Container: containerName,
Stdin: false,
Stdout: true,
Expand Down

0 comments on commit 37ed524

Please sign in to comment.