mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-13 11:25:19 +00:00
rename legacy to core
This commit is contained in:
@@ -86,7 +86,7 @@ func (d *denyExec) Admit(a admission.Attributes) (err error) {
|
||||
if connectRequest.ResourcePath != "pods/exec" && connectRequest.ResourcePath != "pods/attach" {
|
||||
return nil
|
||||
}
|
||||
pod, err := d.client.Legacy().Pods(a.GetNamespace()).Get(connectRequest.Name)
|
||||
pod, err := d.client.Core().Pods(a.GetNamespace()).Get(connectRequest.Name)
|
||||
if err != nil {
|
||||
return admission.NewForbidden(a, err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user