Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Passing values from array of values #2248

Open
mati-visa opened this issue Dec 18, 2024 · 0 comments
Open

[Question] Passing values from array of values #2248

mati-visa opened this issue Dec 18, 2024 · 0 comments
Labels
question Further information is requested

Comments

@mati-visa
Copy link

mati-visa commented Dec 18, 2024

Describe your question

Hello,

Wanna know, how to play with nested values files.

So my question is fairly simple, I've a values.yaml file in given format:

dependencies:
  - name: test
    version: 1.2.3

My test looks like these:

apiVersion: chainsaw.kyverno.io/v1alpha1
kind: Test
metadata:
  name: is-valid-version
spec:
  steps:
  - try:            
    - assert:
        resource:
          apiVersion: v1
          kind: Pod
          metadata:
            labels:
              version: ($values.dependencies[????])

Tried multiple functions and ways but no luck, it could be helpfull to have at least some examples in docs for functions how they work or to have idk some sort of terminal/playground to validate how function work

chainsaw version Version

v0.2.12

Additional context

No response

@mati-visa mati-visa added the question Further information is requested label Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant