-
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
Update odo readme and docs for the experimental mode #2869
Update odo readme and docs for the experimental mode #2869
Conversation
Signed-off-by: Maysun J Faisal <maysun.j.faisal@ibm.com>
Signed-off-by: Maysun J Faisal <maysun.j.faisal@ibm.com>
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.
Besides the changes requested in this PR, I found a few issues that were not related to this PR. So, I've opened #2872 to fix those.
```sh | ||
$ odo push --devfile ./devfile.yaml | ||
Error: unknown flag: --devfile | ||
##### Creating a devfile component: |
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.
IMO, this section should mention that odo create
will create a devfile.yaml
in pwd
.
|
||
``` | ||
$ odo url create myspring --port 8080 --host <ingress domain> | ||
✓ URL created for component: myspring, cluster host: <ingress domain> |
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 need a more concrete example here. What's mentioned here is good but an example with a real ingress domain would serve better. It would be awesome if example is based on CRC since it might be used quite extensively by enterprise devs using odo or IDE plugins.
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.
sure, i will put an example of ingress domain with crc
By default, `odo push` executes `devbuild` and `devrun` devfile commands. However, custom commands can be also be provided to `odo push` via flags `--build-command` & `--run-command`. `odo push` also provides a `--devfile` flag to execute push with a `devfile.yaml` in a custom path. These flags are only available in the experimental mode. | ||
|
||
##### Deleting a devfile component: | ||
Delete a devfile component with `odo delete`. This deletes all the Kubernetes resources created during `odo push`. Use the `-all` flag to delete the Kubernetes resources and the local config at `.odo/env/env.yaml` |
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 we change this a little bit? I would like to request for:
This deletes all the Kubernetes resources for the devfile component which were created during
odo push
.
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.
Also I think it's --all
flag instead of -all
.
✓ Deleting devfile component myspring [339ms] | ||
✓ Successfully deleted component | ||
|
||
``` |
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 we please also add an example of odo delete --all
here?
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 we also add info for odo watch
?
$ odo url create myspring --port 8080 --host <ingress domain> | ||
✓ URL created for component: myspring, cluster host: <ingress domain> | ||
|
||
To create URL on the OpenShift Cluster, please use `odo push` |
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.
Is this OpenShift specific? Should we say something like the cluster in Kubernetes
instead of 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.
We should make it just cluster
, as Tomas suggested earlier.
--vmodule moduleSpec Comma-separated list of pattern=N settings for file-filtered logging | ||
|
||
##### Listing devfile components: | ||
When the experimental mode is enabled, `odo catalog list components` will list the devfile components alongside the OpenShift components. |
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 should mention that the OpenShift/s2i components only show up on OpenShift clusters, and only the devfile components will be listed on Kubernetes clusters.
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 also highlight that odo catalog list components --all
will show all devfile components between both devfile registries (even non-supported ones)
To push either of the url sub-command changes, execute `odo push`. | ||
|
||
##### Pushing to a devfile component: | ||
When the experimental mode is enabled, `odo push` creates a pod with all the devfile component containers and volumes. Push syncs the local project on disk to the pod container where devfile component has `mountSources: true`. The optional build and the mandatory run commands are executed in order. |
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: It should be When the experimental mode is enabled and a valid devfile exists
because if no devfile exists and experimental mode is enabled, it will fall back to s2i (provided you're on an openshift cluster)
|
||
#### Developing a devfile: | ||
|
||
The devfile registry can be accessed link:https://github.com/elsony/devfile-registry[here]. |
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 should highlight that we also pull devfiles from https://github.com/eclipse/che-devfile-registry, even if none of them are considered supported by odo at the moment
Could we move
|
@kadel yeah i can do that with this PR! |
platform error |
/retest |
LGTM. To be honest, I'm going to merge this in now and we iterate over it later so we can create some separate Mergin' |
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: 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 |
/retest Please review the full test history for this PR and help us cut down flakes. |
1 similar comment
/retest Please review the full test history for this PR and help us cut down flakes. |
@cdrage thx, I was busy with the other PR and didnt' have time to update this. But I can open a follow up with all the suggestions from this PR! |
/retest Please review the full test history for this PR and help us cut down flakes. |
Signed-off-by: Maysun J Faisal maysun.j.faisal@ibm.com
What type of PR is this?
/kind documentation
[skip ci]
What does does this PR do / why we need it:
This PR
Which issue(s) this PR fixes:
N/A
How to test changes / Special notes to the reviewer:
N/A