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

Adding support for OpenShift securityContext

Open computate opened this issue 9 months ago • 1 comments

Adding an openshift: true boolean field to the operator to remove the default Solr fsGroup: 8983 securityContext used in Kubernetes.

apiVersion: solr.apache.org/v1beta1
kind: SolrCloud
spec:
  customSolrKubeOptions:
    podOptions:
      openshift: true

I have successfully tested these changes in OpenShift Local and confirmed that an empty securityContext allows the solrcloud pod run on OpenShift.

spec:
  template:
    spec:
      securityContext: {}

Fixes #466

computate avatar May 25 '24 04:05 computate