Skip to content

Commit ebf9a8d

Browse files
joseaclcsatib02
authored andcommitted
Create emptyDir volumen in configcheck pod
Signed-off-by: Jose Antonio Cortes <[email protected]>
1 parent 542aadd commit ebf9a8d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

pkg/resources/fluentd/appconfigmap.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,12 @@ func (r *Reconciler) volumesCheckPod(hashKey string, fluentdSpec v1beta1.Fluentd
332332
},
333333
},
334334
},
335+
{
336+
Name: "tmp",
337+
VolumeSource: corev1.VolumeSource{
338+
EmptyDir: &corev1.EmptyDirVolumeSource{},
339+
},
340+
},
335341
}
336342

337343
if fluentdSpec.CompressConfigFile {
@@ -405,6 +411,10 @@ func (r *Reconciler) containerCheckPod(fluentdSpec v1beta1.FluentdSpec) []corev1
405411
Name: "output-secret",
406412
MountPath: OutputSecretPath,
407413
},
414+
{
415+
Name: "tmp",
416+
MountPath: "/tmp",
417+
},
408418
},
409419
SecurityContext: fluentdSpec.Security.SecurityContext,
410420
Resources: fluentdSpec.ConfigCheckResources,

0 commit comments

Comments
 (0)