-
Notifications
You must be signed in to change notification settings - Fork 1.8k
RHDEVDOCS-4476: key features in odo 3.0 #51192
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
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,68 @@ | ||||||||||||||||||
// Module included in the following assemblies: | ||||||||||||||||||
// | ||||||||||||||||||
// * cli_reference/developer_cli_odo/understanding-odo.adoc | ||||||||||||||||||
|
||||||||||||||||||
:_content-type: CONCEPT | ||||||||||||||||||
[id="odo-new-commands-30_{context}"] | ||||||||||||||||||
= Major highlights of odo 3.0 | ||||||||||||||||||
|
||||||||||||||||||
`odo` 3.0 includes new commands to improve the developer experience, providing the same functionality as before, but in a faster and more efficient manner. | ||||||||||||||||||
|
||||||||||||||||||
== odo init | ||||||||||||||||||
|
||||||||||||||||||
The `odo init` command automatically analyzes your directory and, based on the project type, suggests an appropriate Devfile to use. It also provides a better interactive experience for configuring your Devfile according to your project requirement. With this feature, you can set the environment variables exported to your application and the ports exposed by it on the cluster. | ||||||||||||||||||
|
||||||||||||||||||
== odo dev | ||||||||||||||||||
|
||||||||||||||||||
The `odo dev` command allows you to code, build, run, debug, and test your applications on the cluster in a continuous workflow. It combines the `odo push` and `odo watch` commands from `odo` version 2 into a single command. | ||||||||||||||||||
|
||||||||||||||||||
Continuous workflow:: `odo dev` is a non-terminating command that runs until you enter `Ctrl+C`. It continuously watches the directory for any changes (including the changes occurring in the Devfile) and automatically synchronizes them with the application running on the cluster. | ||||||||||||||||||
|
||||||||||||||||||
Manual trigger to apply local changes on the cluster:: By default, `odo dev` automatically detects any changes in the directory, and synchronizes with the application running on the cluster. However, it is possible to trigger this manually by running the command with the `--no-watch` flag and pressing `p` to trigger the synchronization. | ||||||||||||||||||
|
||||||||||||||||||
Improved watch system:: The `odo dev` command continuously monitors the resources created to run the application on the cluster and ensures that the application always stays running. | ||||||||||||||||||
|
||||||||||||||||||
Resource cleanup:: Before exiting, the `odo dev` command cleans up any resources that it created for running the application on the cluster. | ||||||||||||||||||
|
||||||||||||||||||
Port forwarding to access the application:: The `odo dev` command uses port-forwarding for application access, making it much faster to access the application. | ||||||||||||||||||
|
||||||||||||||||||
== odo add binding | ||||||||||||||||||
|
||||||||||||||||||
The `odo add binding` command allows the application to connect to an Operator-backed service and replaces the `odo link` command. | ||||||||||||||||||
|
||||||||||||||||||
Interactive mode:: The `odo add binding` command improves the developer experience by providing an interactive mode that lists bindable services in all the namespaces, and a mechanism to personalize related configuration. | ||||||||||||||||||
|
||||||||||||||||||
Ability to connect to a service in any namespace:: The `odo add binding` command allows the application to connect to any bindable service in any namespace, not just in the same namespace as the application. | ||||||||||||||||||
|
||||||||||||||||||
Run from anywhere:: You can run the `odo add binding` command from anywhere and it does not require access to a Devfile to work. With this method, you can directly create the `ServiceBinding` resource on the cluster, or you can write the YAML to a file, or display it on the command line. | ||||||||||||||||||
|
||||||||||||||||||
Work without a running application:: Compared to version 2, the `odo add binding` command does not require the application to be running on the cluster, making it even faster. | ||||||||||||||||||
|
||||||||||||||||||
Only supports bindable Operators:: | ||||||||||||||||||
The version 2 `odo link` command links an application to another application and any Operator-backed service. However, `odo` version 3 currently only supports connecting to services backed by Operators that are considered bindable by the Service Binding Operator. | ||||||||||||||||||
Comment on lines
+39
to
+42
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||
|
||||||||||||||||||
Requires the Service Binding Operator:: You must install the Service Binding Operator on the cluster before running the `odo add binding` command. The command relies on the Operator to provide it with a list of bindable services. | ||||||||||||||||||
|
||||||||||||||||||
== odo deploy | ||||||||||||||||||
|
||||||||||||||||||
The `odo deploy` command allows you to run the outerloop of your development cycle. When your application is running successfully in your local environment, you can use `odo deploy` to move it to the cluster. | ||||||||||||||||||
|
||||||||||||||||||
== odo registry | ||||||||||||||||||
|
||||||||||||||||||
The `odo registry` command now lists all the Devfiles available in the Devfile registries that you have added to your system. | ||||||||||||||||||
|
||||||||||||||||||
Filtering the Devfiles:: The `odo registry` command can filter the list of Devfiles, based on a keyword by using the `--filter` flag, based on a Devfile registry by using the `--devfile-registry` flag, or based on the Devfile name by using the `--devfile` flag. | ||||||||||||||||||
|
||||||||||||||||||
Detailed information about the Devfiles:: The `odo registry` command can provide detailed information about all the Devfiles, when you run it with `--details` flag. | ||||||||||||||||||
|
||||||||||||||||||
|
||||||||||||||||||
== odo list | ||||||||||||||||||
|
||||||||||||||||||
The `odo list` command lists all the resources created by `odo`, including components and bindings. | ||||||||||||||||||
|
||||||||||||||||||
Improved information:: | ||||||||||||||||||
The `odo list` command provides a better developer experience by outputting information about your application such as the mode it is running in, the tool and version managing it, and the project type. | ||||||||||||||||||
+ | ||||||||||||||||||
It further provides subcommands such as `odo list components`, and `odo list bindings` to list the corresponding resources. | ||||||||||||||||||
|
||||||||||||||||||
Ability to list bindings:: | ||||||||||||||||||
The `odo list` command provides a way to list the bindings that are created on the cluster with `odo`. |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.