aws-ebs-csi-driver operator
Deprecated: This code has moved to https://github.com/openshift/aws-ebs-csi-driver-operator
An operator to deploy the AWS EBS CSI driver in OKD.
This operator is currently under heavy development and is not ready for general use yet.
Quick start
Compile the operator with:
$ make build
Manually create the required resources with:
$ oc create -f ./manifests
Run the operator with:
$ ./aws-ebs-csi-driver-operator start --kubeconfig $MY_KUBECONFIG --namespace openshift-aws-ebs-csi-driver-operator
If you want the operator to deploy a custom AWS EBS CSI driver:
$ OPERAND_IMAGE_VERSION=0.1 OPERAND_IMAGE=quay.io/bertinatto/my-custom-aws-ebs-csi-driver ./aws-ebs-csi-driver-operator start --kubeconfig $MY_KUBECONFIG --namespace openshift-aws-ebs-csi-driver-operator
TODO
- Check why deployment and daemonset are updated when there're no changes
- Single CR through API validation of metadata.name
- Make sure there are no snapshots using the driver before removing the it
- Right now it only checks for PVs
- Create CSV to make operator work with OLM
- Add fine-grained AWS permissions (in
./assets/credentials.yaml
)- Right now it allows everything (ec2:*)
- Sync status when error happens while syncing resources other than Deployment and DaemonSet?
- 20 min for resyncing is OK in OLM-managed operators? Check other operators
- Use better defaults in resources in
./assets
- And better/consistent resource names
- Move code to openshift org
- Add tests: unit and e2e
openshift/library-go
- Get openshift/library-go#750 merged
- Then revert commit fbd5b60d166dbb3727f2c8c05dc28760a9047328 here and update
openshift/library-go
- Then revert commit fbd5b60d166dbb3727f2c8c05dc28760a9047328 here and update
- Convert commit c8cd1a9 to a PR against to openshift/library-go
- Need to add tests as well because the whole ApplyStorageclass() function isn't tested
- Create function to replace
deleteAll()
from this operator