From 7aeec7ecff0ed057ca657bfcfe741abd40528e38 Mon Sep 17 00:00:00 2001 From: Kurt Stam Date: Wed, 6 Apr 2016 09:52:51 -0400 Subject: [PATCH] Support setting the scheme in the readinessProbe, issue #5909 --- .../src/main/java/io/fabric8/maven/JsonMojo.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/fabric8-maven-plugin/src/main/java/io/fabric8/maven/JsonMojo.java b/fabric8-maven-plugin/src/main/java/io/fabric8/maven/JsonMojo.java index 9ea15006d50..2cf034b4aaa 100644 --- a/fabric8-maven-plugin/src/main/java/io/fabric8/maven/JsonMojo.java +++ b/fabric8-maven-plugin/src/main/java/io/fabric8/maven/JsonMojo.java @@ -1560,10 +1560,14 @@ private HTTPGetAction getHTTPGetAction(String prefix, Properties properties) { String httpGetPath = properties.getProperty(prefix + ".httpGet.path"); String httpGetPort = properties.getProperty(prefix + ".httpGet.port"); String httpGetHost = properties.getProperty(prefix + ".httpGet.host"); + String httpGetScheme = properties.getProperty(prefix + ".httpGet.scheme"); if (Strings.isNotBlank(httpGetPath)) { action = new HTTPGetAction(); action.setPath(httpGetPath); action.setHost(httpGetHost); + if (Strings.isNotBlank(httpGetScheme)) { + action.setScheme(httpGetScheme.toUpperCase()); + } if (Strings.isNotBlank(httpGetPort)) { IntOrString httpGetPortIntOrString = KubernetesHelper.createIntOrString(httpGetPort); action.setPort(httpGetPortIntOrString);