diff --git a/pkg/lakom/resolvetag/admission.go b/pkg/lakom/resolvetag/admission.go index 8b76a0b2..137025e5 100644 --- a/pkg/lakom/resolvetag/admission.go +++ b/pkg/lakom/resolvetag/admission.go @@ -126,12 +126,6 @@ func (h *handler) Handle(ctx context.Context, request admission.Request) admissi return admission.Errored(http.StatusInternalServerError, err) } - // TODO: Remove namespace population once support for k8s <1.24 is dropped - // Ref: https://github.com/kubernetes/kubernetes/pull/94637 - if pod.GetNamespace() == "" { - pod.SetNamespace(request.Namespace) - } - logger := h.logger.WithValues("pod", client.ObjectKeyFromObject(pod)) if err := h.handlePod(ctx, pod, logger); err != nil { diff --git a/pkg/lakom/verifysignature/admission.go b/pkg/lakom/verifysignature/admission.go index cec8ee7c..ba4358ac 100644 --- a/pkg/lakom/verifysignature/admission.go +++ b/pkg/lakom/verifysignature/admission.go @@ -146,12 +146,6 @@ func (h *handler) Handle(ctx context.Context, request admission.Request) admissi return admission.Errored(http.StatusInternalServerError, err) } - // TODO: Remove namespace population once support for k8s <1.24 is dropped - // Ref: https://github.com/kubernetes/kubernetes/pull/94637 - if pod.GetNamespace() == "" { - pod.SetNamespace(request.Namespace) - } - logger := h.logger.WithValues("pod", client.ObjectKeyFromObject(pod)) if err := h.validatePod(ctx, logger, pod); err != nil {