[BUG] inconsistent yaml support from file://
vs s3://
#1512
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
Observed behavior
Hi folks,
I've run into some trouble trying to load YAML flag definitions from S3. Looking through the docs and repo, it seems like this should be supported, and indeed it is for local files, but when trying to load the YAML file from S3, it appears that the JSON evaluator is being invoked without a call to something like
yamlToJSON(...)
.docker run --rm -it --mount type=bind,source=$(pwd)/flags.flagd.yaml,target=/flags.flagd.yaml ghcr.io/open-feature/flagd:v0.11.5 start --log-format json --uri file:/flags.flagd.yaml
docker run --rm -it ghcr.io/open-feature/flagd:v0.11.5 start --log-format json --uri s3://${BUCKET_NAME}/flags.flagd.yaml
Here's a stripped down version of
flags.flagd.yaml
as it appeared at the time of these^ logs. The specific error messages relating to$
are obviously complaining about the$schema
, but removing$schema
still fails, just with different this-isnt-json errors. Also, just to reiterate, this file works when used viaflagd start --uri file:flags.flagd.yaml
Related: #180, #206
Expected Behavior
No response
Steps to reproduce
No response
The text was updated successfully, but these errors were encountered: