Skip to content

Commit

Permalink
chore (kubernetes-client) : Update commons-compress optional dependency
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
rohanKanojia committed Mar 18, 2024
1 parent cdb8908 commit 98f9101
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ public boolean upload(InputStream inputStream) {
} catch (Exception ex) {
throw KubernetesClientException.launderThrowable(ex);
}
}, "TarArchiveOutputStream is provided by commons-compress");
}, "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.");
}

@Override
Expand All @@ -433,7 +433,7 @@ public boolean upload(Path path) {
} catch (Exception ex) {
throw KubernetesClientException.launderThrowable(ex);
}
}, "TarArchiveOutputStream is provided by commons-compress");
}, "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.");
}

@Override
Expand Down Expand Up @@ -539,7 +539,7 @@ public void run() {
}.run();
} catch (NoClassDefFoundError e) {
throw new KubernetesClientException(
"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.");
"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.");
}
}

Expand Down

0 comments on commit 98f9101

Please sign in to comment.