shared-resources-operator

module
v0.0.0-...-662615b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2021 License: Apache-2.0

README

csi-driver-shared-resource-operator

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.

Quick start

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, and the image used for the Shared Resource CSI Driver that this operator deploys, all via environment variables:

  • NODE_DRIVER_REGISTRAR_IMAGE where the default is quay.io/openshift/origin-csi-node-driver-registrar:latest
  • OPERATOR_IMAGE where the default is quay.io/openshift/origin-csi-driver-shared-resource-operator:latest
  • DRIVER_IMAGE where the default is quay.io/openshift/origin-csi-driver-shared-resource:latest

Directories

Path Synopsis
cmd
pkg
generated
Code generated for package generated by go-bindata DO NOT EDIT.
Code generated for package generated by go-bindata DO NOT EDIT.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL