diff --git a/api/v1alpha1/amaltheasession_types.go b/api/v1alpha1/amaltheasession_types.go index a966732d..8fedc552 100644 --- a/api/v1alpha1/amaltheasession_types.go +++ b/api/v1alpha1/amaltheasession_types.go @@ -500,7 +500,8 @@ type AmaltheaSessionStatus struct { // +kubebuilder:printcolumn:name="Status",type="string",JSONPath=`.status.state`,description="The overall status of the session." // +kubebuilder:printcolumn:name="Ready",type="string",JSONPath=`.status.containerCounts.ready`,description="The number of containers in a ready state for the session, disregarding init containers." -// +kubebuilder:printcolumn:name="Total",type="string",JSONPath=`.status.containerCounts.total`,description="The total numeber of containers in the session, disregarding init containers." +// +kubebuilder:printcolumn:name="Total",type="string",JSONPath=`.status.containerCounts.total`,description="The total number of containers in the session, disregarding init containers." +// +kubebuilder:printcolumn:name="Age",type="date",JSONPath=".metadata.creationTimestamp" // +kubebuilder:printcolumn:name="Idle",type="boolean",JSONPath=`.status.idle`,description="Whether the session is idle or not." // +kubebuilder:printcolumn:name="URL",type="string",JSONPath=`.status.url`,description="The URL where the session can be accessed." // AmaltheaSession is the Schema for the amaltheasessions API diff --git a/config/crd/bases/amalthea.dev_amaltheasessions.yaml b/config/crd/bases/amalthea.dev_amaltheasessions.yaml index 7b059f2f..1b672614 100644 --- a/config/crd/bases/amalthea.dev_amaltheasessions.yaml +++ b/config/crd/bases/amalthea.dev_amaltheasessions.yaml @@ -27,11 +27,14 @@ spec: jsonPath: .status.containerCounts.ready name: Ready type: string - - description: The total numeber of containers in the session, disregarding init + - description: The total number of containers in the session, disregarding init containers. jsonPath: .status.containerCounts.total name: Total type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date - description: Whether the session is idle or not. jsonPath: .status.idle name: Idle diff --git a/helm-chart/amalthea-sessions/templates/amaltheasession-crd.yaml b/helm-chart/amalthea-sessions/templates/amaltheasession-crd.yaml index 2d25ff90..1f8133b9 100644 --- a/helm-chart/amalthea-sessions/templates/amaltheasession-crd.yaml +++ b/helm-chart/amalthea-sessions/templates/amaltheasession-crd.yaml @@ -29,11 +29,14 @@ spec: jsonPath: .status.containerCounts.ready name: Ready type: string - - description: The total numeber of containers in the session, disregarding init + - description: The total number of containers in the session, disregarding init containers. jsonPath: .status.containerCounts.total name: Total type: string + - jsonPath: .metadata.creationTimestamp + name: Age + type: date - description: Whether the session is idle or not. jsonPath: .status.idle name: Idle