Skip to content

Implementations should report when a gateway name is too big #4464

@rikatz

Description

@rikatz

What would you like to be added:
A new Gateway condition, and a new conformance test that signals to the user when a name of a gateway is too big.

Why this is needed:
On our In Cluster GEP spec (https://gateway-api.sigs.k8s.io/geps/gep-1762/?h=cl#automated-deployments) we specify that the generated name of resources "SHOULD name all generated resources my-gateway-example (-).".

This causes problems on parts of the child resources that has limits on size (eg.: generated labels, service names, etc).

While we cannot add a restriction here, as it will become a breaking change, we need to provide our users a better experience to understand that a cluster may not be provisioned because the sum of a Gateway name and a gateway class name are too big.

Some ways of implementing it:

  • Having a VAP on the metadata.name of a Gateway that, when a sum of the length ".metadata.name + .spec.controllerName" > 63, block the creation - This can be breaking change for implementations that do not generate a child resource, so may not be the way to do it
  • Specify a new test or a new condition that says "when the size name + controller name violates the 63 limit, add a condition on a Gateway that this MAY be a problem"

Other ideas are welcome

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/featureCategorizes issue or PR as related to a new feature.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions