HoustonPutman commented on a change in pull request #265:
URL: https://github.com/apache/solr-operator/pull/265#discussion_r621422387



##########
File path: controllers/util/solr_util.go
##########
@@ -214,16 +214,20 @@ func GenerateStatefulSet(solrCloud *solr.SolrCloud, 
solrCloudStatus *solr.SolrCl
                        },
                }
        } else {
-               emptyDirVolume := corev1.Volume{
-                       Name: solrDataVolumeName,
-                       VolumeSource: corev1.VolumeSource{
-                               EmptyDir: &corev1.EmptyDirVolumeSource{},
-                       },
+               ephemeralVolume := corev1.Volume{
+                       Name:         solrDataVolumeName,
+                       VolumeSource: corev1.VolumeSource{},
                }
                if solrCloud.Spec.StorageOptions.EphemeralStorage != nil {

Review comment:
       If `solrCloud.Spec.StorageOptions.EphemeralStorage` is empty, but not 
`nil`, then I think we will have an empty VolumeSource. We want to default to a 
plain EmptyDir in this case as well.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to