mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-02 17:57:33 +00:00
remove todo/spelling
This commit is contained in:
@@ -22,6 +22,7 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
|
|
||||||
admissionmetrics "k8s.io/apiserver/pkg/admission/metrics"
|
admissionmetrics "k8s.io/apiserver/pkg/admission/metrics"
|
||||||
|
"k8s.io/klog/v2"
|
||||||
|
|
||||||
admissionv1 "k8s.io/api/admission/v1"
|
admissionv1 "k8s.io/api/admission/v1"
|
||||||
admissionv1beta1 "k8s.io/api/admission/v1beta1"
|
admissionv1beta1 "k8s.io/api/admission/v1beta1"
|
||||||
@@ -41,7 +42,6 @@ import (
|
|||||||
webhookutil "k8s.io/apiserver/pkg/util/webhook"
|
webhookutil "k8s.io/apiserver/pkg/util/webhook"
|
||||||
"k8s.io/client-go/informers"
|
"k8s.io/client-go/informers"
|
||||||
clientset "k8s.io/client-go/kubernetes"
|
clientset "k8s.io/client-go/kubernetes"
|
||||||
"k8s.io/klog/v2"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
// Webhook is an abstract admission plugin with all the infrastructure to define Admit or Validate on-top.
|
// Webhook is an abstract admission plugin with all the infrastructure to define Admit or Validate on-top.
|
||||||
@@ -219,7 +219,6 @@ func (a *Webhook) ShouldCallHook(ctx context.Context, h webhook.WebhookAccessor,
|
|||||||
if matchObjErr != nil {
|
if matchObjErr != nil {
|
||||||
return nil, matchObjErr
|
return nil, matchObjErr
|
||||||
}
|
}
|
||||||
//TODO: maybe this sould be before the invocations are created
|
|
||||||
matchConditions := h.GetMatchConditions()
|
matchConditions := h.GetMatchConditions()
|
||||||
if len(matchConditions) > 0 {
|
if len(matchConditions) > 0 {
|
||||||
versionedAttr, err := v.VersionedAttribute(invocation.Kind)
|
versionedAttr, err := v.VersionedAttribute(invocation.Kind)
|
||||||
|
Reference in New Issue
Block a user