Fix Envoy policies using namespace in target ref

What does this MR do?

Fix Envoy policies using namespace in target ref

  • Envoy policies must target a Gateway in the same namespace and the namespace must not be specified in the spec.
  • If a Gateway in another namespace is configured, the chart will not omit those policies.

Fixes CI failures seen in https://gitlab.com/gitlab-org/charts/gitlab/-/jobs/12981572170

Relates #6256 (closed)

Closes #6269 (closed)

Author checklist

For general guidance, please follow our Contributing guide.

Required

For anything in this list which will not be completed, please provide a reason in the MR discussion.

  • Merge Request Title and Description are up to date, accurate, and descriptive.
  • MR targeting the appropriate branch.
  • MR has a green pipeline.
  • Documentation created/updated.
  • Tests added/updated, and test plan for scenarios not covered by automated tests.
  • Equivalent MR/issue for omnibus-gitlab opened.

Reviewers checklist

Edited by João Alexandre Cunha

Merge request reports

Loading