-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs #77
base: main
Are you sure you want to change the base?
Docs #77
Conversation
I need to update these commits for the new CRD from openstack-k8s-operators/openstack-operator#53 |
d3d6600
to
06a1a59
Compare
@@ -0,0 +1,114 @@ | |||
apiVersion: core.openstack.org/v1beta1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
only negative about having an example like this within the cinder-operator is it is likely to become stale quickly. Would this specific example be better suited within the openstack-operator itself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My idea of having this example here for now was to promote cinder folks always deploy using the openstack-operator and for now to make sure we always keep it updated.
In the near future (once we merge the extraVolumes
stuff) I'm think of adding it like you suggest to the openstack-operator itself and make the openstack_deploy
target in install_yamls
' Makefile to do the ceph toy cluster deployment automatically and use it in Cinder and Glance, that way we get something similar to what devstack does, a working OpenStack deployment with Ceph.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we can merge PR77 with openstack-ceph.yaml
and then remove it once a copy of it is in the openstack-operator.
Nice doc effort here. Should be helpful to onboard folks to cinder-operator. I do think that over time we might promote some of this stuff to openstack-operator or at a higher level as it could apply to all openstack operators. But that can come in time. |
You read my mind. :-) |
Do not merge, I want to update it to use workspaces once we merge #79 |
/hold |
885a200
to
39cc8df
Compare
599afa0
to
a503886
Compare
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Akrog The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This patch adds a series of files to the `hack` directory to facilitate the development. These files include: - Helper functions - Script to deploy a local toy Ceph cluster - Script to create the LVM loopback device inside the OpenShift VM - OpenStack and Cinder client installation and configuration files - Manifest for OpenStack with Cinder and Glance using local Ceph cluster
This patch adds some scripts to facilitate the testing of PRs with dependencies. Four scripts are introduced: - hack/cleandeps.sh: Cleans up contents of go.work - hack/showdeps.py: Show the dependencies of a PR based on its commit messages contents (Depends-On:) - hack/setdeps.py: Replaces modules in the go workspace with local directories, PRs, remote branches, etc. - hack/checkout_pr.sh: Leverages the other scripts to do the checkout of a PR and replace the dependencies as needed.
This patch updates the README.md file to be a bit more detailed in how we can get a working deployment with Ceph as a backend for Cinder and Glance.
This patch adds some documentations to help new contributors get started. It is not complete, since it doesn't explain how to work with merged and unmerged dependencies with other operators and lib-common, but it should serve as a good start.
This patch introduces a couple of guides on how to do dependencies in the cinder-operator to explain simple and circular references for both running the operator locally and building the operator.
This patch introduces a simple debug guide to help new developers.
- *If possible don't run things in your own machine to avoid the risk of | ||
affecting the development of your other projects.* | ||
|
||
Here we'll explain how to get a functiona OpenShift deployment running inside a |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: functional
### OpenShift cluster | ||
|
||
There are many ways get an OpenShift cluster, and our recommendation for the | ||
time being is to use [OpenShift Local](https://access.redhat.com/documentation/en-us/red_hat_openshift_local/2.5/html/getting_started_guide/index) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the last version of OpenShift Local is 2.11
Alternatively we can use the `hack/setdeps.py` to do all that for us: | ||
|
||
``` | ||
hack/setdeps.py lib-common=88 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking at he next like it seems 88 is the pull request ID, could it be explicitly mention?
This patch makes changes to the getting started scripts and manifest to adapt to the new extraVol changes.
### How it works | ||
This project aims to follow the Kubernetes [Operator pattern](https://kubernetes.io/docs/concepts/extend-kubernetes/operator/) | ||
```sh | ||
source ~/cinder-operator/hack/dev/osp-clients-cfg.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This works but maybe in the future it can be replaced by the client pod.
|
||
The cinder-operator project will not squash all pull request commits into a | ||
single commit but will look to preserve all submitted individual commits | ||
instead using a merge strategy instead. This means that we can have both |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove one of the 'instead'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really helpful. Thank you Gorka. I think these docs help a lot and aside from a few typos it would be nice to see them merged in the project.
only have a cinder-operator pod running, but also the different cinder | ||
services. | ||
|
||
Since we have everything running we need to uninstalling both the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/uninstalling/uninstall
|
||
### Final notes | ||
|
||
If we need to make changes to the operator we'll need to go through the `make |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
install phony only calls manifests, and skips generate. Do we need to call make generate for deep copy magic to get it into the new bundle/image?..
PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
@Akrog: The following tests failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
update container images to stable zed
This PR includes a series of patches to improve the cinder operator documentation to include: