Closed
Description
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
Labels
No labels