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

Support sidecar containers in TaskManager pod #2

Merged
merged 1 commit into from
Sep 16, 2019
Merged
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
4 changes: 4 additions & 0 deletions api/v1alpha1/flinkcluster_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,10 @@ type TaskManagerSpec struct {

// Volume mounts in the TaskManager containers.
Mounts []corev1.VolumeMount `json:"mounts,omitempty"`

// Sidecar containers running alongside with the TaskManager container in the
// pod.
Sidecars []corev1.Container `json:"sidecars,omitempty"`
}

// JobSpec defines properties of a Flink job.
Expand Down
7 changes: 7 additions & 0 deletions api/v1alpha1/zz_generated.deepcopy.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,13 @@ func (in *TaskManagerSpec) DeepCopyInto(out *TaskManagerSpec) {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
if in.Sidecars != nil {
in, out := &in.Sidecars, &out.Sidecars
*out = make([]v1.Container, len(*in))
for i := range *in {
(*in)[i].DeepCopyInto(&(*out)[i])
}
}
}

// DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TaskManagerSpec.
Expand Down
Loading