-
Notifications
You must be signed in to change notification settings - Fork 3.4k
CLI: set json output as default for cilium get endpoint #36537
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
CLI: set json output as default for cilium get endpoint #36537
Conversation
adda302
to
5b84735
Compare
5b84735
to
b27756b
Compare
b27756b
to
7a15034
Compare
7a15034
to
21d3a5f
Compare
/test |
@joestringer, do I need to rebase for some failing CI checks? |
@saiaunghlyanhtet At a glance, the failures do not look related to this change. I've retriggered the failed jobs. |
ignore my previous comment, misunderstood the commit. Change looks good 😄 |
@tommyp1ckles FWIW if we decide to create an actual text format for this, that would be an alternative. But since the default output currently is just trying to create a single flattened JSON object (but failing on the way), I figured it's easier to just reduce the scope to always generate JSON for now. |
I'm seeing CI failures that have been resolved in latest |
21d3a5f
to
3d4f09a
Compare
/test |
1 similar comment
/test |
@saiaunghlyanhtet this CI failure is robust, and looks genuine. Maybe something in the ginkgo tests is parsing the output, and observes changed behavior? |
I found the problem. I think that the ginko tests are not parsing any output. The problem is like the following: First, we call CiliumEndpointIPv6 here ( cilium/test/k8s/datapath_configuration.go Line 430 in f2c7fe0
cilium/test/helpers/kubectl.go Line 2827 in f2c7fe0
So, I think that I need to revise on setting json output as default. @joestringer I also want opinions from you. |
Head branch was pushed to by a user without write access
3d4f09a
to
8767ddc
Compare
Signed-off-by: saiaunghlyanhtet <saiaunghlyanhtet2003@gmail.com>
8767ddc
to
2bc60c3
Compare
I closed and re-opened the PR because some image builds failed when you uploaded, most likely due to infrastructure issues. I'll retrigger the test that was failing to confirm whether you have fixed the issue. |
/ci-ginkgo EDIT: Looks like it passed except for one test that passed in some jobs and failed in a single job - most likely unrelated to the changes here. |
/test |
3 still failing but as far as I checked, they are not related to the changes in this PR. |
Nominating for v1.17 backport to address problems where users can't get cilium endpoints via local CLI. |
Set json output as default for cilium get endpoint
Fixes: #29247