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

kubectl get scaledobject only displays one trigger #1943

Closed
amirschw opened this issue Jul 8, 2021 · 9 comments · Fixed by #6232
Closed

kubectl get scaledobject only displays one trigger #1943

amirschw opened this issue Jul 8, 2021 · 9 comments · Fixed by #6232
Assignees
Labels
bug Something isn't working enhancement New feature or request stale-bot-ignore All issues that should not be automatically closed by our stale bot

Comments

@amirschw
Copy link
Contributor

amirschw commented Jul 8, 2021

Report

For scaled objects with multiple triggers, kubectl get scaledobject only shows the first trigger:

~ $ k get scaledobject myapp
NAME           SCALETARGETKIND      SCALETARGETNAME   MIN   MAX   TRIGGERS     AUTHENTICATION   READY   ACTIVE   AGE
myapp          apps/v1.Deployment   myapp             1     2     prometheus                    True    True     7d

~ $ k get scaledobject myapp -o jsonpath='{.spec.triggers[*].type}'
prometheus cpu

Expected Behavior

All trigger types should be displayed

Actual Behavior

Only the first trigger is displayed

Steps to Reproduce the Problem

  1. create a scaled object with two triggers
  2. run kubectl get scaledobject

Logs from KEDA operator

N/A

KEDA Version

2.2.0

Kubernetes Version

1.19

Platform

Microsoft Azure

Scaler Details

any (e.g. prometheus, cpu, memory)

Anything else?

No response

@amirschw amirschw added the bug Something isn't working label Jul 8, 2021
@amirschw
Copy link
Contributor Author

amirschw commented Jul 8, 2021

I took a closer look and found it's actually a kubectl issue with CRDs: kubernetes/kubectl#517.
LMK if you want me to close this one or keep it open until it's fixed upstream.

@tomkerkhove
Copy link
Member

Thanks for checking! It's ok to keep it open.

@tomkerkhove tomkerkhove added enhancement New feature or request and removed bug Something isn't working labels Jul 8, 2021
@stale
Copy link

stale bot commented Oct 13, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale All issues that are marked as stale due to inactivity label Oct 13, 2021
@tomkerkhove
Copy link
Member

This is done in #2047, OK to close @zroubalik ?

@stale stale bot removed the stale All issues that are marked as stale due to inactivity label Oct 14, 2021
@stale
Copy link

stale bot commented Dec 13, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale All issues that are marked as stale due to inactivity label Dec 13, 2021
@tomkerkhove tomkerkhove added the bug Something isn't working label Dec 13, 2021
@stale stale bot removed the stale All issues that are marked as stale due to inactivity label Dec 13, 2021
@tomkerkhove tomkerkhove moved this to Backlog in Roadmap - KEDA Core Feb 10, 2022
@stale
Copy link

stale bot commented Feb 11, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale All issues that are marked as stale due to inactivity label Feb 11, 2022
@stale
Copy link

stale bot commented Feb 18, 2022

This issue has been automatically closed due to inactivity.

@stale stale bot closed this as completed Feb 18, 2022
Repository owner moved this from To Do to Ready To Ship in Roadmap - KEDA Core Feb 18, 2022
@zroubalik zroubalik added the stale-bot-ignore All issues that should not be automatically closed by our stale bot label Feb 28, 2022
@zroubalik zroubalik reopened this Feb 28, 2022
@stale stale bot removed the stale All issues that are marked as stale due to inactivity label Feb 28, 2022
Repository owner moved this from Ready To Ship to Proposed in Roadmap - KEDA Core Feb 28, 2022
@tomkerkhove tomkerkhove added the help wanted Looking for support from community label Feb 28, 2022
@SpiritZhou
Copy link
Contributor

The CRD spec of scaleobject has added JSONPath to show all triggers. But kubectl still does not support displaying array type of printcolumn. kubernetes-sigs/controller-tools#652

@zroubalik
Copy link
Member

zroubalik commented May 31, 2023

Yes, that's the problem. Maybe we can workaround this by an additional Status field, that will be basically a string of all triggers. And then use this status field while printing the stuff by cli.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request stale-bot-ignore All issues that should not be automatically closed by our stale bot
Projects
Status: Ready To Ship
Development

Successfully merging a pull request may close this issue.

5 participants