Skip to content

Clarify ParentRef Uniqueness with Port and SectionName #2326

@robscott

Description

@robscott

Currently the webhook and CEL validation consider the following valid:

- name: "foo"
  sectionName: "bar"
- name: "foo"
  port: 80

I personally don't think these should be considered unique and instead we should only consider parentRefs unique if:

  1. They both specify different section names
    OR
  2. They both specify different port numbers

Since the port field in parentRef is still experimental, we still have a window to tighten this validation if we want to.

Thanks to @gauravkghildiyal for catching this in #2320!

Metadata

Metadata

Assignees

Labels

kind/cleanupCategorizes issue or PR as related to cleaning up code, process, or technical debt.priority/important-soonMust be staffed and worked on either currently, or very soon, ideally in time for the next release.release-blockerMUST be completed to complete the milestone

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions