@@ -251,7 +251,7 @@ func TestUnconfiguredManifests(t *testing.T) {
251
251
t .Fatal (err )
252
252
}
253
253
254
- _ , err = f .AlertmanagerMain (nil )
254
+ _ , err = f .AlertmanagerMain ()
255
255
if err != nil {
256
256
t .Fatal (err )
257
257
}
@@ -3041,9 +3041,7 @@ func TestAlertmanagerMainStartupProbe(t *testing.T) {
3041
3041
t .Fatal (err )
3042
3042
}
3043
3043
f := NewFactory ("openshift-monitoring" , "openshift-user-workload-monitoring" , c , tc .infrastructure , & fakeProxyReader {}, NewAssets (assetsPath ), & APIServerConfig {}, & configv1.Console {})
3044
- a , err := f .AlertmanagerMain (
3045
- & v1.ConfigMap {ObjectMeta : metav1.ObjectMeta {Name : "foo" }},
3046
- )
3044
+ a , err := f .AlertmanagerMain ()
3047
3045
if err != nil {
3048
3046
t .Fatal (err )
3049
3047
}
@@ -3115,9 +3113,7 @@ ingress:
3115
3113
})
3116
3114
3117
3115
f := NewFactory ("openshift-monitoring" , "openshift-user-workload-monitoring" , c , defaultInfrastructureReader (), & fakeProxyReader {}, NewAssets (assetsPath ), & APIServerConfig {}, & configv1.Console {Status : configv1.ConsoleStatus {ConsoleURL : "https://console-openshift-console.apps.foo.devcluster.openshift.com" }})
3118
- a , err := f .AlertmanagerMain (
3119
- & v1.ConfigMap {ObjectMeta : metav1.ObjectMeta {Name : "foo" }},
3120
- )
3116
+ a , err := f .AlertmanagerMain ()
3121
3117
if err != nil {
3122
3118
t .Fatal (err )
3123
3119
}
@@ -4360,9 +4356,7 @@ func TestNonHighlyAvailableInfrastructure(t *testing.T) {
4360
4356
{
4361
4357
name : "Alertmanager" ,
4362
4358
getSpec : func (f * Factory ) (spec , error ) {
4363
- a , err := f .AlertmanagerMain (
4364
- & v1.ConfigMap {ObjectMeta : metav1.ObjectMeta {Name : "foo" }},
4365
- )
4359
+ a , err := f .AlertmanagerMain ()
4366
4360
if err != nil {
4367
4361
return spec {}, err
4368
4362
}
0 commit comments