File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -135,7 +135,7 @@ func buildPod(
135135 },
136136 }
137137 pod .Spec .Volumes = append (pod .Spec .Volumes , corev1.Volume {
138- Name : objectStore ,
138+ Name : imagebuilderConfig ,
139139 VolumeSource : corev1.VolumeSource {
140140 ConfigMap : & corev1.ConfigMapVolumeSource {
141141 LocalObjectReference : corev1.LocalObjectReference {
@@ -145,13 +145,11 @@ func buildPod(
145145 },
146146 })
147147
148- pod .Spec .Containers [0 ].VolumeMounts = []corev1.VolumeMount {
149- {
150- Name : imagebuilderConfig ,
151- MountPath : imagebuilderConfigPath ,
152- ReadOnly : true ,
153- },
154- }
148+ pod .Spec .Containers [0 ].VolumeMounts = append (pod .Spec .Containers [0 ].VolumeMounts , corev1.VolumeMount {
149+ Name : imagebuilderConfig ,
150+ MountPath : imagebuilderConfigPath ,
151+ ReadOnly : true ,
152+ })
155153
156154 if len (pod .Spec .Containers ) > 0 {
157155 for k , v := range env {
You can’t perform that action at this time.
0 commit comments