Install operator in Openshift with empty securityContext - cniackz/public GitHub Wiki

Objective:

To install Operator in OpenShift with Empty securityContext

Steps:

  1. With crc deployed OpenShift locally, instructions at: https://console.redhat.com/openshift/create/local

  2. Get Helm files from https://github.com/minio/operator/blob/master/helm-releases/operator-4.5.8.tgz

  3. Modify the securityContext in the values.yaml file for both deployments:

  securityContext: {}
  containerSecurityContext: {}
  1. Install operator:
helm install \
     --namespace minio-operator \
     --create-namespace \
     minio-operator ./operator
  1. Expectation is that OpenShift will select the values for securityContext since they are empty in the Deployments

GitOps / ArgoCD

  • If using Argo CD then we should use "" rather than {}
operator:
  replicaCount: 2
  securityContext: ""
  containerSecurityContext: ""

console:
  securityContext: ""
  containerSecurityContext: ""