You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As soon as we try to start synchronization, the application freezes with an error
ComparisonError: Failed to load target state: failed to generate manifest forsource 2 of 2: rpc error: code = FailedPrecondition desc = Failed to unmarshal "config.yaml": <nil>
Experimentally, we found out that reading config.yml starts to break as soon as we add these two parameters.
kind: EC2NodeClassgroup: karpenter.k8s.aws
If we remove them, the application starts to work correctly.
We also tried to reproduce the problem directly by running the helm template with this config.yaml and our diagram for argo-cd, but we were unable to reproduce this problem.
To Reproduce
Make helm chart with the following template
{{- if .Values.karpenterNodePools }}{{- range .Values.karpenterNodePools }}{{- $namespace := $.Release.Namespace }}{{- $apiVersion := .apiVersion }}{{- if not $apiVersion }}{{- $apiVersion = "karpenter.sh/v1beta1" }}{{- end }}{{- $name := .name }}{{- $spec := .spec }}
---
apiVersion: {{ $apiVersion }}kind: NodePoolmetadata:
name: {{ $namespace }}-{{ $name }}spec:
{{- if $spec }}{{- toYaml .spec | nindent 2 }}{{- end }}
...
{{- end }}{{- end }}
IIRC, the code tries to be smart and looks to see if the yaml/json contains "apiVersion,kind,metadata" and if it does, it treats the yaml as a Kubernetes resource.
Checklist:
argocd version
.Describe the bug
Through the helm chart, argo-cd should deploy the following manifests to kubernetes
We also use this helm template in our helm chart
and this
config.yaml
As soon as we try to start synchronization, the application freezes with an error
Experimentally, we found out that reading
config.yml
starts to break as soon as we add these two parameters.If we remove them, the application starts to work correctly.
We also tried to reproduce the problem directly by running the
helm template
with thisconfig.yaml
and our diagram for argo-cd, but we were unable to reproduce this problem.To Reproduce
Expected behavior
Argo-CD should correctly process the following
config.yaml
fileScreenshots


Version
Logs
The text was updated successfully, but these errors were encountered: