Skip to content

fix: Accessing yaml keys with . in the name fails#906

Merged
olblak merged 6 commits into
updatecli:mainfrom
olblak:issue/904
Oct 5, 2022
Merged

fix: Accessing yaml keys with . in the name fails#906
olblak merged 6 commits into
updatecli:mainfrom
olblak:issue/904

Conversation

@olblak

@olblak olblak commented Oct 4, 2022

Copy link
Copy Markdown
Member

Signed-off-by: Olblak me@olblak.com

Fix #904

Allow to escape . using \ by adding YAML key parser

Test

To test this pull request, you can run the following commands:

cp pkg/plugins/resources/yaml/
go test

Additional Information

Tradeoff

Potential improvement

While this pull-request fixes an issue in a local optimum, I am currently evaluating the missing parts to switch to https://github.com/tomwright/dasel for yaml file similar to json/toml/csv

olblak added 2 commits October 4, 2022 13:31
Signed-off-by: Olblak <me@olblak.com>
Signed-off-by: Olblak <me@olblak.com>
@olblak olblak added bug Something isn't working resource-yaml Resource of kind YAML labels Oct 4, 2022
@olblak olblak requested a review from lemeurherve October 4, 2022 11:39
Comment thread pkg/plugins/resources/yaml/utils.go Outdated
@olblak

olblak commented Oct 4, 2022

Copy link
Copy Markdown
Member Author

updatecli/website#527

@olblak olblak enabled auto-merge (squash) October 4, 2022 12:22
@olblak olblak disabled auto-merge October 4, 2022 14:22
@olblak olblak enabled auto-merge (squash) October 4, 2022 14:52
@olblak olblak disabled auto-merge October 5, 2022 07:03
@olblak olblak merged commit e190553 into updatecli:main Oct 5, 2022
@olblak olblak deleted the issue/904 branch June 12, 2025 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working resource-yaml Resource of kind YAML

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Accessing yaml keys with . in the name fails

1 participant