-
Notifications
You must be signed in to change notification settings - Fork 884
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 returns kind: ValidatingAdmissionPolicyList for empty list of policies #1593
kubectl returns kind: ValidatingAdmissionPolicyList for empty list of policies #1593
Comments
This issue is currently awaiting triage. If a SIG or subproject determines this is a relevant issue, they will accept it by applying the The Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/sig cli |
/transfer kubectl |
Please assign this to me.
|
/assign |
Could be 2 bugs, because |
This may be the cause. If there is no |
I'm not sure it is a bug. But this seems to be coming from server side printing https://github.com/kubernetes/kubernetes/blob/d0e78ef70e954f0233cc2e917b7c85cb957d36cd/pkg/printers/internalversion/printers.go#L567-L583 |
I think this list printing mechanism https://github.com/kubernetes/kubernetes/blob/d0e78ef70e954f0233cc2e917b7c85cb957d36cd/pkg/printers/internalversion/printers.go#L1731-L1741 in server side printing is identical with the other resource type's list printing. /close |
@ardaguclu: Closing this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Server side printing is OK.
|
Could you please check the other list types and if there is any mismatch between them?. If there is any, I agree with you that this is a bug. |
|
Thanks for the check. /reopen |
@ardaguclu: Reopened this issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What happened?
There is a cosmetic inconsistency of
kubectl get validatingadmissionpolicies -o yaml
output for empty and non-empty list of validating admission policies.If there are no policies:
If there is at least one policy:
What did you expect to happen?
If there are no validating admission policies,
kubectl get validatingadmissionpolicies -o yaml
is expected to output:How can we reproduce it (as minimally and precisely as possible)?
Run
kubectl get validatingadmissionpolicies -o yaml
provided that there are no validating admission policies in the cluster.Anything else we need to know?
No response
Kubernetes version
Cloud provider
OS version
Install tools
Container runtime (CRI) and version (if applicable)
Related plugins (CNI, CSI, ...) and versions (if applicable)
The text was updated successfully, but these errors were encountered: