HoustonPutman commented on code in PR #520:
URL: https://github.com/apache/solr-operator/pull/520#discussion_r1169244952
##########
controllers/util/solr_util.go:
##########
@@ -594,6 +594,21 @@ func generateSolrSetupInitContainers(solrCloud
*solr.SolrCloud, solrCloudStatus
}
setupCommands := []string{"cp /tmp/solr.xml /tmp-config/solr.xml"}
+ // Figure out the solrUser and solrGroup to use
+ solrUser := DefaultSolrUser
+ solrGroup := DefaultSolrGroup
+ solrPodSecurityContext :=
solrCloud.Spec.CustomSolrKubeOptions.PodOptions.PodSecurityContext
+
+ if solrPodSecurityContext.RunAsUser != nil {
+ solrUser = int(*solrPodSecurityContext.RunAsUser)
+
+ if solrPodSecurityContext.RunAsGroup != nil {
Review Comment:
So this should be `fsGroup` not `runAsGroup`, since `fsGroup` is meant to be
used for volumes.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]