Skip to content

Commit

Permalink
Merge 5093864 into db1dbd0
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Jan 31, 2023
2 parents db1dbd0 + 5093864 commit bd0e36e
Show file tree
Hide file tree
Showing 3 changed files with 174 additions and 18 deletions.
2 changes: 1 addition & 1 deletion build/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v3.5.0
v3.6.0
156 changes: 156 additions & 0 deletions docs/website/blog/2023-01-24-odo-v3.6.0.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
---
title: odo v3.6.0 Released
author: valaparthvi
author_url: https://github.com/valaparthvi
author_image_url: https://github.com/valaparthvi.png
tags: ["release"]
slug: odo-v3.6.0
---

odo `v3.6.0` is now out!

<!--truncate-->

To install `odo`, follow [the installation guide](../docs/overview/installation).

## Notable Changes
Check this Playlist for an overview of the most notable changes in this release: [odo v3.6.0 (Sprint 230)](https://www.youtube.com/playlist?list=PLGMB2PY4SNOrs_t1STsiE9iy_pw1iky0X)

### Features

#### Extend pod and container specification with Devfile attributes `pod-overrides` and `container-overrides`
It is now possible to extend a pod and its container specification by using `pod-overrides` and `container-overrides` Devfile attributes.

This feature allows you to modify pod specifications such as Service Account, Scheduler Name, Security Context, etc and container specifications such as Security Context, and Resources. However, it restricts from modifying pod specifications such as Init Containers, Containers, and Volumes; and container specifications such as Volume Mounts, Image, Ports, Name, Env, Args, and Commands.

`pod-overrides` and `container-overrides` can be specified at both Component and Devfile level.

Example -
```yaml
attributes:
pod-overrides:
spec:
serviceAccountName: my-new-service-account
container-overrides:
spec:
securityContext:
runAsUser: 1001
runAsGroup: 1001
```
<iframe width="560" height="315" src="https://www.youtube.com/embed/7hMm27MYD94" title="Extend pod and container specification with Devfile attributes" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>
#### `odo delete component` now has a new `--running-in` flag
`--running-in` flag can be used with `odo delete component` to specify the mode in which resources should be deleted. There are 2 modes to choose from "dev", and "deploy". By default, the commands deletes all the resources regardless of the mode.

To delete resources running in 'Dev' mode, i.e. resources created by `odo dev` use `--running-in=dev`.

To delete resources running in 'Deploy' mode, i.e. resources created by `odo deploy` use `--running-in=deploy`.

<iframe width="560" height="315" src="https://www.youtube.com/embed/WkRc3F46X_0" title="odo delete component --running-in" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

#### `odo` can now be used inside DevSpaces
Port forwarding done by `odo dev` now uses port numbers starting from 20001 instead of 40001. This change was made to make it possible to run odo inside [DevSpaces](https://developers.redhat.com/products/openshift-dev-spaces/overview).

:::caution
This is a possible breaking change. For more information or any questions, see the issue [#6483](https://github.com/redhat-developer/odo/issues/6483).
:::

<iframe width="560" height="315" src="https://www.youtube.com/embed/ZH76FRlhdAg" title="odo redirecting ports on ports 20.000 and more to make DevSpaces detect the opened ports" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

#### `odo describe component` displays remote source code location for every containers
`odo describe component` now shows where the source code is located on your container. It uses the devfile container spec `mountSources` and `sourceMapping` to determine the location of a mounted source code.

<iframe width="560" height="315" src="https://www.youtube.com/embed/M14JOHB6JOM" title="odo describe component: display remote source code location for container component" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

#### `odo dev` on podman now logs errors when the command fails to run
`odo dev` when running on podman now logs error when the command fails to run. In the previous versions of `odo` this was possible with cluster only.

<iframe width="560" height="315" src="https://www.youtube.com/embed/Kf12lNmp2ic" title="odo dev logs errors when the command fails" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" allowfullscreen></iframe>

## Detailed Changelog

As with every release, you can find the full list of changes and bug fixes on the [GitHub release page](https://github.com/redhat-developer/odo/releases/tag/v3.6.0).

# Release of v3.6.0

## [v3.6.0](https://github.com/redhat-developer/odo/tree/v3.6.0) (2023-01-24)

[Full Changelog](https://github.com/redhat-developer/odo/compare/v3.5.0...v3.6.0)

**Features/Enhancements:**

- Set experimental mode in telemetry [\#6520](https://github.com/redhat-developer/odo/pull/6520) ([feloy](https://github.com/feloy))
- Change port range used for port-forwarding endpoints to start at 20001 [\#6519](https://github.com/redhat-developer/odo/pull/6519) ([feloy](https://github.com/feloy))
- Update devfile/library to support pod-overrides and container-overrides attributes and add integration test for it [\#6512](https://github.com/redhat-developer/odo/pull/6512) ([valaparthvi](https://github.com/valaparthvi))
- Port-forward Debug endpoints only when running `odo dev` with `--debug` [\#6505](https://github.com/redhat-developer/odo/pull/6505) ([rm3l](https://github.com/rm3l))
- odo describe component: display remote source code location for each container component [\#6497](https://github.com/redhat-developer/odo/pull/6497) ([valaparthvi](https://github.com/valaparthvi))
- Implement `odo delete component --running-in` [\#6485](https://github.com/redhat-developer/odo/pull/6485) ([rm3l](https://github.com/rm3l))
- \[podman\] show logs when command fails [\#6481](https://github.com/redhat-developer/odo/pull/6481) ([feloy](https://github.com/feloy))
- Display a warning that "odo dev" on Podman needs to be restarted if the Devfile is changed [\#6477](https://github.com/redhat-developer/odo/pull/6477) ([rm3l](https://github.com/rm3l))
- Ignore and show warning when handling Kubernetes components on Podman [\#6471](https://github.com/redhat-developer/odo/pull/6471) ([valaparthvi](https://github.com/valaparthvi))
- Refactor Advanced guide doc to use framework specific output [\#6444](https://github.com/redhat-developer/odo/pull/6444) ([valaparthvi](https://github.com/valaparthvi))
- Refactor Quickstart guide doc to use framework specific output [\#6443](https://github.com/redhat-developer/odo/pull/6443) ([valaparthvi](https://github.com/valaparthvi))

**Bugs:**

- Add instructions to quickstart guide to create and cd into a directory [\#6511](https://github.com/redhat-developer/odo/pull/6511) ([valaparthvi](https://github.com/valaparthvi))
- hotReloadCapable recognized on podman [\#6509](https://github.com/redhat-developer/odo/pull/6509) ([feloy](https://github.com/feloy))
- Fix: odo dev unable to sync files with name containing special characters [\#6507](https://github.com/redhat-developer/odo/pull/6507) ([valaparthvi](https://github.com/valaparthvi))
- Fix typo with file\_indexer.go [\#6502](https://github.com/redhat-developer/odo/pull/6502) ([valaparthvi](https://github.com/valaparthvi))
- Fix adding .odo to .gitignore file [\#6495](https://github.com/redhat-developer/odo/pull/6495) ([feloy](https://github.com/feloy))
- Compatibility with podman v3 [\#6474](https://github.com/redhat-developer/odo/pull/6474) ([feloy](https://github.com/feloy))
- Do not output log to stdout [\#6473](https://github.com/redhat-developer/odo/pull/6473) ([feloy](https://github.com/feloy))
- Make odo dev work if no endpoint is defined [\#6472](https://github.com/redhat-developer/odo/pull/6472) ([feloy](https://github.com/feloy))
- Remove extra caution from Java Quickstart [\#6467](https://github.com/redhat-developer/odo/pull/6467) ([valaparthvi](https://github.com/valaparthvi))
- Fix odo init output in java quickstart guide [\#6462](https://github.com/redhat-developer/odo/pull/6462) ([valaparthvi](https://github.com/valaparthvi))
- Get binding information without cluster connection [\#6432](https://github.com/redhat-developer/odo/pull/6432) ([feloy](https://github.com/feloy))
- Change wording for dev/deploy [\#6408](https://github.com/redhat-developer/odo/pull/6408) ([feloy](https://github.com/feloy))

**Documentation:**

- Automate Doc: Quickstart Guides [\#6470](https://github.com/redhat-developer/odo/pull/6470) ([valaparthvi](https://github.com/valaparthvi))
- Tell readers of the QuickStart Guide to select "Maven" on Spring Initializr [\#6469](https://github.com/redhat-developer/odo/pull/6469) ([rm3l](https://github.com/rm3l))
- \[docs\] Add note to use SpringBoot 2.7 [\#6464](https://github.com/redhat-developer/odo/pull/6464) ([kadel](https://github.com/kadel))
- Release PR for v3.5.0 [\#6454](https://github.com/redhat-developer/odo/pull/6454) ([github-actions[bot]](https://github.com/apps/github-actions))
- Doc Automation: Command Reference: odo init [\#6442](https://github.com/redhat-developer/odo/pull/6442) ([valaparthvi](https://github.com/valaparthvi))

**Testing/CI:**

- Make doc tests pass [\#6516](https://github.com/redhat-developer/odo/pull/6516) ([feloy](https://github.com/feloy))
- Add more tests for odo dev on Podman \(3\) [\#6515](https://github.com/redhat-developer/odo/pull/6515) ([feloy](https://github.com/feloy))
- Make sure to use random component names when copying sample Devfiles in integration tests [\#6504](https://github.com/redhat-developer/odo/pull/6504) ([rm3l](https://github.com/rm3l))
- Isolate Podman tests in namespaces [\#6499](https://github.com/redhat-developer/odo/pull/6499) ([rm3l](https://github.com/rm3l))
- Add more tests for odo dev on Podman \(1\) [\#6496](https://github.com/redhat-developer/odo/pull/6496) ([feloy](https://github.com/feloy))
- Adding Github Actions for podman testing [\#6385](https://github.com/redhat-developer/odo/pull/6385) ([anandrkskd](https://github.com/anandrkskd))

**Merged pull requests:**

- Version bump to 3.6.0 [\#6528](https://github.com/redhat-developer/odo/pull/6528) ([valaparthvi](https://github.com/valaparthvi))
- Add more tests for odo dev on Podman \(2\) [\#6506](https://github.com/redhat-developer/odo/pull/6506) ([rm3l](https://github.com/rm3l))
- Go: Bump github.com/tidwall/gjson from 1.14.1 to 1.14.4 [\#6490](https://github.com/redhat-developer/odo/pull/6490) ([dependabot[bot]](https://github.com/apps/dependabot))
- Go: Bump github.com/go-openapi/jsonreference from 0.20.0 to 0.20.1 [\#6476](https://github.com/redhat-developer/odo/pull/6476) ([dependabot[bot]](https://github.com/apps/dependabot))



\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*

## Contributing to odo

If `odo` interests you, and you would like to contribute to it, we welcome you!

You can contribute to `odo` in a lot of different ways!

Take it for a spin 🚘 and report back bugs🐞 that you encountered, or features🌟 that you would like to see.

Help us with the documentation📜, or tell us how you used `odo` 🖍.

Review the PRs👀, or help us fix a failing test 🚩.

Work on the TODOs📝, or help us cleanup the code🚮.

Or, simply tune in📻 to our [contributor calls](https://github.com/redhat-developer/odo#meetings) and learn more about `odo`.

`odo` is your playground!

Read the developer reference guide on [contributing to odo](/docs/development/contribution) to know more.
34 changes: 17 additions & 17 deletions docs/website/docs/overview/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ Installing `odo` on `amd64` architecture:

1. Download the latest release from the mirror:
```shell
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.5.0/odo-linux-amd64 -o odo
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.6.0/odo-linux-amd64 -o odo
```

2. (Optional) Verify the downloaded binary with the SHA-256 sum:
```shell
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.5.0/odo-linux-amd64.sha256 -o odo.sha256
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.6.0/odo-linux-amd64.sha256 -o odo.sha256
echo "$(<odo.sha256) odo" | shasum -a 256 --check
```

Expand All @@ -64,12 +64,12 @@ Installing `odo` on `arm64` architecture:

1. Download the latest release from the mirror:
```shell
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.5.0/odo-linux-arm64 -o odo
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.6.0/odo-linux-arm64 -o odo
```

2. (Optional) Verify the downloaded binary with the SHA-256 sum:
```shell
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.5.0/odo-linux-arm64.sha256 -o odo.sha256
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.6.0/odo-linux-arm64.sha256 -o odo.sha256
echo "$(<odo.sha256) odo" | shasum -a 256 --check
```

Expand All @@ -95,12 +95,12 @@ Installing `odo` on `ppc64le` architecture:

1. Download the latest release from the mirror:
```shell
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.5.0/odo-linux-ppc64le -o odo
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.6.0/odo-linux-ppc64le -o odo
```

2. (Optional) Verify the downloaded binary with the SHA-256 sum:
```shell
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.5.0/odo-linux-ppc64le.sha256 -o odo.sha256
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.6.0/odo-linux-ppc64le.sha256 -o odo.sha256
echo "$(<odo.sha256) odo" | shasum -a 256 --check
```

Expand All @@ -126,12 +126,12 @@ Installing `odo` on `s390x` architecture:

1. Download the latest release from the mirror:
```shell
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.5.0/odo-linux-s390x -o odo
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.6.0/odo-linux-s390x -o odo
```

2. (Optional) Verify the downloaded binary with the SHA-256 sum:
```shell
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.5.0/odo-linux-s390x.sha256 -o odo.sha256
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.6.0/odo-linux-s390x.sha256 -o odo.sha256
echo "$(<odo.sha256) odo" | shasum -a 256 --check
```

Expand Down Expand Up @@ -190,12 +190,12 @@ Installing `odo` on `amd64` architecture:

1. Download the latest release from the mirror:
```shell
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.5.0/odo-darwin-amd64 -o odo
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.6.0/odo-darwin-amd64 -o odo
```

2. (Optional) Verify the downloaded binary with the SHA-256 sum:
```shell
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.5.0/odo-darwin-amd64.sha256 -o odo.sha256
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.6.0/odo-darwin-amd64.sha256 -o odo.sha256
echo "$(<odo.sha256) odo" | shasum -a 256 --check
```

Expand All @@ -222,12 +222,12 @@ Installing `odo` on `arm64` architecture:

1. Download the latest release from the mirror:
```shell
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.5.0/odo-darwin-arm64 -o odo
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.6.0/odo-darwin-arm64 -o odo
```

2. (Optional) Verify the downloaded binary with the SHA-256 sum:
```shell
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.5.0/odo-darwin-arm64.sha256 -o odo.sha256
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.6.0/odo-darwin-arm64.sha256 -o odo.sha256
echo "$(<odo.sha256) odo" | shasum -a 256 --check
```

Expand Down Expand Up @@ -258,12 +258,12 @@ echo 'export PATH=$PATH:$HOME/bin' >> ~/.bashrc

2. Download the latest release from the mirror:
```shell
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.5.0/odo-windows-amd64.exe -o odo.exe
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.6.0/odo-windows-amd64.exe -o odo.exe
```

2. (Optional) Verify the downloaded binary with the SHA-256 sum:
```shell
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.5.0/odo-windows-amd64.exe.sha256 -o odo.exe.sha256
curl -L https://developers.redhat.com/content-gateway/rest/mirror/pub/openshift-v4/clients/odo/v3.6.0/odo-windows-amd64.exe.sha256 -o odo.exe.sha256
# Visually compare the output of both files
Get-FileHash odo.exe
type odo.exe.sha256
Expand Down Expand Up @@ -333,14 +333,14 @@ The download can be executed using the `download` goal which automatically retri
```shell
mvn software.tnb:odo-downloader-maven-plugin:0.1.3:download \
-Dodo.target.file=$HOME/bin/odo \
-Dodo.version=v3.5.0
-Dodo.version=v3.6.0
```

### asdf
The [asdf version manager](https://asdf-vm.com/) is a tool for managing multiple runtime versions using a common CLI.
With `asdf` installed, the [asdf plugin for odo](https://github.com/rm3l/asdf-odo) can be used to install any released version of `odo`:
```
asdf plugin add odo
asdf install odo 3.5.0
asdf global odo 3.5.0
asdf install odo 3.6.0
asdf global odo 3.6.0
```

0 comments on commit bd0e36e

Please sign in to comment.