@@ -158,8 +158,8 @@ func (np *jqMultiPathNormalizerPatch) Apply(data []byte) ([]byte, error) {
158
158
if strings .Contains (np .pathExpression , ".metadata.annotations" ) && strings .Contains (np .pathExpression , "keys[]" ) {
159
159
// This is selecting annotation keys, so we need to delete those specific annotations
160
160
result := dataJSON
161
- if metadata , ok := result ["metadata" ].(map [string ]interface {} ); ok {
162
- if annotations , ok := metadata ["annotations" ].(map [string ]interface {} ); ok {
161
+ if metadata , ok := result ["metadata" ].(map [string ]any ); ok {
162
+ if annotations , ok := metadata ["annotations" ].(map [string ]any ); ok {
163
163
for _ , key := range pathsToDelete {
164
164
delete (annotations , key )
165
165
}
@@ -169,7 +169,7 @@ func (np *jqMultiPathNormalizerPatch) Apply(data []byte) ([]byte, error) {
169
169
}
170
170
}
171
171
}
172
-
172
+
173
173
patchedData , err := json .Marshal (result )
174
174
if err != nil {
175
175
return nil , err
@@ -192,7 +192,7 @@ func (np *jqMultiPathNormalizerPatch) Apply(data []byte) ([]byte, error) {
192
192
iter := deletionCode .RunWithContext (ctx , result )
193
193
if v , ok := iter .Next (); ok {
194
194
if _ , isErr := v .(error ); ! isErr {
195
- result = v .(map [string ]interface {} )
195
+ result = v .(map [string ]any )
196
196
}
197
197
}
198
198
}
0 commit comments