@@ -218,7 +218,9 @@ func CustomizeAnnotation(registryValues []string, prefix string, ctx *common.Ren
218
218
annotations := common .CustomizeAnnotation (ctx , component , typeMeta , existingAnnotations ... )
219
219
if len (annotations ) > 0 {
220
220
for k , v := range annotations {
221
- registryValues = append (registryValues , KeyValue (fmt .Sprintf ("%s.%s" , prefix , k ), v ))
221
+ // Escape any dots in the keys so they're not expanded
222
+ key := strings .Replace (k , "." , "\\ ." , - 1 )
223
+ registryValues = append (registryValues , KeyValue (fmt .Sprintf ("%s.%s" , prefix , key ), v ))
222
224
}
223
225
}
224
226
@@ -236,7 +238,9 @@ func CustomizeLabel(registryValues []string, prefix string, ctx *common.RenderCo
236
238
237
239
if len (labels ) > 0 {
238
240
for k , v := range labels {
239
- registryValues = append (registryValues , KeyValue (fmt .Sprintf ("%s.%s" , prefix , k ), v ))
241
+ // Escape any dots in the keys so they're not expanded
242
+ key := strings .Replace (k , "." , "\\ ." , - 1 )
243
+ registryValues = append (registryValues , KeyValue (fmt .Sprintf ("%s.%s" , prefix , key ), v ))
240
244
}
241
245
}
242
246
0 commit comments