-
Notifications
You must be signed in to change notification settings - Fork 300
Open
Description
SolutionTemplates are very useful, but the current requirement for a deployment when adding a new template introduces a lead time from when a user requests an addition to when it is deployed. I was wondering if there are any plans or considerations for enabling Solution Templates to be dynamically updated in the future. Do you have any plans for this?
athenz/servers/zms/src/main/java/com/yahoo/athenz/zms/ZMSImpl.java
Lines 1185 to 1209 in b2ab4ca
| void loadSolutionTemplates() { | |
| // get the configured path for the list of service templates | |
| String solutionTemplatesFname = System.getProperty(ZMSConsts.ZMS_PROP_SOLUTION_TEMPLATE_FNAME, | |
| getRootDir() + "/conf/zms_server/solution_templates.json"); | |
| Path path = Paths.get(solutionTemplatesFname); | |
| try { | |
| serverSolutionTemplates = JSON.fromBytes(Files.readAllBytes(path), SolutionTemplates.class); | |
| } catch (IOException ex) { | |
| LOG.error("Unable to parse solution templates file {}: {}", | |
| solutionTemplatesFname, ex.getMessage()); | |
| } | |
| if (serverSolutionTemplates == null) { | |
| LOG.error("Generating empty solution template list..."); | |
| serverSolutionTemplates = new SolutionTemplates(); | |
| serverSolutionTemplates.setTemplates(new HashMap<>()); | |
| serverSolutionTemplateNames = Collections.emptyList(); | |
| } else { | |
| serverSolutionTemplateNames = new ArrayList<>(serverSolutionTemplates.names()); | |
| Collections.sort(serverSolutionTemplateNames); | |
| } | |
| } |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels