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

add imagePullSecrets to helm chart value config #418

Open
wants to merge 2 commits 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
4 changes: 4 additions & 0 deletions helm-chart/flink-operator/templates/flink-operator.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions helm-chart/flink-operator/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down