intellij-kubernetes icon indicating copy to clipboard operation
intellij-kubernetes copied to clipboard

pod that's not ready is listed as ready

Open adietish opened this issue 4 years ago • 3 comments

This was reported in https://github.com/redhat-developer/intellij-kubernetes/pull/282#discussion_r736236112

Steps:

  1. EXEC: create a deployment
---
apiVersion: "v1"
kind: "Pod"
metadata:
  creationTimestamp: "2021-10-19T16:16:46Z"
  name: "countdown-42a"
spec:
  containers:
  - command:
    - "bin/bash"
    - "-c"
    - "for i in 9 8 7 6 5 4 3 2 1 ; do echo $i ; done"
    image: "centos:7"
    name: "counter"
  1. EXEC: go to Workload > Pods > countdown-42a and verify the icon
  2. EXEC: do the same in vscode

Result: VSCode displays the pod as not-ready with a red dot in the icon image While intellij-kubernetes displays the pod as running/ready with a green dot: image

adietish avatar Oct 26 '21 12:10 adietish

The issue here actually affects kubernetes-client, the status of the pod is determined by a utility that I contributed to kubernetes-client: https://github.com/fabric8io/kubernetes-client/issues/2293

adietish avatar Oct 26 '21 12:10 adietish

Steps:

  1. EXEC: create a pod with the following yaml:
apiVersion: v1
kind: Pod
metadata:
  name: apache
spec:
  containers:
    - name: apache
      image: httpd:2.4.54
      ports:
        - containerPort: 80
  1. EXEC: look at it's icon in the resource tree

Result: It is displayed with a green dot which means that it's ready. VScode displays it with a red dot.

adietish avatar Jul 11 '22 15:07 adietish

This is caused by issues in the Kubernetes-client. I thus favour migrating to the v6 client as in #500. Thus postponing this issue.

adietish avatar Dec 06 '22 10:12 adietish