@@ -205,6 +205,8 @@ type JobManagerSpec struct {
205205 // Volume mounts in the JobManager container.
206206 VolumeMounts []corev1.VolumeMount `json:"volumeMounts,omitempty"`
207207
208+ VolumeClaimTemplates []corev1.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty"`
209+
208210 // Init containers of the Job Manager pod.
209211 InitContainers []corev1.Container `json:"initContainers,omitempty"`
210212
@@ -221,13 +223,13 @@ type JobManagerSpec struct {
221223 // pod.
222224 Sidecars []corev1.Container `json:"sidecars,omitempty"`
223225
224- // JobManager Deployment pod template annotations.
226+ // JobManager StatefulSet pod template annotations.
225227 PodAnnotations map [string ]string `json:"podAnnotations,omitempty"`
226228
227229 // SecurityContext of the JM pod.
228230 SecurityContext * corev1.PodSecurityContext `json:"securityContext,omitempty"`
229231
230- // JobManager Deployment pod template labels.
232+ // JobManager StatefulSet pod template labels.
231233 PodLabels map [string ]string `json:"podLabels,omitempty"`
232234}
233235
@@ -278,6 +280,8 @@ type TaskManagerSpec struct {
278280 // More info: https://kubernetes.io/docs/concepts/storage/volumes/
279281 VolumeMounts []corev1.VolumeMount `json:"volumeMounts,omitempty"`
280282
283+ VolumeClaimTemplates []corev1.PersistentVolumeClaim `json:"volumeClaimTemplates,omitempty"`
284+
281285 // Init containers of the Task Manager pod.
282286 InitContainers []corev1.Container `json:"initContainers,omitempty"`
283287
@@ -294,13 +298,13 @@ type TaskManagerSpec struct {
294298 // pod.
295299 Sidecars []corev1.Container `json:"sidecars,omitempty"`
296300
297- // TaskManager Deployment pod template annotations.
301+ // TaskManager StatefulSet pod template annotations.
298302 PodAnnotations map [string ]string `json:"podAnnotations,omitempty"`
299303
300304 // SecurityContext of the TM pod.
301305 SecurityContext * corev1.PodSecurityContext `json:"securityContext,omitempty"`
302306
303- // TaskManager Deployment pod template labels.
307+ // TaskManager StatefulSet pod template labels.
304308 PodLabels map [string ]string `json:"podLabels,omitempty"`
305309}
306310
@@ -502,17 +506,17 @@ type FlinkClusterComponentsStatus struct {
502506 // The state of configMap.
503507 ConfigMap FlinkClusterComponentState `json:"configMap"`
504508
505- // The state of JobManager deployment .
506- JobManagerDeployment FlinkClusterComponentState `json:"jobManagerDeployment "`
509+ // The state of JobManager StatefulSet .
510+ JobManagerStatefulSet FlinkClusterComponentState `json:"jobManagerStatefulSet "`
507511
508512 // The state of JobManager service.
509513 JobManagerService JobManagerServiceStatus `json:"jobManagerService"`
510514
511515 // The state of JobManager ingress.
512516 JobManagerIngress * JobManagerIngressStatus `json:"jobManagerIngress,omitempty"`
513517
514- // The state of TaskManager deployment .
515- TaskManagerDeployment FlinkClusterComponentState `json:"taskManagerDeployment "`
518+ // The state of TaskManager StatefulSet .
519+ TaskManagerStatefulSet FlinkClusterComponentState `json:"taskManagerStatefulSet "`
516520
517521 // The status of the job, available only when JobSpec is provided.
518522 Job * JobStatus `json:"job,omitempty"`
0 commit comments