Skip to content
Browse files

crds: include "Age" when printing releases (#103)

In PR #80, we tried to make the output of `kubectl get release` more
useful by including additional columns. Unfortunately, we nuked the
"Age" column when we didn't want to. As users use that to find out
what's the latest release for an application, we ended up making the
output *less* useful.

It turns out that, when adding additional columns, they replace *all*
the previously available columns (in this case, just the age).
Explicitly including it fixes the problem.
  • Loading branch information...
juliogreff authored and icanhazbroccoli committed Jun 12, 2019
1 parent 171b770 commit 266f284f16e919e16c36e29dcec6bfab5d7e9825
Showing with 10 additions and 0 deletions.
  1. +4 −0 crd/Release-crd.yaml
  2. +6 −0 pkg/crds/release.go
@@ -15,6 +15,10 @@ spec:
description: The current achieved step for a release as defined in the rollout strategy.
name: Step
type: string
- JSONPath: .metadata.creationTimestamp
description: The release's age.
name: Age
type: date
# group name to use for REST API: /apis/<group>/<version>
# version name to use for REST API: /apis/<group>/<version>
@@ -58,6 +58,12 @@ var Release = &apiextensionv1beta1.CustomResourceDefinition{
Description: "The current achieved step for a release as defined in the rollout strategy.",
JSONPath: "",
Name: "Age",
Type: "date",
Description: "The release's age.",
JSONPath: ".metadata.creationTimestamp",

0 comments on commit 266f284

Please sign in to comment.
You can’t perform that action at this time.