Skip to content

Commit

Permalink
Switch to apiman.io annotation fabric8io#349
Browse files Browse the repository at this point in the history
  • Loading branch information
Kurt Stam committed Jun 9, 2016
1 parent fde8ddc commit b8dde5d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public AvailableApiBean createAvailableApiBean(Service service, Map<String,Strin
bean = new AvailableApiBean();
Map<String,String> annotations = service.getMetadata().getAnnotations();
String port = "";
if (service.getSpec().getPorts().size() > 0) port = String.valueOf(service.getSpec().getPorts().get(0).getPort());
if (service.getSpec().getPorts().size() > 0) port = String.valueOf(service.getSpec().getPorts().get(0).getTargetPort().getIntVal());
String scheme = "http";
if (annotations!=null && annotations.containsKey(SERVICE_SCHEME)) {
scheme = annotations.get(SERVICE_SCHEME);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,8 @@ private boolean isServiceReady(AvailableApiBean bean) {

private boolean isServiceRegisterToApiman(Service service) {
Map<String,String> annotations = service.getMetadata().getAnnotations();
if (annotations!=null && annotations.containsKey(OPENSHIFT_API_MANAGER)) {
return "apiman".equalsIgnoreCase(annotations.get(OPENSHIFT_API_MANAGER));
if (annotations!=null && annotations.containsKey(APIMAN_PUBLISH)) {
return true;
}
return false;
}
Expand Down

0 comments on commit b8dde5d

Please sign in to comment.