-
Notifications
You must be signed in to change notification settings - Fork 659
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
[BUG] flytectl fails to unmarshal execution spec with certain input key #3483
Comments
I tried replacing
Now I'm not sure how we could fix this in flytectl. Maybe we will need to wait for kubernetes-sigs/yaml#76 |
Note that |
We have dependency in the printer functionality which uses specific function JSONToYaml which is not there in other library . We could just do I saw just a project get was dumping unnecessary hidden fields from the proto with gopkg library.
eg:
Which might be the reason the unit tests fail too. We could probably wait until the fix goes in sigs unless we can resolve this issue with gopkg library |
Hello 👋, this issue has been inactive for over 9 months. To help maintain a clean and focused backlog, we'll be marking this issue as stale and will engage on it to decide if it is still applicable. |
Describe the bug
If execution spec has input parameter named as
n
,y
,no
,yes
, etc.flytectl
fails to unmarshal the spec correctly. As an example:flytectl
wil fail withAfter a quick investigation, this is because of using sigs.k8s.io/yaml in flytectl: https://github.com/flyteorg/flytectl/blob/cea39d9bdf2476f9a5313d1bf19bf08b3923237a/cmd/create/execution_util.go#L13. This yaml library depends on
go-yaml
v2, which does not support YAML 1.2 specification, see go-yaml/yaml#214. If an input argument is named asn
, when creating an execution via a execution spec file, that argument must be quoted as"n"
, otherwiseflytectl
would fail because when unmarshallingn
is parsed asfalse
as the input parameter name.Expected behavior
flytectl
should correctly unmarshal the execution spec that is compliant with YAML 1.2 specification.Additional context to reproduce
No response
Screenshots
No response
Are you sure this issue hasn't been raised already?
Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: