kubevela / prism

API Extensions for core KubeVela.
Apache License 2.0
12 stars 10 forks source link

BUG: failed to list resources: secrets "grafana.default" not found #39

Open hprotzek opened 1 year ago

hprotzek commented 1 year ago

As soon as we install the vela-prism addon, either per vela addon or helm chart, we can't create cluster backups with velero or gke backup anymore as it seems something is missing:

failed to list resources: secrets "grafana.default" not found
time="2023-06-28T11:22:42Z" level=error msg="Error listing items" backup=velero/cluster-backup-hp-test error="secrets \"grafana.default\" not found" group=o11y.prism.oam.dev/v1alpha1 logSource="pkg/backup/item_collector.go:332" namespace= resource=grafanadashboards

After removing vela-prims the problem is gone. Whats missing there and how can we fix it?

hprotzek commented 1 year ago

@Somefive Any idea how we can get rid/fix this probem?

SimonVHB commented 1 year ago

The error happens when listing the grafana dashboard resources:

$ kubectl get grafanadashboards.o11y.prism.oam.dev
Error from server (NotFound): Unable to list "o11y.prism.oam.dev/v1alpha1, Resource=grafanadashboards": secrets "grafana.default" not found

We have not created any grafana related prism objects, but we expect it to say that there are no resources, instead of throwing an error.