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

Bundles - Add support for data files in yaml format #1471

Closed
omerlh opened this issue Jun 5, 2019 · 0 comments · Fixed by #1476
Closed

Bundles - Add support for data files in yaml format #1471

omerlh opened this issue Jun 5, 2019 · 0 comments · Fixed by #1476

Comments

@omerlh
Copy link
Contributor

omerlh commented Jun 5, 2019

Expected Behavior

OPA supports data files either in JSON or YAML format, but this is not the situation for bundles - bundle support only JSON files.

Actual Behavior

Allow adding data files in YAML format to a bundle

Steps to Reproduce the Problem

  1. Create a data file in a yaml format
  2. Add it to a bundle
  3. Try load the bundle to OPA - the data is not available

Additional Info

tsandall added a commit to tsandall/opa that referenced this issue Jun 12, 2019
These changes simply update the bundle reader to accept data.yaml
files in addition to data.json files. This allows callers to supply
YAML files to OPA without having to convert them into JSON.

Fixes open-policy-agent#1471

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
tsandall added a commit that referenced this issue Jun 12, 2019
These changes simply update the bundle reader to accept data.yaml
files in addition to data.json files. This allows callers to supply
YAML files to OPA without having to convert them into JSON.

Fixes #1471

Signed-off-by: Torin Sandall <torinsandall@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant