Make KubernetesServiceInstance compatible with 1.1.0.BUILD-SNAPSHOT version of spring-cloud.

This commit is contained in:
Ioannis Canellos
2016-04-27 19:30:41 +03:00
parent 282d4a413f
commit 83157d55a2

View File

@@ -22,6 +22,9 @@ import org.springframework.cloud.client.ServiceInstance;
import java.net.URI;
import java.net.URISyntaxException;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import static io.fabric8.kubernetes.client.utils.Utils.isNotNullOrEmpty;
import static io.fabric8.kubernetes.client.utils.Utils.isNullOrEmpty;
@@ -95,4 +98,8 @@ public class KubernetesServiceInstance implements ServiceInstance {
throw new RuntimeException(e);
}
}
public Map<String, String> getMetadata() {
return Collections.EMPTY_MAP;
}
}