Pārlūkot izejas kodu

do not err on missing CA, fix request logging

Grega Bremec 7 mēneši atpakaļ
vecāks
revīzija
24de8b0d7d

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

@@ -88,7 +88,6 @@ public class Activator {
             }
             if (!tlscaFile.exists()) {
                 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.
             LOG.info("Attempting to build SSLContext with " + tlscaFile.getAbsolutePath());
@@ -129,7 +128,7 @@ public class Activator {
 
     @POST
     public String createJob(JobDescription job) {
-        LOG.info("Sending request: " + this.apiserver);
+        LOG.info("Sending request: " + this.apiserver.get());
         String response = k8s.createJob(
                             "Bearer " + token.get(),
                             job.getNamespace(),