We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 419f4d4 commit 5cb514dCopy full SHA for 5cb514d
operator-framework-core/src/main/java/io/javaoperatorsdk/operator/Operator.java
@@ -45,9 +45,11 @@ public void start() {
45
log.info("Client version: {}", Version.clientVersion());
46
try {
47
final var k8sVersion = k8sClient.getVersion();
48
- log.info("Server version: {}.{}", k8sVersion.getMajor(), k8sVersion.getMinor());
+ if (k8sVersion != null) {
49
+ log.info("Server version: {}.{}", k8sVersion.getMajor(), k8sVersion.getMinor());
50
+ }
51
} catch (Exception e) {
- log.error("Not connected to any cluster. Exiting!");
52
+ log.error("Error retrieving the server version. Exiting!", e);
53
System.exit(1);
54
}
55
0 commit comments