File tree Expand file tree Collapse file tree 5 files changed +1
-137
lines changed Expand file tree Collapse file tree 5 files changed +1
-137
lines changed Original file line number Diff line number Diff line change @@ -21,9 +21,7 @@ limitations under the License.
21
21
package feature
22
22
23
23
import (
24
- "k8s.io/apimachinery/pkg/util/runtime"
25
24
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
26
- clientfeatures "k8s.io/client-go/features"
27
25
"k8s.io/component-base/featuregate"
28
26
29
27
utilfeature "github.com/cert-manager/cert-manager/pkg/util/feature"
@@ -52,16 +50,6 @@ const (
52
50
53
51
func init () {
54
52
utilruntime .Must (utilfeature .DefaultMutableFeatureGate .Add (cainjectorFeatureGates ))
55
-
56
- // Register all client-go features with cert-manager's feature gate instance
57
- // and make all client-go feature checks use cert-manager's instance. The
58
- // effect is that client-go features are wired to the existing
59
- // --feature-gates flag just as all other features are. Further, client-go
60
- // features automatically support the existing mechanisms for feature
61
- // enablement metrics and test overrides.
62
- ca := utilfeature .NewClientGoAdapter (utilfeature .DefaultMutableFeatureGate )
63
- runtime .Must (clientfeatures .AddFeaturesToExistingFeatureGates (ca ))
64
- clientfeatures .ReplaceFeatureGates (ca )
65
53
}
66
54
67
55
// cainjectorFeatureGates defines all feature gates for the cainjector component.
Original file line number Diff line number Diff line change @@ -22,7 +22,6 @@ package feature
22
22
23
23
import (
24
24
"k8s.io/apimachinery/pkg/util/runtime"
25
- clientfeatures "k8s.io/client-go/features"
26
25
"k8s.io/component-base/featuregate"
27
26
28
27
utilfeature "github.com/cert-manager/cert-manager/pkg/util/feature"
@@ -150,16 +149,6 @@ const (
150
149
151
150
func init () {
152
151
runtime .Must (utilfeature .DefaultMutableFeatureGate .Add (defaultCertManagerFeatureGates ))
153
-
154
- // Register all client-go features with cert-manager's feature gate instance
155
- // and make all client-go feature checks use cert-manager's instance. The
156
- // effect is that client-go features are wired to the existing
157
- // --feature-gates flag just as all other features are. Further, client-go
158
- // features automatically support the existing mechanisms for feature
159
- // enablement metrics and test overrides.
160
- ca := utilfeature .NewClientGoAdapter (utilfeature .DefaultMutableFeatureGate )
161
- runtime .Must (clientfeatures .AddFeaturesToExistingFeatureGates (ca ))
162
- clientfeatures .ReplaceFeatureGates (ca )
163
152
}
164
153
165
154
// defaultCertManagerFeatureGates consists of all known cert-manager feature keys.
Original file line number Diff line number Diff line change @@ -21,9 +21,7 @@ limitations under the License.
21
21
package feature
22
22
23
23
import (
24
- "k8s.io/apimachinery/pkg/util/runtime"
25
24
utilruntime "k8s.io/apimachinery/pkg/util/runtime"
26
- clientfeatures "k8s.io/client-go/features"
27
25
"k8s.io/component-base/featuregate"
28
26
29
27
utilfeature "github.com/cert-manager/cert-manager/pkg/util/feature"
@@ -86,16 +84,6 @@ const (
86
84
87
85
func init () {
88
86
utilruntime .Must (utilfeature .DefaultMutableFeatureGate .Add (webhookFeatureGates ))
89
-
90
- // Register all client-go features with cert-manager's feature gate instance
91
- // and make all client-go feature checks use cert-manager's instance. The
92
- // effect is that client-go features are wired to the existing
93
- // --feature-gates flag just as all other features are. Further, client-go
94
- // features automatically support the existing mechanisms for feature
95
- // enablement metrics and test overrides.
96
- ca := utilfeature .NewClientGoAdapter (utilfeature .DefaultMutableFeatureGate )
97
- runtime .Must (clientfeatures .AddFeaturesToExistingFeatureGates (ca ))
98
- clientfeatures .ReplaceFeatureGates (ca )
99
87
}
100
88
101
89
// webhookFeatureGates defines all feature gates for the webhook component.
Original file line number Diff line number Diff line change 18
18
19
19
apiVersion : kind.x-k8s.io/v1alpha4
20
20
kind : Cluster
21
- featureGates :
22
- # Enable the WatchList / Streaming Lists feature on the API server.
23
- #
24
- # - https://kind.sigs.k8s.io/docs/user/configuration/#feature-gates
25
- # - https://kubernetes.io/docs/reference/using-api/api-concepts/#streaming-lists
26
- WatchList : true
27
-
28
21
kubeadmConfigPatches :
29
22
- |
30
23
kind: ClusterConfiguration
@@ -37,4 +30,4 @@ kubeadmConfigPatches:
37
30
networking:
38
31
serviceSubnet: 10.0.0.0/16
39
32
nodes :
40
- - role : control-plane
33
+ - role : control-plane
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments