Skip to content

install.yml duplicates VAP: safe-upgrades.gateway.networking.k8s.io #9191

Description

@VannTen

Description:

What issue is being seen? Describe what should be happening instead of
the bug, for example: The expected value isn't returned, etc.

The install.yaml file in the 1.8.1 release duplicate the safe-upgrades.gateway.networking.k8s.io VAP.
From the helm comments here, it comes from

  • gateway-helm/charts/crds/templates/gatewayapi-safe-upgrade-policy.yaml
  • gateway-crds-helm/templates/experimental-gatewayapi-crds.yaml

This breaks kustomize using install.yaml as a resource

Repro steps:

$ kustomize build .
Error: accumulating resources: accumulation err='accumulating resources from 'https://github.com/envoyproxy/gateway/releases/download/v1.8.1/install.yaml': may not add resource with an already registered id: ValidatingAdmissionPolicy.v1.admissionregistration.k8s.io/safe-upgrades.gateway.networking.k8s.io.[noNs]': evalsymlink failure on '/tmp/kustomize-879260944/releases/download/v1.8.1/install.yaml' : lstat /tmp/kustomize-879260944/releases: no such file or directory

With a kustomization.yaml like this:

apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization

namespace: api-gateway

resources:
  - https://github.com/envoyproxy/gateway/releases/download/v1.8.1/install.yaml

Environment:
v.1.8.1

Logs:
N/A

I suspect this come from #9024 somehow, but not sure how has I don't know how install.yaml is generated exactly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions