support mapping values with '.' in replacements fieldpaths

This commit is contained in:
Natasha Sarkar
2021-06-10 11:29:04 -07:00
parent cebda58437
commit 218da9858f
3 changed files with 27 additions and 6 deletions

View File

@@ -1357,7 +1357,14 @@ metadata:
fieldPaths:
- metadata.annotations.[f.g.h/i-j]
`,
expectedErr: "list path element must contain fieldName=fieldValue for element to match",
expected: `apiVersion: v1
kind: Custom
metadata:
name: custom
annotations:
a.b.c/d-e: source
f.g.h/i-j: source
`,
},
"list index contains '.' character": {
input: `apiVersion: v1