DATA RACE in kyaml 0.18.1, openapi package - globalSchema.namespaceabilityByResourceType
#5805
Labels
kind/bug
Categorizes issue or PR as related to a bug.
needs-triage
Indicates an issue or PR lacks a `triage/foo` label and requires one.
What happened?
I ran
krusty.(*Kustomizer).Run()
in two goroutines with the Go race detector enabled, and a data race was reported. The two goroutines accessglobalSchema.namespaceabilityByResourceType
:The following lines is a shortened output whichs shows how to achieve this via two different public methods on the openapi package:
full log
What did you expect to happen?
No data races
How can we reproduce it (as minimally and precisely as possible)?
Run krusty.Run in two or more goroutines with the race detector enabled.
Expected output
No race detected
Actual output
WARNING: DATA RACE
Kustomize version
kyaml 0.18.1
Operating system
Linux
The text was updated successfully, but these errors were encountered: