File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
pkg/controller/registry/reconciler Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,13 @@ func (s *grpcCatalogSourceDecorator) Labels() map[string]string {
63
63
64
64
func (s * grpcCatalogSourceDecorator ) Annotations () map [string ]string {
65
65
// TODO: Maybe something better than just a copy of all annotations would be to have a specific 'podMetadata' section in the CatalogSource?
66
- return s .GetAnnotations ()
66
+ // Make a copy of the annotations to avoid concurrent write issues
67
+ // See https://bugzilla.redhat.com/show_bug.cgi?id=2101357
68
+ annotations := make (map [string ]string )
69
+ for key , value := range s .GetAnnotations () {
70
+ annotations [key ] = value
71
+ }
72
+ return annotations
67
73
}
68
74
69
75
func (s * grpcCatalogSourceDecorator ) Service () * corev1.Service {
You can’t perform that action at this time.
0 commit comments