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

Support nested variable resolution #727

Closed
shivdudhani opened this issue Feb 27, 2020 · 0 comments · Fixed by #728
Closed

Support nested variable resolution #727

shivdudhani opened this issue Feb 27, 2020 · 0 comments · Fixed by #728
Assignees
Labels
enhancement New feature or request

Comments

@shivdudhani
Copy link
Contributor

Able to process variables like {{configmap.devtest.customData.data.{{serviceAccountName}}}}}

  • resolve the value of variable {{serviceAccountName}} -> <value>
  • resolve the value of variable{{{configmap.devtest.customData.data.<value>}}

Limitations:

  • If the inner variable returns a non-scalar then it is considered as a failed variable, as the outer variable cannot use non-scalar value for evaluation.
  • Only equal operation is supported on variables. Handling operators on internal variables is not supported.
@shivdudhani shivdudhani added the enhancement New feature or request label Feb 27, 2020
@shivdudhani shivdudhani self-assigned this Feb 27, 2020
@shivdudhani shivdudhani changed the title Support nested variables Support nested variable resolution Feb 27, 2020
@shivdudhani shivdudhani added this to the Kyverno Release 1.1.4 milestone Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant