Skip to content

Commit

Permalink
Support setting the scheme in the readinessProbe, issue fabric8io#5909
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurt Stam authored and dhirajsb committed Apr 8, 2016
1 parent 9800dfe commit 7aeec7e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7aeec7e

Please sign in to comment.