Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

add crd shortName "fc" & add printcolumn status #421

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions api/v1beta1/flinkcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
9 changes: 9 additions & 0 deletions config/crd/bases/flinkoperator.k8s.io_flinkclusters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down