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

Add flinkPropertiesSecret for supporting secret properties #449

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
9 changes: 6 additions & 3 deletions api/v1beta1/flinkcluster_default_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ func TestSetDefault(t *testing.T) {
},
SecurityContext: nil,
},
FlinkProperties: nil,
FlinkProperties: nil,
FlinkPropertiesSecret: nil,
HadoopConfig: &HadoopConfig{
MountPath: "/etc/hadoop/conf",
},
Expand Down Expand Up @@ -204,7 +205,8 @@ func TestSetNonDefault(t *testing.T) {
AfterJobCancelled: "KeepCluster",
},
},
FlinkProperties: nil,
FlinkProperties: nil,
FlinkPropertiesSecret: nil,
HadoopConfig: &HadoopConfig{
MountPath: "/opt/flink/hadoop/conf",
},
Expand Down Expand Up @@ -268,7 +270,8 @@ func TestSetNonDefault(t *testing.T) {
AfterJobCancelled: "KeepCluster",
},
},
FlinkProperties: nil,
FlinkProperties: nil,
FlinkPropertiesSecret: nil,
HadoopConfig: &HadoopConfig{
MountPath: "/opt/flink/hadoop/conf",
},
Expand Down
5 changes: 4 additions & 1 deletion api/v1beta1/flinkcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,9 +447,12 @@ type FlinkClusterSpec struct {
// TaskManager and job containers.
EnvFrom []corev1.EnvFromSource `json:"envFrom,omitempty"`

// Flink properties which are appened to flink-conf.yaml.
// Flink properties which are appended to flink-conf.yaml.
FlinkProperties map[string]string `json:"flinkProperties,omitempty"`

// Secret source of Flink properties which will be appended to flink-conf.yaml.
FlinkPropertiesSecret *corev1.SecretEnvSource `json:"flinkPropertiesSecret,omitempty"`

// Config for Hadoop.
HadoopConfig *HadoopConfig `json:"hadoopConfig,omitempty"`

Expand Down
21 changes: 20 additions & 1 deletion api/v1beta1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading