1919import com .github .dockerjava .api .DockerClient ;
2020import java .io .File ;
2121import java .io .IOException ;
22- import java .util .Map ;
2322import java .io .InputStream ;
2423import java .io .OutputStream ;
2524import java .io .UncheckedIOException ;
2625import java .nio .file .Files ;
2726import java .nio .file .Paths ;
2827import java .time .Duration ;
28+ import java .util .Map ;
2929import org .apache .commons .compress .utils .IOUtils ;
3030import org .testcontainers .DockerClientFactory ;
3131import org .testcontainers .containers .BindMode ;
@@ -106,15 +106,13 @@ private static void patchInsecureEnvVar() {
106106 "jsonpath={.data.100-inline-config\\ .yaml}" );
107107
108108 if (patchResult .getExitCode () != 0 ) {
109- throw new RuntimeException (
110- "Failed to read configmap: " + patchResult .getStderr ());
109+ throw new RuntimeException ("Failed to read configmap: " + patchResult .getStderr ());
111110 }
112111
113112 String config = patchResult .getStdout ();
114113 if (config .contains ("FLYTE_PLATFORM_INSECURE: true" )) {
115- String patched = config .replace (
116- "FLYTE_PLATFORM_INSECURE: true" ,
117- "FLYTE_PLATFORM_INSECURE: 'true'" );
114+ String patched =
115+ config .replace ("FLYTE_PLATFORM_INSECURE: true" , "FLYTE_PLATFORM_INSECURE: 'true'" );
118116
119117 ExecResult applyResult =
120118 INSTANCE .execInContainer (
@@ -126,8 +124,7 @@ private static void patchInsecureEnvVar() {
126124 + "' --dry-run=client -o yaml | kubectl apply -f -" );
127125
128126 if (applyResult .getExitCode () != 0 ) {
129- throw new RuntimeException (
130- "Failed to patch configmap: " + applyResult .getStderr ());
127+ throw new RuntimeException ("Failed to patch configmap: " + applyResult .getStderr ());
131128 }
132129
133130 // Restart flyte-sandbox pod to pick up the new config
0 commit comments