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
Describe the bug
Fatal error: concurrent map writes
Environments
Version:
OS:
To Reproduce
Steps to reproduce the behavior:
Deploy the helm chart for pvc auto-resizer in any env where controller.args.useK8sMetricsApi : true, controller.args.prometheusURL is unset and webhook.pvcMutatingWebhook.enabled : false
Expected behavior
i would expect controller to run fine
Describe the bug
Fatal error: concurrent map writes
Environments
To Reproduce
Steps to reproduce the behavior:
controller.args.useK8sMetricsApi : true
,controller.args.prometheusURL is unset
andwebhook.pvcMutatingWebhook.enabled : false
Expected behavior
i would expect controller to run fine
Additional context
Map is created here https://github.com/topolvm/pvc-autoresizer/blob/v0.14.0/internal/runners/k8s_metrics_api_client.go#L44
Go function is called https://github.com/topolvm/pvc-autoresizer/blob/v0.14.0/internal/runners/k8s_metrics_api_client.go#L50
And that function modify the map without locking https://github.com/topolvm/pvc-autoresizer/blob/v0.14.0/internal/runners/k8s_metrics_api_client.go#L87-L88
The text was updated successfully, but these errors were encountered: