HoustonPutman commented on a change in pull request #216:
URL:
https://github.com/apache/lucene-solr-operator/pull/216#discussion_r576354516
##########
File path: controllers/util/solr_util.go
##########
@@ -520,8 +520,15 @@ func GenerateStatefulSet(solrCloud *solr.SolrCloud,
solrCloudStatus *solr.SolrCl
}
if solrCloud.Spec.SolrImage.ImagePullSecret != "" {
- stateful.Spec.Template.Spec.ImagePullSecrets =
[]corev1.LocalObjectReference{
- {Name: solrCloud.Spec.SolrImage.ImagePullSecret},
+ if nil != customPodOptions {
+ stateful.Spec.Template.Spec.ImagePullSecrets = append(
+ customPodOptions.ImagePullSecrets,
Review comment:
I think customPodOptions secrets will only be added if the
`SolrImage.ImagePullSecret` is provided. You should probably have it added in a
separate if statement.
----------------------------------------------------------------
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]