Skip to content

Commit

Permalink
remove duplicate corev1 import
Browse files Browse the repository at this point in the history
  • Loading branch information
clbx committed May 17, 2024
1 parent e248e55 commit 03454ad
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ import (
"golang.org/x/term"

corev1 "k8s.io/api/core/v1"
v1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"

"k8s.io/cli-runtime/pkg/genericclioptions"
Expand Down Expand Up @@ -206,7 +205,7 @@ func browseCommand(kubeConfigFlags *genericclioptions.ConfigFlags, pvcName strin
Name(pod.Name).
Namespace(options.namespace).
SubResource("exec").
VersionedParams(&v1.PodExecOptions{
VersionedParams(&corev1.PodExecOptions{
Command: []string{"bash", "-c", "cd /mnt && /bin/bash"},
Stdin: true,
Stdout: true,
Expand Down

0 comments on commit 03454ad

Please sign in to comment.