solr-operator icon indicating copy to clipboard operation
solr-operator copied to clipboard

Use global.imagePullSecrets at solr-operator helm chart #338

Open j-coll opened this issue 4 years ago • 5 comments

Same PR as #339, but against main branch

j-coll avatar Oct 13 '21 17:10 j-coll

I saw a discrepancy between this "imagePullSecrets" and the one at the zookeeper-operator. I was expecting here a list of objects with "name", but the zookeeper-operator takes a list of strings

https://github.com/pravega/zookeeper-operator/blob/master/charts/zookeeper-operator/values.yaml#L5-L8

Also, the operator is adding those to the service account, instead of the deployment itself: https://github.com/pravega/zookeeper-operator/blob/master/charts/zookeeper-operator/templates/service_account.yaml#L4-L9 https://github.com/pravega/zookeeper-operator/blob/master/charts/zookeeper-operator/values.yaml#L23-L24

Which is more in line with your proposal here: https://github.com/apache/solr-operator/pull/339#issuecomment-942424667

@hossman , do you have any preference on where to add the imagePullSecrets? Should we try to be "as close as possible" to the zookeeper-operator?

j-coll avatar Oct 22 '21 16:10 j-coll

Well if you want to share imagePullSecrets here, you can merely use the same serviceAccount that is created by the Zookeeper Operator with the Solr Operator. That way the imagePullSecrets will be available to both through the same serviceAccount.

serviceAccount:
  create: false
  name: operator-account

zookeeper-operator:
  install: true
  serviceAccount:
     create: true
     name: operator-account
     imagePullSecrets:
        - list
        - of
        - strings

Using the above helm values, the zookeeper-operator helm chart will create the serviceAccount with the listed imagePullSecrets. Then the Solr Operator will merely use the same one, named operator-account.

No need to actually use the global imagePullSecrets.

HoustonPutman avatar Nov 09 '21 17:11 HoustonPutman