Use the application name as the default local service id in KubernetesDiscovery.

This commit is contained in:
Ioannis Canellos
2016-04-05 13:20:33 +03:00
parent 2f7fcb5c33
commit ce50f8c690

View File

@@ -16,12 +16,15 @@
package io.fabric8.spring.cloud.discovery;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties("spring.cloud.kubernetes.discovery")
public class KubernetesDiscoveryProperties {
private boolean enabled = true;
@Value("${spring.application.name:unknown}")
private String serviceName = "unknown";
public boolean isEnabled() {