imjoseangel / powerline-k8sstatus

A Powerline segment for showing the status of a K8s context
MIT License
2 stars 0 forks source link

Include Kubernetes Control Plane version on segment #41

Closed imjoseangel closed 3 years ago

imjoseangel commented 3 years ago

SUMMARY

Request Control Plane version and include on segment

ISSUE TYPE

COMPONENT NAME

K8SStatus Main segment

ADDITIONAL INFORMATION

Figure out how to get K8S Control Plane version and include the configuration:

  "show_versionr": true,
stale[bot] commented 3 years ago

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

imjoseangel commented 3 years ago

Implement with:

from kubernetes import client

print(client.VersionApi().get_code().git_version)
imjoseangel commented 3 years ago

Added Minikube to test:

from kubernetes.client import VersionApi