-
Notifications
You must be signed in to change notification settings - Fork 243
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
Documentation for Odo integration with Operator Hub #3029
Conversation
docs/user/operator-hub.adoc
Outdated
# Odo integration with Operator Hub | ||
--- | ||
|
||
When working in experimental mode, Odo provides the abilitiy to work with |
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.
abilitiy -> ability
docs/user/operator-hub.adoc
Outdated
In this document we will cover the following: | ||
|
||
. <<list-operators,List the operators installed in the current project>> | ||
. <<dry-run,Print the YAML specification that wil be used to start the service from a CRD>> |
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.
wil -> will
docs/user/operator-hub.adoc
Outdated
and the | ||
link:https://docs.openshift.com/container-platform/4.3/operators/crds/crd-extending-api-with-crds.html#crd-custom-resource-definitions_crd-extending-api-with-crds[CRD | ||
(Custom Resource Definitions)] provided by these operators. For example, we | ||
have installed Etcd and MongoDB opertors and the output we get is like below: |
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.
opertors -> operators
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.
We generally capitalize Operators.
docs/user/operator-hub.adoc
Outdated
@@ -0,0 +1,253 @@ | |||
:source-highlighter: pygments | |||
|
|||
# Odo integration with Operator Hub |
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.
Should Odo/odo be capitalized?
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.
No, odo should not be capitalized. Good catch Yana.
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.
Found a few typos.
Do you want me to make stylistic suggestions to the language (the many very rigid lang rules we use for downstream...) or do you prefer to have these upstream docs to be written in a less strict/more relaxed language?
/approve |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: kadel 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 |
Codecov Report
@@ Coverage Diff @@
## master #3029 +/- ##
==========================================
- Coverage 45.43% 45.42% -0.01%
==========================================
Files 109 109
Lines 10400 10408 +8
==========================================
+ Hits 4725 4728 +3
- Misses 5220 5223 +3
- Partials 455 457 +2
Continue to review full report at Codecov.
|
Fixed them all. Thanks for the catch!
I'd prefer to keep it somewhat relaxed. But how do other teams (for eg: CRC) do this? Also, making changes here would mean that you can use more things as-is, right? |
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.
Hey @dharmit thank you so much for detailing how to use odo with Operator Hub.
My question is, is there any way you can format it similar to how we do some of the OpenShift tutorials? For example:
- Showing how to create a project first
- Using the numeric formatting (1. 2. 3. etc) of the steps
Similar to this example: https://odo.dev/docs/creating-a-multicomponent-application-with-odo/
The source being here: https://github.com/openshift/openshift-docs/blob/master/cli_reference/openshift_developer_cli/creating-a-multicomponent-application-with-odo.adoc
If not, no worries. at the moment, the site and the synchronization to the current docs is a bit messed up.
I know this is a lot to ask. But I can re-organize it if you'd like. I wouldn't be removing any of your notes, but simply putting it in a similar format as our current documentation.
docs/user/operator-hub.adoc
Outdated
# odo integration with Operator Hub | ||
--- | ||
|
||
When working in experimental mode, Odo provides the ability to work with |
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.
odo should not be capitalized
docs/user/operator-hub.adoc
Outdated
start from it. | ||
==== | ||
|
||
To start an `EtcdCluster` service from `etcdoperator.v0.9.4` operator, you need |
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 mention that the name of the CRD
is case sensitive?
docs/user/operator-hub.adoc
Outdated
|
||
=== [[dry-run]]Print the YAML used to start a service | ||
|
||
Odo provides the feature to print the YAML definition of the service (Custom |
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: s/Odo
/odo
The docs are very nice and thorough, the one thing that worries me is that it exposes alot of words like |
I wouldn't be afraid of using terms like |
Sure, I can make the changes that should help this piece use directly on odo website. That would be cool! |
I agree with your thought process but I think we've used the corresponding words used in odo terminology all over the place. For example, if we're talking about As for
I think we should always keep in mind to use the words in odo terminology more liberally than those from k8s terminology. So, if it seems like k8s terminology is used more than odo terminology, it's wrong on our part (here, my part) and we must fix it! That said, I believe that documentation is a place where we could use words from k8s world so that interested users can know what's happening under the hood. |
@cdrage to make changes to this PR to structure the docs like you've suggested, I think I could do below:
Is there anything else I'd be required to do? |
@dharmit Nope, no need for the For example, we start with listing pre-requisites and follow a simple step-by-step structure. Have a look at a few of the other examples such as: https://odo.dev/docs/creating-a-multicomponent-application-with-odo/ and https://odo.dev/docs/creating-an-application-with-a-database/ and notice how similar they are. |
@cdrage I've made the changes. Hope they align with your recommendations. Let me know if you'd like me to make any changes. I've kept a separate "Prerequisites" section but let me know if it doesn't make sense to keep it. Other than that, the docs on https://odo.dev need to change from |
/lgtm |
/retest Please review the full test history for this PR and help us cut down flakes. |
@cdrage need your input on this comment #3029 (comment). If it looks good, could you please LGTM? /hold |
docs/user/operator-hub.adoc
Outdated
:source-highlighter: pygments | ||
|
||
# odo integration with Operator Hub | ||
--- |
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.
Have to get rid of the above stuff :) not sure why this is here.
docs/user/operator-hub.adoc
Outdated
the cluster. It allows listing of Operators, creation of services from CRD | ||
(Custom Resource Definitions) provided by the Operators, printing the YAML | ||
definition and providing custom YAML definition to start the service from a | ||
CRD. |
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.
Can you refactor the above sentence? We could instead create it as bullet points? Sorry! Just a very long sentence.
docs/user/operator-hub.adoc
Outdated
[NOTE] | ||
==== | ||
Installation of Operators is not a part of odo workflow. It is something that | ||
your OpenShift/Kubernetes cluster administrator should be able to do for you. |
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.
We may have to remove this since you've already got it covered under prerequisites.
docs/user/operator-hub.adoc
Outdated
|
||
=== Prerequisites | ||
|
||
- `odo` is installed. |
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.
can remove this
docs/user/operator-hub.adoc
Outdated
=== Prerequisites | ||
|
||
- `odo` is installed. | ||
- Required Operators are installed in the project/namespace by cluster |
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.
Reword this?
Perhaps something like: Operators are required to be installed in your OpenShift cluster.
And then provide a link?
docs/user/operator-hub.adoc
Outdated
+ | ||
[source,shell] | ||
---- | ||
$ export ODO_EXPERIMENTAL=true |
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.
See how we do it here: https://odo.dev/docs/deploying-a-devfile-using-odo/#deploying-your-first-devfile
No need to go into detail with regards to adding experimental mode, we can make it just a one-liner under pre-requisites.
docs/user/operator-hub.adoc
Outdated
Create a project to keep your source code, tests, and libraries organized in a | ||
separate single unit. | ||
|
||
1. Log in to the Kubernetes/OpenShift cluster: |
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.
Add spacing between /
docs/user/operator-hub.adoc
Outdated
|
||
=== [[list-operators]]Listing the Operators | ||
|
||
To list the Operators installed in current project, execute below command: |
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.
installed in the current project
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.
No need to have stuff like: execute the command
See examples such as: https://odo.dev/docs/creating-a-single-component-application-with-odo/
You just need to say: List the Operators installed in the current project
.
And then show the command.
docs/user/operator-hub.adoc
Outdated
NAME CRDs | ||
etcdoperator.v0.9.4 EtcdCluster, EtcdBackup, EtcdRestore | ||
mongodb-enterprise.v1.4.5 MongoDB, MongoDBUser, MongoDBOpsManager | ||
---- |
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.
No need to have this section. Instead, add the output of this into line 75:
And then go into detail after with the following paragraphs / sentences.
docs/user/operator-hub.adoc
Outdated
---- | ||
|
||
In above output, `etcdoperator.v0.9.4` is the Operator while `EtcdCluster`, | ||
`EtcdBackup` and `EtcdRestore` are the CRDs provided by this Operator. |
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 Operator
Can you change this so it's in the
|
@dharmit: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. 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. |
/lgtm |
What type of PR is this?
/kind documentation
[skip ci]
What does does this PR do / why we need it:
Adds documentation explaining how to use Odo and Operator Hub
Which issue(s) this PR fixes:
Fixes #2779
How to test changes / Special notes to the reviewer: