소스 검색

do not err on missing CA, fix request logging

Grega Bremec 7 달 전
부모
커밋
24de8b0d7d
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  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()) {
                 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(),