Fix validation bug for shared namespace

Issue: Rails: Fix shared_namespace validation (#538948 - closed)

What does this MR do and why?

https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/#namespaces-and-dns states that

all namespace names must be valid RFC 1123 DNS labels.

Which is defined at https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#dns-label-names

This MR fixes validation bug for shared namespace to comply with the above mentioned information.

Co-Authored-By: Jack Parry jack.parry@acsc.cloud

This was originally part of Rails: Add validation for image_pull_secrets wh... (!186193 - closed) . I have taken over that MR due to inactivity. I have split that original MR into 2 MRs to keep the changes cohesive. One is this MR and another is Add validations for image pull secrets and shar... (!190059 - merged) .

References

Screenshots or screen recordings

N.A.

How to set up and validate locally

  1. Run the unit tests.

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 Vishal Tak

Merge request reports

Loading