intellij-kubernetes
intellij-kubernetes copied to clipboard
pod that's not ready is listed as ready
This was reported in https://github.com/redhat-developer/intellij-kubernetes/pull/282#discussion_r736236112
Steps:
- 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"
- EXEC: go to Workload > Pods > countdown-42a and verify the icon
- EXEC: do the same in vscode
Result:
VSCode displays the pod as not-ready with a red dot in the icon
While intellij-kubernetes displays the pod as running/ready with a green dot:

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
Steps:
- 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
- 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.
This is caused by issues in the Kubernetes-client. I thus favour migrating to the v6 client as in #500. Thus postponing this issue.