We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f4fcce commit 67b5c3eCopy full SHA for 67b5c3e
controllers/resources/processor.go
@@ -40,7 +40,13 @@ func prepareAdditionalMetadata(m map[string]string) map[string]string {
40
return make(map[string]string)
41
}
42
43
- return m
+ // we need to create a new map to avoid modifying the original one
44
+ copied := make(map[string]string, len(m))
45
+ for k, v := range m {
46
+ copied[k] = v
47
+ }
48
+
49
+ return copied
50
51
52
func (r *Processor) HandlePruning(ctx context.Context, current, desired sets.Set[string]) (updateStatus bool) {
0 commit comments