Skip to content

Commit

Permalink
Support for platform-related labels
Browse files Browse the repository at this point in the history
  • Loading branch information
kazhamiakin committed Jul 22, 2024
1 parent c7bc2da commit c6ad7d4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
public class ApplicationProperties {

private String url;
private String coreName;

public String getUrl() {
return url;
Expand All @@ -16,4 +17,12 @@ public String getUrl() {
public void setUrl(String applicationUrl) {
this.url = applicationUrl;
}

public String getCoreName() {
return coreName;
}

public void setCoreName(String coreName) {
this.coreName = coreName;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ public String console(Model model, HttpServletRequest request) {
}
}

config.put("REACT_APP_CORE_NAME", applicationProperties.getCoreName());

model.addAttribute("config", config);
return "console.html";
}
Expand Down
4 changes: 3 additions & 1 deletion src/main/resources/application.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ server:

# application
application.url: ${APPLICATION_URL:}
application.core-name: ${KRM_APPLICATION_CORE_NAME:dhcore}

#kubernetes
kubernetes:
Expand Down Expand Up @@ -74,4 +75,5 @@ management:
access:
roles:
- role: ROLE_USER
resources: "*"
resources: "*"

0 comments on commit c6ad7d4

Please sign in to comment.