Commit Graph

137 Commits

Author SHA1 Message Date
lowang-bh 733ee4d85e show pod Status as phase Failed or Succeeded if it has deletionTimestamp
Signed-off-by: lowang-bh <lhui_wang@163.com>

fix according to comments
Signed-off-by: lowang-bh <lhui_wang@163.com>

Kubernetes-commit: 4bd3274f433cc37bde2cff5875d61108cc97a7d2
2023-11-25 21:01:41 +08:00
Brian Pursley 8d8b5a6120 Use ptr.To instead of deprecated pointer functions
Kubernetes-commit: 288d132cf62efe029b6359c600565f8c7b12647d
2024-05-20 16:14:54 -04:00
Daman Arora 649e09882b kubectl/describe: use endpointslices for describing endpoints
Signed-off-by: Daman Arora <aroradaman@gmail.com>

Kubernetes-commit: 3236891023c991f1b66a49b8c9f6331ed6b4a690
2024-05-01 15:09:02 +05:30
Daman Arora 5aca4630e4 kubectl/describe/svc: refactor TestDescribeService
Signed-off-by: Daman Arora <aroradaman@gmail.com>

Kubernetes-commit: df417aa9b8813d0e5e1208e9039f140edeff39db
2024-05-01 14:45:45 +05:30
Siddhant Tibrewal 10fe45a704 Improving Legibility of Kubectl describe configmap by adding new line to output
Kubernetes-commit: cb560a72e0f63a28bdc7b8518f9de89d59f76be5
2024-02-29 18:46:27 +00:00
Jaime Caamaño Ruiz 9957529f9c Describe NetworkPolicy port ranges
Signed-off-by: Jaime Caamaño Ruiz <jcaamano@redhat.com>

Kubernetes-commit: aa0e47e863293215db794d6cb5978945e76fe3e2
2024-02-15 12:00:47 +00:00
Tim Hockin 18e7a287d1 Cleanup: s/depreciated/deprecated/g
Kubernetes-commit: 9f4b82bf3b079fe868effbd2498b61464db6d459
2024-02-18 14:50:55 -08:00
Ivan Valdes 7cd57900bf describer: improve job and pod template output
* Add Node-Selectors and Tolerations to pod template's describe output.
* Add Suspend, BackoffLimit and TTLSecondsAfterFinished to job's describe
  output.

Kubernetes-commit: 6d65c063caaee8e35a7ae02f2f74cb7b081fdef0
2024-01-05 14:29:01 -08:00
carlory 654e5eb2dc vac support ResourceDescriber
Co-authored-by: Arda Güçlü <aguclu@redhat.com>

Kubernetes-commit: d2b16b2a21c0669f9a7b60efbd632da25aef8f19
2024-01-08 18:45:06 +08:00
Antonio Ojea 931e867953 describer: use new ServiceCIDR API
Change-Id: Iff11c70f20bab3e55e4e569fb110ef25dd6dd97e

Kubernetes-commit: 513fdb5422932e3234590d03c4b8d417e7544796
2023-10-29 17:55:03 +00:00
Antonio Ojea 17964a895f kubectl describe
Change-Id: I0664e11a3a5549e1cc9602b22dcaf294200792a4

Kubernetes-commit: 7e77e8b21d1e26b0ee2e4f54684ddd80e4d29983
2022-08-15 19:53:39 +02:00
Antonio Ojea 30ffb2dadb remove ClusterCIDR
KEP-2593 proposed to expand the existing node-ipam controller
to be configurable via a ClusterCIDR objects, however, there
were reasonable doubts on the SIG about the feature and after
several months of dicussions we decided to not move forward
with the KEP intree, hence, we are going to remove the existing
code, that is still in alpha.

https://groups.google.com/g/kubernetes-sig-network/c/nts1xEZ--gQ/m/2aTOUNFFAAAJ

Change-Id: Ieaf2007b0b23c296cde333247bfb672441fe6dfc

