Browse Source

do not err on missing CA, fix request logging

Grega Bremec 7 months ago
parent
commit
24de8b0d7d
1 changed files with 1 additions and 2 deletions
  1. 1 2
      src/main/java/net/p0f/k8s/demo/apiclient/Activator.java

+ 1 - 2
src/main/java/net/p0f/k8s/demo/apiclient/Activator.java

@@ -88,7 +88,6 @@ public class Activator {
             }
             }
             if (!tlscaFile.exists()) {
             if (!tlscaFile.exists()) {
                 LOG.warn("TLS CA file set, but does not exist: " + tlscaFile.getAbsolutePath());
                 LOG.warn("TLS CA file set, but does not exist: " + tlscaFile.getAbsolutePath());
-                // throw new RuntimeException("TLS CA cert file set, but does not exist.");
             }
             }
             // Try to build an SSLContext by using a PEM file.
             // Try to build an SSLContext by using a PEM file.
             LOG.info("Attempting to build SSLContext with " + tlscaFile.getAbsolutePath());
             LOG.info("Attempting to build SSLContext with " + tlscaFile.getAbsolutePath());
@@ -129,7 +128,7 @@ public class Activator {
 
 
     @POST
     @POST
     public String createJob(JobDescription job) {
     public String createJob(JobDescription job) {
-        LOG.info("Sending request: " + this.apiserver);
+        LOG.info("Sending request: " + this.apiserver.get());
         String response = k8s.createJob(
         String response = k8s.createJob(
                             "Bearer " + token.get(),
                             "Bearer " + token.get(),
                             job.getNamespace(),
                             job.getNamespace(),