You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by he...@apache.org on 2020/07/08 13:18:16 UTC

[brooklyn-server] 06/20: Default kube config location

This is an automated email from the ASF dual-hosted git repository.

heneveld pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brooklyn-server.git

commit 05a857258f4e1b89167596ca6175e587bb4290d9
Author: Duncan Grant <du...@cloudsoft.io>
AuthorDate: Wed Jun 24 09:28:38 2020 +0100

    Default kube config location
---
 .../brooklyn/container/location/kubernetes/KubernetesLocationConfig.java | 1 +
 1 file changed, 1 insertion(+)

diff --git a/locations/container/src/main/java/org/apache/brooklyn/container/location/kubernetes/KubernetesLocationConfig.java b/locations/container/src/main/java/org/apache/brooklyn/container/location/kubernetes/KubernetesLocationConfig.java
index fabf300..237d80d 100644
--- a/locations/container/src/main/java/org/apache/brooklyn/container/location/kubernetes/KubernetesLocationConfig.java
+++ b/locations/container/src/main/java/org/apache/brooklyn/container/location/kubernetes/KubernetesLocationConfig.java
@@ -39,6 +39,7 @@ public interface KubernetesLocationConfig extends CloudLocationConfig {
     ConfigKey<String> KUBECONFIG = ConfigKeys.builder(String.class)
             .name("kubeconfig")
             .description("Kubernetes .kubeconfig file to use for Location configuration keys")
+            .defaultValue(System.getProperty("user.home") + "/.kube/config")
             .constraint(file -> Files.isReadable(Paths.get(file)))
             .build();