Skip to content

Generated annotations too long leading to issues when CRD is being applied #3549

Open
@salonichf5

Description

@salonichf5

Describe the bug

The NginxProxy got more complex when support for HPA was added by community member. CRD annotations generate led to the error when being applied.

k apply -f config/crd/bases
The CustomResourceDefinition "nginxproxies.gateway.nginx.org" is invalid: metadata.annotations: Too long: may not be more than 262144 bytes

This issue does not occur when we do a kubectl create

To Reproduce
Steps to reproduce the behavior:

  1. Checkout the pull request
  2. remove :maxDescLen=0 from generate-crds make command
  3. run make generate-all
  4. Now, try to create the crds using k create -f config/crd/bases
  5. try to apply it next k apply -f config/crd/bases

Expected behavior

  1. k apply -f config/crd/bases should apply all CRDs without any error message

Your environment

  • Version of the NGINX Gateway Fabric - release version or a specific commit. The first line of the nginx-gateway container logs includes the commit info. - v2.0.1
  • Version of Kubernetes - 1.25

Additional context
Add any other context about the problem here. Any log files you want to share.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    Status

    🆕 New

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions