Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This PR adds additionalPrinterColumns to "kubectl get redb" #163

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

caiobegotti
Copy link

@caiobegotti caiobegotti commented Mar 26, 2021

This PR adds additionalPrinterColumns to "kubectl get redb" to show useful spec status, particularly HOST:PORT, CLUSTER and SHARDS. It's specially useful when we have clusters being created by an infra team and the DBs are owned by developers and they'd need a way to quickly know the HOST:PORT to connect to without messing around with YAMLs output of the object.

This is the output generated:

$ kubectl -n redis-kweb get redb
NAME                HOST                                                     PORT    CLUSTER         SHARDS   STATUS   SPEC STATUS   AGE
redis-db-caches     redis-12484.redis-cluster.redis-kweb.svc.cluster.local   12484   redis-cluster   1        active   Valid         6d22h
redis-db-sessions   redis-13649.redis-cluster.redis-kweb.svc.cluster.local   13649   redis-cluster   1        active   Valid         6d23h

This PR adds additionalPrinterColumns to "kubectl get redb" to show useful spec status, particularly HOST:PORT, CLUSTER and SHARDS. It's specially usef

This is the output generated:
    
``` 
$ kubectl -n redis-kweb get redb
NAME                HOST                                                     PORT    CLUSTER         SHARDS   STATUS   SPEC STATUS   AGE
redis-db-caches     redis-12484.redis-cluster.redis-kweb.svc.cluster.local   12484   redis-cluster   1        active   Valid         6d22h
redis-db-sessions   redis-13649.redis-cluster.redis-kweb.svc.cluster.local   13649   redis-cluster   1        active   Valid         6d23h

```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant