Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add workload config implementation (#389)
* Small draft code to try out handlebars * Write design decision for handlebars * Add first swdds and first draft implementation * Fix reference and swdd tags * Add swdd for config renderer * Update rendered workloads only when state is updated * Implement update logic of expanded workloads * Rename workload variables * Skip rendering on no config assignment and introduce error type * Fix update of config item only * Remove in-place allocation of ConfigRenderer * Add comment * Fix server state utests * Add config renderer utests * Add update of configs utest and swdd * Add configs update utests for server state * Rename update_state method * Ignore configs for agent name handling in ank apply * Fix linkage in utest * Add completions for configs in object field mask Issue-Id: #267 * Improve log output in ank cli * Update only desiredState * Refactor set_state function and update plantuml * Write swdd for comparing rendered workloads * Split state format rendering * Fix wrong dependencies workload names in test data * Extract to constant var * Remove not needed references * First basic system test * Rename stest file * Remove notes file * Make utest more strict * Add more stests and link them * Add utests for config key and alias validation * Add config key format stest * Add stests for workload config refs and fix linkage * Add utests for ank apply * Remove duplicated utest * Adapt working with complete state section * Disable wait in utest * Merge main into branch and fix utest * Get rid of conversion in utest * Adapt quickstart doc * Adapt startup-configuration user doc * Extend user tutorial with configs * Add update and delete config user doc * Add comment about unrendered get complete state * Fix rust contol interface example * Add utest linkage * Add linkage to utest for config rendering * Fix missing swdd prefix in linkage * Wording in comment Co-authored-by: Kaloyan <36224699+krucod3@users.noreply.github.com> * Rename api_format method * Fix naming convention swdd rationale * Change swdd for selecting workloads for agents * Add newline to swdd rationale Co-authored-by: Kaloyan <36224699+krucod3@users.noreply.github.com> * Rename utest Co-authored-by: Kaloyan <36224699+krucod3@users.noreply.github.com> * Use mockall double for import Co-authored-by: Kaloyan <36224699+krucod3@users.noreply.github.com> * Output error message Co-authored-by: Kaloyan <36224699+krucod3@users.noreply.github.com> * Space in utest linkage Co-authored-by: Kaloyan <36224699+krucod3@users.noreply.github.com> * Change comment in utest Co-authored-by: Kaloyan <36224699+krucod3@users.noreply.github.com> * Fix comment in stest documentation * Fix comments for precondition * Remove config_key from workload config map and insert utest * Throw specific error upon not existing config key * Adapt doc agent field description Co-authored-by: Kaloyan <36224699+krucod3@users.noreply.github.com> * Change linkage to sub chapter Co-authored-by: Kaloyan <36224699+krucod3@users.noreply.github.com> * Remove plurar * Rename update state file in stest * Revert to normal yaml string Co-authored-by: Kaloyan <36224699+krucod3@users.noreply.github.com> --------- Co-authored-by: Holger Dormann <holger.dormann@elektrobit.com> Co-authored-by: Kaloyan <36224699+krucod3@users.noreply.github.com>
- Loading branch information