something went wrong while collecting envs [Bug] #1526
Labels
bug
Something isn't working
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Describe the bug
GrafanaDashboard resources without
envs
spec field set is failed to reconcile withsomething went wrong while collecting envs, error: dashboard.Spec.Envs or dashboard.Spec.EnvFrom nil, can't get envs for dashboard
error.However, according to docs both fields are optional:
![image](https://private-user-images.githubusercontent.com/7482065/329550501-0e068da9-1e5a-46e0-a66d-b758b6833827.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkzMzExNzQsIm5iZiI6MTczOTMzMDg3NCwicGF0aCI6Ii83NDgyMDY1LzMyOTU1MDUwMS0wZTA2OGRhOS0xZTVhLTQ2ZTAtYTY2ZC1iNzU4YjY4MzM4MjcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMiUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTJUMDMyNzU0WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MWUzNTA0NjhkY2FiYzE0NTQ1YzFjMTU4MTFhOGY0YzZhODhmOTc0NzExNTk1NTc1NDhkZjM3NjI5NjVmN2U1OSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.nISux6s3sVtTlb0f7v9Q_XtNletnNRDmWU7CiwZZBjI)
Version
Full semver version of the operator being used - 5.9.0
To Reproduce
Steps to reproduce the behavior:
Example of dashboard resource
Expected behavior
Expected to reconcile dashboard successfully.
Suspect component/Location where the bug might be occurring
I think there is a bug here which triggers throwing error on empty 'envFrom' and 'envs' fields.
Runtime:
The text was updated successfully, but these errors were encountered: