Skip to content

Commit

Permalink
Merge pull request #1354 from jglick/warning
Browse files Browse the repository at this point in the history
  • Loading branch information
fusesource-ci authored Feb 11, 2019
2 parents 22844fc + 012f6cb commit 8917160
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@

* Fix #1348: support `v1beta1` version for `ExecCredentials`

* Fix #1354: suppress log warnings that `CustomResourceDefinition`s are still in beta

Dependency Upgrade

* Updated jackson to 2.9.8
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,12 @@ private static boolean isUnstable(String version) {
}

private static void alert(String type, String version) {
LOG.warn("The client is using resource type '{}' with unstable version '{}'", type, version);
String message = "The client is using resource type '{}' with unstable version '{}'";
if (type.equals("customresourcedefinitions") && version.equals("v1beta1")) {
LOG.debug(message, type, version);
} else {
LOG.warn(message, type, version);
}
}

}

0 comments on commit 8917160

Please sign in to comment.