@@ -182,7 +182,7 @@ func (d DeprecationNotes) String() string {
182
182
return sb .String ()
183
183
}
184
184
185
- func appenToPath (path , key string ) string {
185
+ func appendToPath (path , key string ) string {
186
186
if path == "" {
187
187
return key
188
188
}
@@ -221,8 +221,8 @@ func checkRuntimeConfigDeprecated(deprecates, runtimeConfig RawYaml) []Deprecati
221
221
for tenant , tenantOverrides := range overrides {
222
222
tenantDeprecations := checkConfigDeprecated (deprecatedLimits , tenantOverrides .(RawYaml ))
223
223
for i := range tenantDeprecations {
224
- tenantPath := appenToPath ("overrides" , tenant )
225
- tenantDeprecations [i ].ItemPath = appenToPath (tenantPath , tenantDeprecations [i ].ItemPath )
224
+ tenantPath := appendToPath ("overrides" , tenant )
225
+ tenantDeprecations [i ].ItemPath = appendToPath (tenantPath , tenantDeprecations [i ].ItemPath )
226
226
}
227
227
deprecations = append (deprecations , tenantDeprecations ... )
228
228
}
@@ -242,7 +242,7 @@ func enumerateDeprecatesFields(deprecates, input RawYaml, rootPath string, depre
242
242
continue
243
243
}
244
244
245
- path := appenToPath (rootPath , key )
245
+ path := appendToPath (rootPath , key )
246
246
247
247
note , isDeprecatedNote := getDeprecationAnnotation (deprecate )
248
248
if isDeprecatedNote {
@@ -297,7 +297,7 @@ func enumerateDeprecatesFields(deprecates, input RawYaml, rootPath string, depre
297
297
// If the config is a list, recurse into each item.
298
298
for i , item := range v {
299
299
itemYaml := item .(RawYaml )
300
- deprecations = enumerateDeprecatesFields (deprecateYaml , itemYaml , appenToPath (path , fmt .Sprintf ("[%d]" , i )), deprecations )
300
+ deprecations = enumerateDeprecatesFields (deprecateYaml , itemYaml , appendToPath (path , fmt .Sprintf ("[%d]" , i )), deprecations )
301
301
}
302
302
}
303
303
}
0 commit comments