Store the Kubernetes objects created when using managed resources

What does this MR do and why?

Store the Kubernetes objects created when using managed resources

We need to keep track of which resources were created, so that we know which resources to delete when the environment is stopped.

This change alone doesn't have any effect on the current behaviour. A follow-up MR will use the stored information to trigger deletion when the environment is stopped/deleted.

References

#507486 (closed)

How to set up and validate locally

  1. Follow the instructions in !177525 (merged) to create a managed resource record.
  2. In a Rails console, verify that the resources created were persisted with Clusters::Agents::ManagedResource.last.tracked_objects.

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.

Related to #507486 (closed)

Edited by Tiger Watson

Merge request reports

Loading