An operator to deploy the Shared Resource CSI Driver in OpenShift.
This operator will eventually be installed by the cluster-storage-operator.
NOTE: at the moment, using this driver is only supported via cloning this repository and executing the commands detailed below.
Before running the operator manually, you must remove the operator installed by CSO/CVO. To facilitate that, you should have a clone of the cluster-storage-operator as a peer subdirectory (off of an 'openshift' directory) of your clone of this repository.
# Scale down CVO and CSO
oc scale --replicas=0 deploy/cluster-version-operator -n openshift-cluster-version
oc scale --replicas=0 deploy/cluster-storage-operator -n openshift-cluster-storage-operator
# Delete operator's resources from a clone of the cluster storage operator repository
oc delete -f ../cluster-storage-operator/assets/csidriveroperators/shared-resource/
# Delete operator's operand resources from a clone of this repository
oc delete -f ./assets
To build run make build
.
To deploy run make deploy
. You can override the images used for the CSI Node Driver Registrar, the image for this operator,
the image used for the Shared Resource CSI Driver that this operator deploys and the image used for the Shared Resource CSI Driver
Webhook, all via environment variables:
NODE_DRIVER_REGISTRAR_IMAGE
where the default is quay.io/openshift/origin-csi-node-driver-registrar:latestOPERATOR_IMAGE
where the default is quay.io/openshift/origin-csi-driver-shared-resource-operator:latestDRIVER_IMAGE
where the default is quay.io/openshift/origin-csi-driver-shared-resource:latestWEBHOOK_IMAGE
where the default is quay.io/openshift/origin-csi-driver-shared-resource-webhook:latest