Rails: Add validation for image_pull_secrets when using shared namespace mode

What does this MR do and why?

  • Add model validation in RemoteDevelopment::WorkspacesAgentConfig to ensure every item in image_pull_secrets in the workspace_agent_configs table, the namespace attribute should be the same as shared_namespace column on the workspace_agent_configs table if shared_namespace is not nil.
  • Update the unit tests at ee/spec/models/remote_development/workspaces_agent_config_spec.rb and the integration tests at ee/spec/models/remote_development/workspace_spec.rb.

References

Rails: Add validation for image_pull_secrets wh... (#519276 - closed) • Vishal Tak, jp-govau • 18.0

Screenshots or screen recordings

Before After

How to set up and validate locally

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