Colors for 'kubectl get nodes'

This commit is contained in:
Anatoly Zherdev 2020-08-13 19:58:28 +03:00
commit 242f312b16

View file

@ -0,0 +1,13 @@
def theme(context):
return context, [
["(NAME|STATUS|ROLES|AGE|VERSION|INTERNAL-IP|EXTERNAL-IP|OS-IMAGE|KERNEL-VERSION|CONTAINER-RUNTIME)",
"white", "underline"],
["^([^\s]+)", "blue"],
["(Ready)", "green"],
["(MemoryPressure|DiskPressure|PIDPressure|NetworkUnavailable|SchedulingDisabled)", "red"],
["^[^\s]+\s+[^\s]+\s+([^\s]+)", "yellow"],
["^[^\s]+\s+[^\s]+\s+([^\s]+)\s+([1-9]\d*)\s+", "red"],
]