robusta-dev / robusta

Better Prometheus alerts for Kubernetes - smart grouping, AI enrichment, and automatic remediation
https://home.robusta.dev/
MIT License
2.61k stars 254 forks source link

At least one sink must be defined - Using ArgoCD #1357

Open AlissonRS opened 7 months ago

AlissonRS commented 7 months ago

I used robusta CLI to generate a generated_values.yaml for me.

This is how it looks:

globalConfig:
  signing_key: <some_guid>
  account_id: <some_guid>
sinksConfig:
  - discord_sink:
      name: personal_discord_sink
      url: https://discord.com/api/webhooks/123456789
disableCloudRouting: true
runner:
  sendAdditionalTelemetry: true
clusterName: my-cluster

So it does have a sink (using my actual webhook URL), but installing it with Helm via ArgoCD produces the error below:

failed exit status 1: Error: execution error at (Robusta/charts/robusta/templates/playbooks-config.yaml:9:7): At least one sink must be defined! Use --debug flag to render out invalid YAML

From Argo UI we can see the parameter is detected (so it's properly formatted):

image

If I install the exact same values.yaml via helm CLI from my local machine, it works fine, it's only failing via Argo.

Not sure if it makes a difference, but it's actually being installed as a subchart as I'm using Argo's ApplicationSet.

github-actions[bot] commented 7 months ago

Hi 👋, thanks for opening an issue! Please note, it may take some time for us to respond, but we'll get back to you as soon as we can!

aantn commented 7 months ago

Weird, not sure what is going on. Is there a way to get more debug info out of Argo?

Or could you share more details including the Argo ApplicationSet and any other relevant config?