Introduce create desired_config chain in the "create" step of the workspace

Issue: Shadow run: create kubernetes manifest in works... (#538163 - closed) • Ashvin Sharma • 18.2 • At risk

What does this MR do and why?

Old MR description

This MR will introduce an ROP chain to create desired_config in the create step. It is similar to the logic in reconcile step except for following changes

  • devfile_parser.rb is split to three different files adhering to SRP. These files are
    • devfile_parser_getter.rb - Call the devfile-gem gets the Kubernetes object against a devfile.
    • devfile_resource_modifier.rb - Modifies the objects from the previous step.
    • devfile_resource_appender.rb - Appends more Kubernetes resources to the desired_config like NetworkPolicy, ConfigMaps, Secrets etc.

References

Issue: Shadow run: create kubernetes manifest in works... (#538163 - closed) • Ashvin Sharma • 18.2 • At risk

Screenshots or screen recordings

This MR does not contain any UI change.

How to set up and validate locally

This file is not used anywhere currently. Run smoke-test to ensure it is working as expected

scripts/remote_development/run-smoke-test-suite.sh

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Ashvin Sharma

Merge request reports

Loading