Persist desired kubernetes configuration on workspace creation
MR:
Description
This issue should be taken up after the shadow run of the new desired_config_generator logic is successful. In other words,
- Both old and new configurations(after injecting secrets) are the same.
- New configuration should not have secret data.
After ensuring that the new logic is running as expected. Persist the configuration returned from Create::DesiredConfig::Generator. This configuration should be fetched from the database during the reconciliation step.
Acceptance criteria
-
desired_configshould be created while creating the workspace -
desired_configshould be persisted in the database -
During reconciliation step, this desired_configshould be fetched from the database and returned after injecting the secrets with data.
Implementation plan
- Remove the files
ee/lib/remote_development/workspace_operations/reconcile/output/config_to_apply_shadow_run_handler.rbee/lib/remote_development/workspace_operations/reconcile/output/desired_config_fetcher.rbee/lib/remote_development/workspace_operations/reconcile/output/old_config_values_extractor.rbee/lib/remote_development/workspace_operations/reconcile/output/old_desired_config_generator.rbee/lib/remote_development/workspace_operations/reconcile/output/old_devfile_parser.rbee/lib/remote_development/workspace_operations/reconcile/output/old_scripts_configmap_appender.rb
- Delete all the related spec files.
- Remove
DesiredConfigFetchercall fromresponse_payload_builder.rb.
Edited by 🤖 GitLab Bot 🤖