Skip to content

Commit 0ff78b4

Browse files
rohanKanojiamanusa
authored andcommitted
chore (kubernetes-client) : Update commons-compress optional dependency
warning to include commons-io as well Update warning message in OptionalDependencyWrapper to include both commons-compress and commons-io dependencies for using Pod read/copy functionality Signed-off-by: Rohan Kumar <[email protected]>
1 parent 5bc84b3 commit 0ff78b4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

kubernetes-client/src/main/java/io/fabric8/kubernetes/client/dsl/internal/core/v1/PodOperationsImpl.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ public boolean upload(InputStream inputStream) {
422422
} catch (Exception ex) {
423423
throw KubernetesClientException.launderThrowable(ex);
424424
}
425-
}, "TarArchiveOutputStream is provided by commons-compress");
425+
}, "TarArchiveOutputStream is provided by commons-compress, an optional dependency. To use the read/copy functionality you must explicitly add commons-compress and commons-io dependency to the classpath.");
426426
}
427427

428428
@Override
@@ -433,7 +433,7 @@ public boolean upload(Path path) {
433433
} catch (Exception ex) {
434434
throw KubernetesClientException.launderThrowable(ex);
435435
}
436-
}, "TarArchiveOutputStream is provided by commons-compress");
436+
}, "TarArchiveOutputStream is provided by commons-compress, an optional dependency. To use the read/copy functionality you must explicitly add commons-compress and commons-io dependency to the classpath.");
437437
}
438438

439439
@Override
@@ -539,7 +539,7 @@ public void run() {
539539
}.run();
540540
} catch (NoClassDefFoundError e) {
541541
throw new KubernetesClientException(
542-
"TarArchiveInputStream class is provided by commons-compress, an optional dependency. To use the read/copy functionality you must explicitly add this dependency to the classpath.");
542+
"TarArchiveInputStream class is provided by commons-compress, an optional dependency. To use the read/copy functionality you must explicitly add commons-compress and commons-io dependency to the classpath.");
543543
}
544544
}
545545

0 commit comments

Comments
 (0)