Kubernetes-commit: c2d473f0d438cedab2f1831d23457d24961e0f4e
2023-10-13 21:31:29 +00:00
vinay kulkarni cacd4f8556 Code review fix: Move GetPodQOS code to ComputePodQOS. If set, return PodStatus.QOSClass from GetPodQOS.
Kubernetes-commit: 4063ca40501ce589b4de1ffa5cc814cd9e03e0ac
2023-08-07 14:42:36 +00:00
vinay kulkarni 35d73b6cda Perf optimization: Move away from GetPodQOS, using PodStatus.QOSClass instead
Kubernetes-commit: 5d4410b9601f27942fa1d1a4e65c2aa3a65637b1
2023-07-29 13:30:09 +00:00
Majid Garoosi 7ce6599fc1 Check --show-events in kubectl describe pvc (#120380)
* Check --show-events arg before fetching events

* Remove unnecessary else statement

* Add test for false show events

Kubernetes-commit: a919079ff3132a070909e9286674b0b0d8672377
2023-09-18 11:50:30 +03:30
Majid Garoosi 663031e23e Look for pods in ownerReferences of PVC (#120427)
* Look for pods in ownerReferences of PVC

* Implement for loop instead of using slices package

* Add tests for getPodsForPVC function

* Make PVC names consistent

* Remove volumes part of the pvc owner pod

* Do not store result of append in another variable

* Fix lint error

Kubernetes-commit: 710dceded51d5cf65bc27bca0b0c96f05909b65b
2023-09-13 20:15:30 +00:00
Todd Neal f5a7ea080f kubectl: fix describe node output when sidecars are present
Update the resource calculation so that it accumulates the resources
from scheduled pods correctly when those pods contain restartable
init containers.

Kubernetes-commit: 479b2d03a4369b8ae4565ba73850c703331cdcc5
2023-07-21 09:02:11 -05:00
Vihang Mehta 64086544bc [bug] Update DefaultObjectDescriber to handle interface params (#118190)
* Update DefaultObjectDescriber to handle interface params

Signed-off-by: Vihang Mehta <vihang@pixielabs.ai>

* Minor test cleanup for more descriptive errors

Signed-off-by: Vihang Mehta <vihang@pixielabs.ai>

---------

Signed-off-by: Vihang Mehta <vihang@pixielabs.ai>

Kubernetes-commit: 56cb4c93918efdc6e05f1c8f011166734fbe8a2f
2023-06-21 21:46:02 +00:00
TommyStarK e88f1b3589 kubectl: use bytes.Buffer.String
Signed-off-by: TommyStarK <thomasmilox@gmail.com>

Kubernetes-commit: da4a8d831b933475cfdb20cb7e6d0ed027d516eb
2023-06-04 15:45:24 +02:00
Stephen Kitt cfd2169f88 cli: replace intstr.FromInt with intstr.FromInt32
This touches cases where FromInt() is used on numeric constants, or
values which are already int32s, or int variables which are defined
close by and can be changed to int32s with little impact.

Signed-off-by: Stephen Kitt <skitt@redhat.com>

Kubernetes-commit: 45836971f27ca70cd7742e8ee66e99e3c648cf9f
2023-03-14 16:17:48 +01:00
Vihang Mehta d3fd4ea37b Sort and limit to the describers the return (string, error)
Signed-off-by: Vihang Mehta <vihang@pixielabs.ai>

Kubernetes-commit: 885f3d7a7dfe4eb09bef86bbeb49499ec3ff2bae
2023-05-17 16:36:46 +00:00
Vihang Mehta 6f146fb23f Add all describers to the exported DefaultObjectDescriber
Signed-off-by: Vihang Mehta <vihang@pixielabs.ai>

Kubernetes-commit: 2cb215e1091fb50a152afca3a8b2166d47f996ee
2023-05-05 18:30:54 +00:00
Antonio Ojea 9be7ad1c53 kubectl describe IPAddress
Change-Id: I201c2980830058c92b66e2386bfe8bedd8f0dcd4

Kubernetes-commit: 53dbf1752b070dcfe11399b3dd874fa8616851b3
2023-01-02 15:27:05 +00:00
Abirdcfly 7f0aa8954b cleanup kubectl describe cronjob v1beta1
Signed-off-by: Abirdcfly <fp544037857@gmail.com>

Kubernetes-commit: a120e7380559e4e03f7bd65f011affeb45739f12
2022-07-05 13:24:21 +08:00
Amir Alavi 749342438f kubectl: use v2 for hpa
Signed-off-by: Amir Alavi <amiralavi7@gmail.com>

Kubernetes-commit: 69b853fa308cb7cb40486a733626d4344ab1be85
2023-01-06 23:45:54 -05:00
Paco Xu b41317e383 kubectl: remove psp support
Kubernetes-commit: cc0f8280586637f25b91b471d0c6fe19caa73a24
2022-11-02 21:03:09 +08:00
Maciej Szulik 7aa8d2b1a2 Skip .metadata.manageFields when describing unkown resources
Kubernetes-commit: 8e3e3479d98391398e1e26090ad9d1e267bec885
2022-12-19 17:31:30 +01:00
George Aristy d592485b4b fix OldReplicaSets
Kubernetes-commit: a4c6696c456819e58e6215c95b6ece17819a5751
2022-10-15 21:00:45 -04:00
William, Yeh 729f491d6f kubectl displays seccomp profile for pod and container
Kubernetes-commit: a4dac224e7ef5d4c1a50b5c6a5f89c39f3115381
2022-10-23 21:53:05 -04:00
Jan Safranek 50d5d1244a Revert "Remove references to openstack and cinder"
This reverts commit 9bbf01bae93600d3314bce0acbff1f3a0a42e74b.

Kubernetes-commit: 5b284a50b78cb7d68b12825f5c0cfa29503c1577
2022-11-10 18:22:07 +01:00
Wenqing Luo 6a7dccd04b Fix kubectl describe ingress when default backend is empty
Kubernetes-commit: 653edeb507c3caafd0e81f6cef0a44425ef8782c
2022-11-07 10:11:28 -06:00
Tim Hockin 72d1b20cad Copy LoadBalancerStatus from core to networking
This type should never have been shared between Service and Ingress.
The `ports` field is unfortunate, but it is needed to stay compatible.

Kubernetes-commit: 0153bfad16102e42d0b0dbb56742d0a6626e4180
2021-11-08 17:06:59 -08:00
David Leadbeater 8e2918ab8b Escape terminal special characters in kubectl (#112553)
* Escape terminal special characters in kubectl

* Add escaping for kubectl alpha events

Kubernetes-commit: dad0e937c0f76344363eb691b2668490ffef8537
2022-10-30 16:29:24 +00:00
Davanum Srinivas 07a930403b Remove references to openstack and cinder
Signed-off-by: Davanum Srinivas <davanum@gmail.com>

Kubernetes-commit: 9bbf01bae93600d3314bce0acbff1f3a0a42e74b
2022-08-08 16:01:59 -04:00
Sarvesh Rangnekar 4cb46af560 Add describer and printer for ClusterCIDR API
Kubernetes-commit: 0ee3719d0b8cf56a9a7bc03ce1f91fc9510bc6d8
2022-07-30 00:25:57 +00:00
Davanum Srinivas d3700ce217 Generate and format files
- Run hack/update-codegen.sh
- Run hack/update-generated-device-plugin.sh
- Run hack/update-generated-protobuf.sh
- Run hack/update-generated-runtime.sh
- Run hack/update-generated-swagger-docs.sh
- Run hack/update-openapi-spec.sh
- Run hack/update-gofmt.sh

Signed-off-by: Davanum Srinivas <davanum@gmail.com>

Kubernetes-commit: a9593d634c6a053848413e600dadbf974627515f
2022-07-19 20:54:13 -04:00
Aufar Gilbran 720bd528ea Print ServiceAccount attached to the Pod
Kubernetes-commit: b938cdabd068a82ec78984c3ea72161da76f8284
2022-07-16 16:57:38 +08:00
R0CKSTAR 7557a35bb2 Resolve review comments
Signed-off-by: R0CKSTAR <yeahdongcn@gmail.com>

Kubernetes-commit: d9294dfff752636febcd9401696845c01a80c5f0
2022-07-13 08:44:07 +08:00
R0CKSTAR 443618def5 Add unit test - TestDescribePodRuntimeClass
Signed-off-by: R0CKSTAR <yeahdongcn@gmail.com>

Kubernetes-commit: b8ecf6fbfeab3f59f5bf3942f713c699501e8b60
2022-07-12 09:34:04 +08:00
R0CKSTAR d256c1b5ec Resolve review comments
Signed-off-by: R0CKSTAR <yeahdongcn@gmail.com>

Kubernetes-commit: fa9f2c409a7bea802048ea06e2266f13ff218e1d
2022-07-06 11:11:53 +08:00
R0CKSTAR 56244ad029 Print pod.Spec.RuntimeClassName in kubectl describe
Signed-off-by: R0CKSTAR <yeahdongcn@gmail.com>

Kubernetes-commit: ae31c0423f08e514a6bccca19d88afbff07f8d65
2022-07-01 16:24:37 +08:00
Arda Güçlü 02b163261f Show topologySpreadConstraints in Describe command
Currently describe command does not show `topologySpreadConstraints`
field. This PR adds support for showing topologySpreadConstraints in
describe command.For simplicity, if this field is not set, it will not show
(unlike to other core fields whose are shown as `<none>` even if they are null).

Kubernetes-commit: 64ce73f5fe2f095ba751d78aa03cf48bca42c055
2022-04-20 15:37:02 +03:00
Mayank Kumar 884f866fd0 add maxunavailable to kubectl describe
Kubernetes-commit: c352fa514655bd154e69734e365477e753fa3409
2022-04-01 20:25:36 -07:00
James Laverack 03614470e1 Revert "Introduce APIs to support multiple ClusterCIDRs (#108290)"
This reverts commit b9792a9daef4d978c5c30b6d10cbcdfa77a9b6ac.

Kubernetes-commit: 7d57d5c70d04f652b431d2b86b8af40e119cd66a
2022-04-12 16:00:35 +01:00
Sarvesh Rangnekar f0ce177e80 Introduce APIs to support multiple ClusterCIDRs (#108290)
* Introduce networking/v1alpha1 api, ClusterCIDRConfig type

Introduce networking/v1alpha1 api group.

Add `ClusterCIDRConfig` type to networking/v1alpha1 api group, this type
will enable the NodeIPAM controller to support multiple ClusterCIDRs.

* Change ClusterCIDRConfig.NodeSelector type in api

* Fix review comments for API

* Update ClusterCIDRConfig API Spec

Introduce PerNodeHostBits field, remove PerNodeMaskSize

Kubernetes-commit: b9792a9daef4d978c5c30b6d10cbcdfa77a9b6ac
2022-03-31 06:17:21 +00:00
aimuz 062618c2be fix Kubectl describe node missing event
Kubectl describe node ignores the node events created by the controller
https://github.com/kubernetes/kubernetes/issues/106475

Kubernetes-commit: 8baac2ec951eba0669436d382752bfb3a38ff454
2021-11-17 16:24:26 +08:00
Alex Wang c66b6b69fa support preemptionPolicy in describe
Kubernetes-commit: 8ae182fff2ba0ce1543083b13a16ca37846de9da
2022-03-15 17:52:15 +08:00
jlsong01 7891f75f9e fix kubectl describe ingress shows default-backend:80 when no default backend
Kubernetes-commit: 75c139d567a193ec50aee5447546cacf4dfaf61d
2022-03-04 09:35:20 +08:00
Wojciech Tyczyński 3f11f31017 Stop setting selfLink in kubectl
Kubernetes-commit: 9015f27e6d8295d7dcdbf5915024f28cc00d4d2f
2022-02-16 17:13:54 +01:00
Marcus Puckett 3825e98528 Specify empty IngresClassName as <none> to more clearly specify it is empty
Kubernetes-commit: e7e2bfde16381dc9ae543123ebbe1da8c12ee8e4
2022-02-09 16:28:16 -08:00