Skip to content

Conversation

@olblak
Copy link
Member

@olblak olblak commented Nov 15, 2025

Prerequesite for #6200

This pull requets add the ability to specify a specific yaml document within a yaml file both for yamlpath engine and goyaml

name: "test yq"
sources:
  default:
    kind: yaml
    spec:
      engine: go-yaml
      key: "$.name"
      documentindex: 0
      file: /tmp/data.yaml

conditions:
  default:
    kind: yaml
    spec:
      engine: go-yaml
      key: "$.name"
      documentindex: 0
      file: /tmp/data.yaml

targets:
  default:
    kind: yaml
    disablesourceinput: true
    spec:
      engine: go-yaml
      key: "$.name"
      documentindex: 1
      file: /tmp/data.yaml
      value: "john"

Test

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

cd pkg/plugins/resources/yaml/
go test .

Additional Information

Checklist

  • I have updated the documentation via pull request in website repository.

Tradeoff

Potential improvement

Add support for the yamlpath documentation

Signed-off-by: Olblak <me@olblak.com>
@olblak olblak added resource-yaml Resource of kind YAML enhancement New feature or request labels Nov 15, 2025
@olblak olblak enabled auto-merge (squash) December 8, 2025 10:56
@olblak olblak merged commit 43860e8 into updatecli:main Dec 14, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request resource-yaml Resource of kind YAML

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant