argoproj / argo-cd

Declarative Continuous Deployment for Kubernetes
https://argo-cd.readthedocs.io
Apache License 2.0
18.01k stars 5.49k forks source link

Issue when executing helm chart for kiali using values.yaml file. #19326

Open praveenkolan opened 3 months ago

praveenkolan commented 3 months ago

Checklist:

Describe the bug Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc = Manifest generation error (cached): failed to unmarshal manifest: error unmarshaling JSON: while decoding JSON: Object 'Kind' is missing in '{"auth":{"strategy":"anonymous"},"deployment":{"image_name":"imagehub.xxxxxx/xxxx/platform/kiali/kiali","image_version":"latest"},"external_services":{"custom_dashboards":{"enabled":true},"grafana":{"in_cluster_url":"http://kube-prometheus-stack-grafana.xxx-kube-prometheus-stack.svc.cluster.local/","url":""},"istio":{"root_namespace":"abcb-abcd"},"prometheus":{"url":"http://kube-prometheus-stack-prometheus.xxx-kube-prometheus-stack.svc.cluster.local:9090/"}},"istio_namespace":"istio-system"}'

To Reproduce

Expected behavior

Should be able to deploy the code Screenshots

Version v2.11.3

Paste the output from `argocd version` here.

Logs Failed to load target state: failed to generate manifest for source 1 of 1: rpc error: code = Unknown desc = Manifest generation error (cached): failed to unmarshal manifest: error unmarshaling JSON: while decoding JSON: Object 'Kind' is missing in '{"auth":{"strategy":"anonymous"},"deployment":{"image_name":"imagehub/kiali/kiali","image_version":"latest"},"external_services":{"custom_dashboards":{"enabled":true},"grafana":{"in_cluster_url":"http://kube-prometheus-stack-grafana.kube-prometheus-stack.svc.cluster.local/","url":""},"istio":{"root_namespace":"istio-system"},"prometheus":{"url":"http://kube-prometheus-stack-prometheus.kube-prometheus-stack.svc.cluster.local:9090/"}},"istio_namespace":"istio-system"}' Paste any relevant application logs here.

kiali.yaml file

apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: kiali-server finalizers:

values.yaml file the above kiali.yaml file is referring to.

auth: strategy: anonymous deployment: image_name: "imagehub.xxx.xxx:8080/xxxx/xxxxxxxx/kiali/kiali" image_version: latest

external_services: prometheus: url: http://kube-prometheus-stack-prometheus.kube-prometheus-stack.svc.cluster.local:9090/ grafana: url: "" in_cluster_url: "http://kube-prometheus-stack-grafana.kube-prometheus-stack.svc.cluster.local/" custom_dashboards: enabled: true istio: root_namespace: istio-system istio_namespace: istio-system

crenshaw-dev commented 3 months ago

Can you please reformat the pasted yaml and error logs for readability?