diff --git a/api/v1beta1/flinkcluster_types.go b/api/v1beta1/flinkcluster_types.go index 14c0b441..5420c470 100644 --- a/api/v1beta1/flinkcluster_types.go +++ b/api/v1beta1/flinkcluster_types.go @@ -675,6 +675,9 @@ type FlinkClusterStatus struct { // +kubebuilder:object:root=true // +kubebuilder:subresource:status +// +kubebuilder:resource:shortName="fc" +// +kubebuilder:printcolumn:name="status",type=string,JSONPath=`.status.state` +// +kubebuilder:printcolumn:name="age",type=date,JSONPath=`.metadata.creationTimestamp` // FlinkCluster is the Schema for the flinkclusters API type FlinkCluster struct { diff --git a/config/crd/bases/flinkoperator.k8s.io_flinkclusters.yaml b/config/crd/bases/flinkoperator.k8s.io_flinkclusters.yaml index 9a5e5031..27157477 100644 --- a/config/crd/bases/flinkoperator.k8s.io_flinkclusters.yaml +++ b/config/crd/bases/flinkoperator.k8s.io_flinkclusters.yaml @@ -8,11 +8,20 @@ metadata: creationTimestamp: null name: flinkclusters.flinkoperator.k8s.io spec: + additionalPrinterColumns: + - JSONPath: .status.state + name: status + type: string + - JSONPath: .metadata.creationTimestamp + name: age + type: date group: flinkoperator.k8s.io names: kind: FlinkCluster listKind: FlinkClusterList plural: flinkclusters + shortNames: + - fc singular: flinkcluster scope: Namespaced subresources: