Skip to content
This repository was archived by the owner on May 8, 2025. It is now read-only.

Commit 230d621

Browse files
authored
Add support for initContainers in job and task manager. (#279)
1 parent 800bd30 commit 230d621

File tree

6 files changed

+1722
-609
lines changed

6 files changed

+1722
-609
lines changed

api/v1beta1/flinkcluster_types.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ type JobManagerSpec struct {
202202
// Volume mounts in the JobManager container.
203203
VolumeMounts []corev1.VolumeMount `json:"volumeMounts,omitempty"`
204204

205+
// Init containers of the Job Manager pod.
206+
InitContainers []corev1.Container `json:"initContainers,omitempty"`
207+
205208
// Selector which must match a node's labels for the JobManager pod to be
206209
// scheduled on that node.
207210
// More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/
@@ -266,6 +269,9 @@ type TaskManagerSpec struct {
266269
// More info: https://kubernetes.io/docs/concepts/storage/volumes/
267270
VolumeMounts []corev1.VolumeMount `json:"volumeMounts,omitempty"`
268271

272+
// Init containers of the Task Manager pod.
273+
InitContainers []corev1.Container `json:"initContainers,omitempty"`
274+
269275
// Selector which must match a node's labels for the TaskManager pod to be
270276
// scheduled on that node.
271277
// More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/

api/v1beta1/zz_generated.deepcopy.go

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)