Set volume to pod properly
This commit is contained in:
parent
b96979888c
commit
f80c3c1928
|
|
@ -360,7 +360,7 @@ func (r *RunnerReconciler) newPod(runner v1alpha1.Runner) (corev1.Pod, error) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if len(runner.Spec.Volumes) != 0 {
|
if len(runner.Spec.Volumes) != 0 {
|
||||||
pod.Spec.Volumes = append(runner.Spec.Volumes, runner.Spec.Volumes...)
|
pod.Spec.Volumes = append(pod.Spec.Volumes, runner.Spec.Volumes...)
|
||||||
}
|
}
|
||||||
if len(runner.Spec.InitContainers) != 0 {
|
if len(runner.Spec.InitContainers) != 0 {
|
||||||
pod.Spec.InitContainers = append(pod.Spec.InitContainers, runner.Spec.InitContainers...)
|
pod.Spec.InitContainers = append(pod.Spec.InitContainers, runner.Spec.InitContainers...)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue