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: diff --git a/helm-chart/flink-operator/templates/flink-operator.yaml b/helm-chart/flink-operator/templates/flink-operator.yaml index 736c6b6a..c6bf9d42 100644 --- a/helm-chart/flink-operator/templates/flink-operator.yaml +++ b/helm-chart/flink-operator/templates/flink-operator.yaml @@ -347,6 +347,10 @@ spec: app: flink-operator control-plane: controller-manager spec: + {{- with .Values.imagePullSecrets }} + imagePullSecrets: + {{- toYaml . | nindent 8 }} + {{- end }} containers: - args: - --secure-listen-address=0.0.0.0:8443 diff --git a/helm-chart/flink-operator/values.yaml b/helm-chart/flink-operator/values.yaml index ed02a873..9ce387f7 100644 --- a/helm-chart/flink-operator/values.yaml +++ b/helm-chart/flink-operator/values.yaml @@ -6,6 +6,9 @@ flinkOperatorNamespace: # Watch custom resources in the namespace, ignore other namespaces. If empty, all namespaces will be watched. watchNamespace: +# -- Image pull secrets +imagePullSecrets: [] + # The number of replicas of the operator Deployment replicas: 1