File tree Expand file tree Collapse file tree
systemtest/src/main/java/io/strimzi/systemtest/resources/operator Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55package io .strimzi .systemtest .resources .operator ;
66
77import io .fabric8 .kubernetes .api .model .Namespace ;
8- import io .fabric8 .kubernetes .api .model .NamespaceBuilder ;
98import io .skodjob .testframe .enums .InstallType ;
109import io .skodjob .testframe .installation .InstallationMethod ;
1110import io .skodjob .testframe .resources .KubeResourceManager ;
1211import io .strimzi .systemtest .Environment ;
12+ import io .strimzi .systemtest .utils .kubeUtils .NamespaceUtils ;
1313
1414/**
1515 * Class for handling the installation of ClusterOperator.
@@ -127,12 +127,7 @@ public void createClusterOperatorNamespace() {
127127 }
128128 }
129129
130- KubeResourceManager .get ().createResourceWithWait (new NamespaceBuilder ()
131- .withNewMetadata ()
132- .withName (clusterOperatorConfiguration .getNamespaceName ())
133- .endMetadata ()
134- .build ()
135- );
130+ NamespaceUtils .createNamespaceAndPrepare (clusterOperatorConfiguration .getNamespaceName ());
136131 }
137132
138133 /**
Original file line number Diff line number Diff line change 4242import java .io .File ;
4343import java .util .Arrays ;
4444import java .util .Collections ;
45+ import java .util .LinkedHashMap ;
4546import java .util .List ;
4647import java .util .Map ;
4748import java .util .function .Function ;
@@ -397,7 +398,12 @@ public static void deployClusterOperator(ClusterOperatorConfiguration clusterOpe
397398
398399 // Map the current envVars list to Map for easier manipulation
399400 Map <String , EnvVar > envVarMap = envVars .stream ()
400- .collect (Collectors .toMap (EnvVar ::getName , Function .identity ()));
401+ .collect (Collectors .toMap (
402+ EnvVar ::getName ,
403+ Function .identity (),
404+ (existing , replacement ) -> existing ,
405+ LinkedHashMap ::new
406+ ));
401407
402408 // Adding custom evn vars specified by user in installation
403409 if (clusterOperatorConfiguration .getExtraEnvVars () != null ) {
You can’t perform that action at this time.
0 commit comments