Skip to content

Envoy Gateway Installation with Argo CD Fails Due to Annotation Size Limit #5546

@djbulsink

Description

@djbulsink

Description:
When installing Envoy Gateway with Argo CD, the following error occurs:

error when patching "/dev/shm/3535441978": CustomResourceDefinition.apiextensions.k8s.io "envoyproxies.gateway.envoyproxy.io" is invalid: metadata.annotations: Too long: may not be more than 262144 bytes

This error is caused by the large size of the manifest. When applying the manifest using kubectl apply, the limit of 262144 bytes is not reached. However, when using Argo CD or kubectl apply with additional annotations, the manifest exceeds this limit.

Repro steps:

Using Argo CD

Create an Application resource with the following configuration:

apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
  name: envoy-gateway
  namespace: operators
spec:
  destination:
    namespace: envoy-gateway
    server: https://kubernetes.default.svc
  project: default
  source:
    chart: gateway-helm
    helm:
      valuesObject: {}
    repoURL: docker.io/envoyproxy
    targetRevision: v1.3.1
  syncPolicy:
    syncOptions:
    - CreateNamespace=true
    - RespectIgnoreDifferences=true

Using kubectl

The issue is also reproducible by applying the EnvoyProxies Custom Resource Definition (CRD) directly using kubectl apply:

kubectl apply -f https://raw.githubusercontent.com/envoyproxy/gateway/refs/heads/release/v1.3/charts/gateway-helm/crds/generated/gateway.envoyproxy.io_envoyproxies.yaml

This results in the following error:

The CustomResourceDefinition "envoyproxies.gateway.envoyproxy.io" is invalid: metadata.annotations: Too long: may not be more than 262144 bytes

Environment:
Helm chart version: v1.3.1

Logs:

error when patching "/dev/shm/3535441978": CustomResourceDefinition.apiextensions.k8s.io "envoyproxies.gateway.envoyproxy.io" is invalid: metadata.annotations: Too long: may not be more than 262144 bytes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions