From 3f6e5708cd5daeb441695ff6aa3bfd4823493b16 Mon Sep 17 00:00:00 2001 From: dprotaso Date: Fri, 18 Jun 2021 14:57:20 -0400 Subject: [PATCH] drop deprecated enabledComponents field --- leaderelection/config.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/leaderelection/config.go b/leaderelection/config.go index 3d9df1dc79..8d785c522d 100644 --- a/leaderelection/config.go +++ b/leaderelection/config.go @@ -25,7 +25,6 @@ import ( "github.com/kelseyhightower/envconfig" corev1 "k8s.io/api/core/v1" - "k8s.io/apimachinery/pkg/util/sets" "k8s.io/apimachinery/pkg/util/uuid" "k8s.io/client-go/tools/leaderelection/resourcelock" @@ -79,11 +78,6 @@ type Config struct { LeaseDuration time.Duration RenewDeadline time.Duration RetryPeriod time.Duration - - // This field is deprecated and will be removed once downstream - // repositories have removed their validation of it. - // TODO(https://github.com/knative/pkg/issues/1478): Remove this field. - EnabledComponents sets.String } func (c *Config) GetComponentConfig(name string) ComponentConfig {