Skip to content

Commit 37b764e

Browse files
committed
feat: add initContainers support to RisingWaveNodePodTemplateSpec
1 parent 089b5fb commit 37b764e

File tree

5 files changed

+23524
-15507
lines changed

5 files changed

+23524
-15507
lines changed

apis/risingwave/v1alpha1/risingwave_node_group.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,15 @@ type RisingWaveNodePodTemplateSpec struct {
290290
// Additional containers to run in the same Pod. The containers will be appended to the Pod's containers array in order.
291291
// + optional
292292
AdditionalContainers []corev1.Container `json:"additionalContainers,omitempty"`
293+
294+
// List of initialization containers belonging to the pod.
295+
// Init containers are executed in order prior to containers being started. If any
296+
// init container fails, the pod is considered to have failed and is handled according
297+
// to its restartPolicy. The name for an init container or normal container must be
298+
// unique among all containers.
299+
// More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/
300+
// +optional
301+
InitContainers []corev1.Container `json:"initContainers,omitempty"`
293302
}
294303

295304
// RisingWaveNodePodTemplate determines the Pod specs of a RisingWave node.

apis/risingwave/v1alpha1/zz_generated.deepcopy.go

Lines changed: 7 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)