8000 `strategicMergePatches` seems to break CRDs · Issue #2117 · roboll/helmfile · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
strategicMergePatches seems to break CRDs #2117
Closed
@SohumB

Description

@SohumB

This is at least in v0.143.4, and is a regression from v0.143.0. If you have a chart that has CRDs and that has strategicMergePatches applied, and you're applying this against a cluster that already has said CRDs, you get something like this error:

COMMAND:
  kustomize build /tmp/sohum/chartify3067284263/monitoring/robusta/robusta --output /tmp/sohum/chartify3067284263/monitoring/robusta/robusta/all.patched.yaml

OUTPUT:
  Error: accumulating resources: accumulation err='accumulating resources from 'charts/kube-prometheus-stack/crds/crd-alertmanagers.yaml': may not add resource with an already registered id: CustomResourceDefinition.v1.apiextensions.k8s.io/alertmanagers.monitoring.coreos.com.[noNs]': got file 'crd-alertmanagers.yaml', but '/tmp/sohum/chartify3067284263/monitoring/robusta/robusta/charts/kube-prometheus-stack/crds/crd-alertmanagers.yaml' must be a directory to be a root]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0