File tree 3 files changed +8
-27
lines changed
3 files changed +8
-27
lines changed Original file line number Diff line number Diff line change @@ -2751,13 +2751,7 @@ func TestMutatePod(t *testing.T) {
2751
2751
},
2752
2752
},
2753
2753
},
2754
- setFeatureGates : func (t * testing.T ) {
2755
- originalVal := featuregate .EnableApacheHTTPAutoInstrumentationSupport .IsEnabled ()
2756
- require .NoError (t , colfeaturegate .GlobalRegistry ().Set (featuregate .EnableApacheHTTPAutoInstrumentationSupport .ID (), true ))
2757
- t .Cleanup (func () {
2758
- require .NoError (t , colfeaturegate .GlobalRegistry ().Set (featuregate .EnableApacheHTTPAutoInstrumentationSupport .ID (), originalVal ))
2759
- })
2760
- },
2754
+ config : config .New (config .WithEnableApacheHTTPInstrumentation (true )),
2761
2755
},
2762
2756
{
2763
2757
name : "apache httpd injection feature gate disabled" ,
@@ -2832,13 +2826,7 @@ func TestMutatePod(t *testing.T) {
2832
2826
},
2833
2827
},
2834
2828
},
2835
- setFeatureGates : func (t * testing.T ) {
2836
- originalVal := featuregate .EnableApacheHTTPAutoInstrumentationSupport .IsEnabled ()
2837
- require .NoError (t , colfeaturegate .GlobalRegistry ().Set (featuregate .EnableApacheHTTPAutoInstrumentationSupport .ID (), false ))
2838
- t .Cleanup (func () {
2839
- require .NoError (t , colfeaturegate .GlobalRegistry ().Set (featuregate .EnableApacheHTTPAutoInstrumentationSupport .ID (), originalVal ))
2840
- })
2841
- },
2829
+ config : config .New (config .WithEnableApacheHTTPInstrumentation (false )),
2842
2830
},
2843
2831
2844
2832
{
Original file line number Diff line number Diff line change @@ -33,13 +33,12 @@ import (
33
33
34
34
var (
35
35
defaultAnnotationToGate = map [string ]* featuregate2.Gate {
36
- constants .AnnotationDefaultAutoInstrumentationJava : featuregate .EnableJavaAutoInstrumentationSupport ,
37
- constants .AnnotationDefaultAutoInstrumentationNodeJS : featuregate .EnableNodeJSAutoInstrumentationSupport ,
38
- constants .AnnotationDefaultAutoInstrumentationPython : featuregate .EnablePythonAutoInstrumentationSupport ,
39
- constants .AnnotationDefaultAutoInstrumentationDotNet : featuregate .EnableDotnetAutoInstrumentationSupport ,
40
- constants .AnnotationDefaultAutoInstrumentationGo : featuregate .EnableGoAutoInstrumentationSupport ,
41
- constants .AnnotationDefaultAutoInstrumentationApacheHttpd : featuregate .EnableApacheHTTPAutoInstrumentationSupport ,
42
- constants .AnnotationDefaultAutoInstrumentationNginx : featuregate .EnableNginxAutoInstrumentationSupport ,
36
+ constants .AnnotationDefaultAutoInstrumentationJava : featuregate .EnableJavaAutoInstrumentationSupport ,
37
+ constants .AnnotationDefaultAutoInstrumentationNodeJS : featuregate .EnableNodeJSAutoInstrumentationSupport ,
38
+ constants .AnnotationDefaultAutoInstrumentationPython : featuregate .EnablePythonAutoInstrumentationSupport ,
39
+ constants .AnnotationDefaultAutoInstrumentationDotNet : featuregate .EnableDotnetAutoInstrumentationSupport ,
40
+ constants .AnnotationDefaultAutoInstrumentationGo : featuregate .EnableGoAutoInstrumentationSupport ,
41
+ constants .AnnotationDefaultAutoInstrumentationNginx : featuregate .EnableNginxAutoInstrumentationSupport ,
43
42
}
44
43
)
45
44
Original file line number Diff line number Diff line change @@ -41,12 +41,6 @@ func TestUpgrade(t *testing.T) {
41
41
require .NoError (t , colfeaturegate .GlobalRegistry ().Set (featuregate .EnableGoAutoInstrumentationSupport .ID (), originalVal ))
42
42
})
43
43
44
- originalVal = featuregate .EnableApacheHTTPAutoInstrumentationSupport .IsEnabled ()
45
- require .NoError (t , colfeaturegate .GlobalRegistry ().Set (featuregate .EnableApacheHTTPAutoInstrumentationSupport .ID (), true ))
46
- t .Cleanup (func () {
47
- require .NoError (t , colfeaturegate .GlobalRegistry ().Set (featuregate .EnableApacheHTTPAutoInstrumentationSupport .ID (), originalVal ))
48
- })
49
-
50
44
originalVal = featuregate .EnableNginxAutoInstrumentationSupport .IsEnabled ()
51
45
require .NoError (t , colfeaturegate .GlobalRegistry ().Set (featuregate .EnableNginxAutoInstrumentationSupport .ID (), true ))
52
46
t .Cleanup (func () {
You can’t perform that action at this time.
0 commit comments