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

kata-deploy: Update jq as part of the kata-deploy daemonset #8709

Merged

Conversation

fidencio
Copy link
Member

This is a follow-up from #8679 (comment), where we've narrowed down the correct component that was causing the issue, and we can go ahead and unblock the snapshotter related work (and, consequently, the merge to main work).

@katacontainersbot katacontainersbot added the size/medium Average sized task label Dec 20, 2023
@fidencio fidencio force-pushed the topic/update-jq-for-kata-deploy branch 2 times, most recently from fee53f4 to 79c5d0f Compare December 20, 2023 14:50
Copy link
Member

@stevenhorsman stevenhorsman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks for digging in and finding the 'proper' fix!

Copy link
Member

@gkurz gkurz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better indeed. Thanks @fidencio !

`jq` coming from alpine is in its 1.6 version, and that has a bug that
hits us quite hard, as it changes a float to an int whenever the number
is in the `x.0` format.

One example is:
```bash
/ # jq --version
jq-1.6
/ # echo '{"foo": 1.0}' | jq .foo
1
```

With this in mind, let's switch, at least for now, to using the `jq`
released directly on github, as it does address the issue we've been
hitting.
```bash
⋊> Downloads ./jq-linux-amd64 --version
jq-1.7
⋊> Downloads echo '{"foo": 1.0}' | jq .foo
1.0
```

Fixes: kata-containers#8678

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
This reverts commit ee5fa08.

This is perfectly fine to do as we narrwoed down the issue to be on the
version of `jq` provided by alpine, and we've already updated it in the
previous commit (in this very same series).

Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
@fidencio fidencio force-pushed the topic/update-jq-for-kata-deploy branch from 79c5d0f to c9e631d Compare December 20, 2023 15:53
@fidencio
Copy link
Member Author

/test

@fidencio fidencio merged commit 3482256 into kata-containers:main Dec 20, 2023
167 of 176 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ok-to-test size/medium Average sized task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants