mine
Ümüt Özalp 2025-05-17 16:28:01 +02:00 committed by GitHub
parent 13cb55bb66
commit 8fc243dc1f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ func (p *PortForwarder) Start(path string, tt port.PortTunnel) (*portforward.Por
return nil, fmt.Errorf("unable to forward port because pod is not running. Current status=%v", pod.Status.Phase) return nil, fmt.Errorf("unable to forward port because pod is not running. Current status=%v", pod.Status.Phase)
} }
auth, err = p.Client().CanI(ns, client.PodGVR.WithSubResource("portforward"), "", []string{client.GetVerb}) auth, err = p.Client().CanI(ns, client.PodGVR.WithSubResource("portforward"), "", []string{client.CreateVerb})
if err != nil { if err != nil {
return nil, err return nil, err
} }