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

CRD: add additionalPrinterColumns for kubectl/kube-web-view #635

Closed
hjacobs opened this issue Jul 29, 2019 · 1 comment · Fixed by #653
Closed

CRD: add additionalPrinterColumns for kubectl/kube-web-view #635

hjacobs opened this issue Jul 29, 2019 · 1 comment · Fixed by #653
Labels

Comments

@hjacobs
Copy link
Contributor

hjacobs commented Jul 29, 2019

additionalPrinterColumns are awesome to make kubectland kube-web-view more useful.

Example columns which would make sense:

additionalPrinterColumns:
  - JSONPath: .spec.teamId
    name: Team
    type: string
  - JSONPath: .status.PostgresClusterStatus
    name: Status
    type: string
  - JSONPath: .metadata.creationTimestamp
    description: Age of the PlatformCredentialsSet
    name: Age
    type: date

The result would be for kubectl:

kubectl get postgresqls
NAME                                  TEAM       STATUS       AGE
test-db-foo-test                      test       Running      61d
test-elephant-chat-bot-test-db        test       Running      101d
test-source-for-pg-clone-smoke-test   test       Running      18d
ci-repo-manager-db                    ci         Running      102d
foobarzz-grafana                      foobarzz   Running      17d
foobarzz-lightstep-manager            foobarzz   Running      83d                                                                                                                                                                                                              
foobarzz-postgres-sentry              foobarzz   Running      39d
foobarzz-zmon-main                    foobarzz   Running      102d
lollypop-inciders-db                  lollypop   Running      101d
teapot-cluster-registry-db            teapot     Running      55d
teapot-grafana-db                     teapot     Running      92d
teapot-test                           teapot     SyncFailed   39d

And in kube-web-view:

Screenshot_2019-07-29 postgresqls - Kubernetes Web UI

Related change for Zalando's PlatformCredentialsSet CRD: zalando-incubator/kubernetes-on-aws#2365

@Jan-M
Copy link
Member

Jan-M commented Aug 5, 2019

Nice, looks useful indeed.

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

Successfully merging a pull request may close this issue.

3 participants