Skip to content

Commit

Permalink
Merge branch 'release/1.6.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
kbahr committed Apr 4, 2019
2 parents 877b26d + a553b65 commit e24268e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,13 @@ public io.netifi.proteus.springboot.support.ProteusConfigurer propertiesBasedPro
connectionType = ec2Properties.getConnectionType();
break;
case "consul":
ConsulProperties consulProperties = new ConsulProperties();
ConsulProperties consulProperties = discovery.getConsulProperties();
ConsulDiscoveryConfig consulDiscoveryConfig = new ConsulDiscoveryConfig( consulProperties.getConsulURL(), consulProperties.getServiceName());
discoveryStrategy = DiscoveryStrategy.getInstance(consulDiscoveryConfig);
connectionType = consulProperties.getConnectionType();
break;
case "kubernetes":
KubernetesProperties kubernetesProperties = new KubernetesProperties();
KubernetesProperties kubernetesProperties = discovery.getKubernetesProperties();
KubernetesDiscoveryConfig kubernetesDiscoveryConfig = new KubernetesDiscoveryConfig(kubernetesProperties.getNamespace(), kubernetesProperties.getDeploymentName(), kubernetesProperties.getPortName());
discoveryStrategy = DiscoveryStrategy.getInstance(kubernetesDiscoveryConfig);
connectionType = kubernetesProperties.getConnectionType();
Expand Down

0 comments on commit e24268e

Please sign in to comment.