Create a Value Object for desired_config

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

What does this MR do and why?

Create a Value Object for desired_config

This class is created to manage desired_config easily. It validates against Kubernetes schema, does diff of two same objects and checks the order of the enclosing items we apply to the Kubernetes.

This MR contains

  1. JSON Schema of Kubernetes objects from https://github.com/yannh/kubernetes-json-schema.
  2. Value Object desired_config and it's spec.

References

&17483 (comment 2477279327)

Refactor workspaces term config_to_apply to des... (#525468 - closed)

Screenshots or screen recordings

No UI changes

How to set up and validate locally

Run tests for

ee/spec/lib/remote_development/workspace_operations/reconcile/output/desired_config_generator_spec.rb

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 Chad Woolley

Merge request reports

Loading