Colors for 'kubectl get nodes'
This commit is contained in:
parent
847a145ff3
commit
242f312b16
1 changed files with 13 additions and 0 deletions
13
colout/colout_kubectlnodes.py
Normal file
13
colout/colout_kubectlnodes.py
Normal 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"],
|
||||
]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue