3719 Commits

Author SHA1 Message Date
dependabot[bot]
3b73c806db Go: Bump golang.org/x/sys from 0.8.0 to 0.10.0 (#6948)
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.8.0 to 0.10.0.
- [Commits](https://github.com/golang/sys/compare/v0.8.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-07-05 11:06:05 -04:00
Philippe Martin
649181c1dc Implement devfile state in odo api (#6941)
* POST /devstate/container

* Implement POST /devstate/container

* Generate DELETE /devstate/container/{containerName}

* Implement DELETE /devstate/container/{containerName}

* Serve /devstate/image

* Implement /devstate/image

* Serve /devstate/resource

* Implement /devstate/resource

* Move Components specific code to components.go

* Serve /devstate/*command

* Implement /devstate/*command

* Serve /devstate/metadata

* Implement /devstate/metadata

* Serve devstate/chart

* Implement /devstate/chart

* Create a DevfileContent schema reference

* Use `DELETE /command/{name}` instead of `DELETE /*Command/{name}`

* Serve /devstate/command/move

* Implement /devstate/command/move

* Serve /devstate/command/{name}/[un]setDefault

* Implement /devstate/command/{name}/[un]setDefault

* serve /devstate/events

* Implement /devstate/events

* Serve /devstate/quantityValid

* Implement /devstate/quantityValid

* Add json tag to API result value

* Sets a proxy for the API

* Move calls from wasm to api (first part)

* Implement PUT /devsatte/devfile

* Move calls from wasm to api (end)

* Implement GET /devstate/devfile

* Implement DELETE /devstate/devfile

* At startup, get devfile from api, not from localStorage

* Rename service wasmGo -> devstate

* Remove wasm module

* Update to latest devfile-lifecycle version, license compatible

* Apply suggestions from code review

Co-authored-by: Armel Soro <armel@rm3l.org>

* Remove wasm from ui/{Makefile/devfile.yaml}

* Define DevfileContent into apispec

* Define required fields

* Generate API models from front

* Regenerate API server after spec changes

* Fix examples case

* Fix github action e2e tests not running

* Make target for all generated api code

---------

Co-authored-by: Armel Soro <armel@rm3l.org>
2023-07-05 05:19:29 -04:00
Armel Soro
4479c24dfe Display list of commands from the local devfile in odo describe component output (#6944)
* Add integration tests highlighting the expectations

* Add and fill a 'Commands' field from the DevfileData struct returned by `describe`

* Display commands in the human-readable output of 'odo describe'

* Add documentation and sample outputs
2023-07-03 10:19:06 -04:00
Armel Soro
97644aac7c Fix CI Devfile Registry URL used in OCP interop tests (#6946) 2023-07-03 09:05:18 -04:00
dependabot[bot]
c1b40771b4 Website: Bump prism-react-renderer from 1.3.5 to 2.0.6 in /docs/website (#6945)
* Website: Bump prism-react-renderer from 1.3.5 to 2.0.6 in /docs/website

Bumps [prism-react-renderer](https://github.com/FormidableLabs/prism-react-renderer) from 1.3.5 to 2.0.6.
- [Release notes](https://github.com/FormidableLabs/prism-react-renderer/releases)
- [Commits](https://github.com/FormidableLabs/prism-react-renderer/compare/v1.3.5...prism-react-renderer@2.0.6)

---
updated-dependencies:
- dependency-name: prism-react-renderer
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix error with module 'prism-react-renderer/themes/github' not being found

prism-react-renderer API has changed in version 2.0.0 [1]

[1] https://github.com/FormidableLabs/prism-react-renderer/releases/tag/prism-react-renderer@2.0.0

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Armel Soro <asoro@redhat.com>
2023-07-03 05:10:32 -04:00
Parthvi Vala
a10f693fa7 Flake: Attempt at fixing Personalize configuration (#6830)
* Flake: Attempt at fixing Personalize configuration

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Separate the tests

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Another attempt

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* another attempt

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Remove env var test; already covered in e2e tests

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Update tests/helper/helper_interactive.go

---------

Signed-off-by: Parthvi Vala <pvala@redhat.com>
2023-06-29 16:45:45 +02:00
Philippe Martin
6a4e964d5e Move from github.com/feloy/devfile-builder (#6937)
* Move from github.com/feloy/devfile-builder

* Update .github/workflows/ui-e2e.yaml

Co-authored-by: Armel Soro <armel@rm3l.org>

---------

Co-authored-by: Armel Soro <armel@rm3l.org>
2023-06-29 11:06:02 +02:00
Armel Soro
ce1d824886 Add .gitattributes file with Git-style path matches customizing how changed files appear on GitHub (#6940)
This should make it easier to review large PRs
with a lot of changes from certain files
(like in `**/vendor/**`), by hiding them by default.
2023-06-28 17:31:23 +02:00
Philippe Martin
f276d0d77b Watch for new pods when logs --follow (#6914)
* Watch for new pods when logs --follow

* Fix integration tests

* Implement --follow for podman platform

* Add integration test
2023-06-28 14:21:04 +02:00
Philippe Martin
c8a1414926 Document and return JSON data for API errors (#6938) 2023-06-28 13:20:05 +02:00
Armel Soro
c0127ce201 Bump version to 3.12.0 (#6935) v3.12.0 2023-06-27 18:07:21 +02:00
Parthvi Vala
3bf5ffc369 List namespace right after namespace has been created (#6922)
* List namespace right after namespace has been created

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Add sleep after listing namespaces

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Error out when timeout is reached

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Modify spinner messages

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Attempt at fixing doc tests

Signed-off-by: Parthvi Vala <pvala@redhat.com>

---------

Signed-off-by: Parthvi Vala <pvala@redhat.com>
2023-06-27 16:02:54 +02:00
Armel Soro
324d73fb37 Bump Alizer to fix potential panic when analyzing large projects (#6926)
* Bump Alizer to the latest commit at this time [1]

Amongst other things, this fixes an issue when analyzing large projects,
by preventing potential panics when trying to detect application ports.

[1] 14114f066c

* Downgrade and pin the versions of 'sigs.k8s.io/controller-runtime' and 'k8s.io/*' to the previous versions we had

Bumping Alizer bumped these packages to upper versions,
which seems to cause build errors due to Service Binding Operator
libraries not compatible with those new versions.
See the error below.

Since we don't want to update SBO libraries at this time
(as SBO is currently in maintenance mode only),
this makes sure we are using the versions it builds against.

Build error for reference:
```
go install -mod=vendor -ldflags="-X github.com/redhat-developer/odo/pkg/version.GITCOMMIT=cb9c13900" ./cmd/odo/
# github.com/redhat-developer/service-binding-operator/apis/spec/v1alpha3
vendor/github.com/redhat-developer/service-binding-operator/apis/spec/v1alpha3/servicebinding_webhook.go:44:27: cannot use &ServiceBinding{} (value of type *ServiceBinding) as type admission.Validator in variable declaration:
        *ServiceBinding does not implement admission.Validator (wrong type for ValidateCreate method)
                have ValidateCreate() error
                want ValidateCreate() (warnings admission.Warnings, err error)
# github.com/redhat-developer/service-binding-operator/apis/binding/v1alpha1
vendor/github.com/redhat-developer/service-binding-operator/apis/binding/v1alpha1/servicebinding_webhook.go:37:27: cannot use &ServiceBinding{} (value of type *ServiceBinding) as type admission.Validator in variable declaration:
        *ServiceBinding does not implement admission.Validator (wrong type for ValidateCreate method)
                have ValidateCreate() error
                want ValidateCreate() (warnings admission.Warnings, err error)
make: *** [Makefile:90: install] Error 2
```

* Fix expected output in doc automation tests
2023-06-27 09:34:38 +02:00
Armel Soro
bfa125e4b0 Fix potential issue in odo version nightly tests if user does not have permission to get the OpenShift version (#6933)
* Fix issues in the tests if user does not have permission to see the OpenShift platform version

This happened on the nightly jobs running on Prow,
which makes us use a developer account with some restrictions.

* Rename 'helper.JsonSatisfies' into 'helper.JsonStatisfiesAll' to make the intent clearer
2023-06-26 17:46:10 +02:00
Philippe Martin
94e32303bd Implement API endpoints (#6915)
* Pass odo context to api server

* Get /instance

* DELETE /instance implementation

* Move describe logic to pkg/component/describe

* Get /component implementation

* POST /component/command implementation

* Fix example by replacing action with name

* Fix integration test

* Integration tests

* Add comment for PushWatcher

* Test DELETE /instance without --no-watch

* Apply suggestions from code review

Co-authored-by: Armel Soro <armel@rm3l.org>

* Return an error if not ready for push

* Fix windows tests

* Fix tests for Windows

---------

Co-authored-by: Armel Soro <armel@rm3l.org>
2023-06-26 16:00:49 +02:00
Philippe Martin
535ee0a105 Set FsGroup for spring boot test (#6931) 2023-06-26 11:55:09 +02:00
dependabot[bot]
4b9c89e086 Website: Bump webpack from 5.85.0 to 5.88.0 in /docs/website (#6930)
Bumps [webpack](https://github.com/webpack/webpack) from 5.85.0 to 5.88.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.85.0...v5.88.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-26 10:23:37 +02:00
Parthvi Vala
2bafd31b6c Add podman version to odo version output (#6913)
* Show podman version in odo version; TODO: fix test and implement json

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Add integration test

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Add support for JSON

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Add documentation

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Fix missing OpenShift version

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Add warnings when unable to fetch version information

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Do not print warning when --client is used and review

Signed-off-by: Parthvi Vala <pvala@redhat.com>

---------

Signed-off-by: Parthvi Vala <pvala@redhat.com>
2023-06-24 22:46:37 +02:00
Philippe Martin
08eeb2de8c Fix service binding skip on Windows (#6929) 2023-06-24 22:07:53 +02:00
Philippe Martin
ae28de1012 Disable service binding related integration tests (#6920)
* check SKIP_SERVICE_BINDING_TESTS to skip service binding tests

* Pass SKIP_SERVICE_BINDING_TESTS to Windows for Windows tests

* Use fsGroup on Kubernetes

* add instructions to install devfile registry in cluster
2023-06-23 18:20:46 +02:00
Armel Soro
d9d868fd6b Temporarily downgrade Podman on GitHub to fix CI failures for Podman tests (#6928)
* WIP: check Podman version

* wip: try the workaround suggested in [1]

There seems to be an issue with Podman (libpod specifically) on Ubuntu 22.04,
which might affect networking.
See [1] and [2]

[1] https://github.com/actions/runner-images/issues/7753
[2] https://bugs.launchpad.net/ubuntu/+source/libpod/+bug/2024394
2023-06-23 15:37:11 +02:00
Parthvi Vala
b38d31ffdd Skip IBM Cloud tests for changes that do not affect odo behavior (#6924)
Signed-off-by: Parthvi Vala <pvala@redhat.com>
2023-06-23 09:42:46 +02:00
Armel Soro
147542db69 Do not necessarily error out if odo dev is stopped via Ctrl+C (#6917)
* Add test highlighting the expectations

* Propagate errors and call os.Exit only in 'main' functions

See ExitInMain[1] and ExitInMain_ExitOnce[2] coding convention guidelines.

[1] https://github.com/redhat-developer/odo/wiki/Dev:-Coding-Conventions#exit-in-main
[2] https://github.com/redhat-developer/odo/wiki/Dev:-Coding-Conventions#exit-once

* Handle errors returned by Cleanuper#Cleanup

This makes sure the exit code of the command
is mapped onto any error returned by Cleanup

* Do not return an error when the watch loop in 'odo dev' is interrupted

* Test that the exit code of 'odo dev' matches the error returned by the cleanup logic
2023-06-22 13:14:07 +02:00
Armel Soro
28ed064133 Do not return an error in odo analyze if current directory contains an invalid Devfile (#6905)
* Add unit test highliging the issue

* Fix 'delete' unit tests

* Pass the filesystem object where it is relevant

* Add a way for CLI commands to indicate whether of not they require a valid Devfile

For the 'analyze' command, this is not required,
so Devfile parsing will be ignored completely.

* Make the fake filesystem return an absolute current dir

Otherwise, some code will assume it is relative,
and try to prepend the current physical directory
2023-06-22 10:06:18 +02:00
Philippe Martin
a29253521c Replace odo delete component integration with unit tests (#6904) 2023-06-21 17:43:03 +02:00
Armel Soro
4bc066819d Fix GitHub labels in release changelog generator script and PR template (#6916)
* Rename 'kind/code-refactoring' label into 'area/refactoring' in changelog generator script

* Update GitHub PR template
2023-06-21 11:11:18 +02:00
Philippe Martin
50ba3868a6 Add --sync-git-dir flag to odo dev (#6910)
* Indexer does not ignore .git

* add --sync-git-dir flag to odo dev

* Integration tests

* Add doc

* Force sync of complete .git content
2023-06-20 10:26:14 -04:00
Parthvi Vala
0b012f30e5 Implement HTTP Server based on OpenAPI spec (#6835)
* Implement HTTP Server based on OpenAPI spec

Signed-off-by: Parthvi Vala <pvala@redhat.com>
Co-authored-by: Armel Soro <asoro@redhat.com>
Co-authored-by: Philippe Martin <phmartin@redhat.com>

* Starter server when odo dev starts

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Add --api-server and --api-server-port flags to start API Server; write the port to stat file; TODO: make this feature experimental

Signed-off-by: Parthvi Vala <pvala@redhat.com>
Co-authored-by: Armel Soro <asoro@redhat.com>
Co-authored-by: Philippe Martin <phmartin@redhat.com>
Signed-off-by: Parthvi Vala <pvala@redhat.com>

Make the flag experimental

Signed-off-by: Parthvi Vala <pvala@redhat.com>

Make apiserver and apiserverport flag local

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Use container image to run openapi-generator-tool instead of a local CLI

Co-authored-by: Armel Soro <asoro@redhat.com>
Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Add integration test

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Use label podman

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Regenerate the api files with openapitool v6.6.0 and changes from review

Signed-off-by: Parthvi Vala <pvala@redhat.com>
Co-authored-by: Armel Soro <asoro@redhat.com>

---------

Signed-off-by: Parthvi Vala <pvala@redhat.com>
Co-authored-by: Armel Soro <asoro@redhat.com>
Co-authored-by: Philippe Martin <phmartin@redhat.com>
2023-06-19 10:29:36 -04:00
dependabot[bot]
4f46fe92ed Website: Bump browserslist from 4.21.5 to 4.21.9 in /docs/website (#6909)
Bumps [browserslist](https://github.com/browserslist/browserslist) from 4.21.5 to 4.21.9.
- [Changelog](https://github.com/browserslist/browserslist/blob/main/CHANGELOG.md)
- [Commits](https://github.com/browserslist/browserslist/compare/4.21.5...4.21.9)

---
updated-dependencies:
- dependency-name: browserslist
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-19 05:57:07 -04:00
Parthvi Vala
a9e6cdc340 Refactor StartDevMode to return a single object instead of multiple args (#6886)
* Refactor StartDevMode to return an object instead of multiple variables

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Fix test

Signed-off-by: Parthvi Vala <pvala@redhat.com>

---------

Signed-off-by: Parthvi Vala <pvala@redhat.com>
2023-06-16 10:01:27 -04:00
Armel Soro
ee18e35fee Improve website PR preview workflow (#6907)
* Trigger website PR preview workflow only for changes in the 'docs/website' folder or in the Workflow itself

While this allowed to test 'odo deploy', it
makes more sense to avoid deploying the website uselessly if there are no changes in the website itself.
There are already integration or E2E tests testing 'odo deploy' on different projects.

* Do not require manual deployment approval if the PR comes from members of the odo team or certain robot accounts we rely on
2023-06-16 09:50:44 -04:00
Philippe Martin
cd9cc55c26 Send tests results to Sheet (#6873)
* Send tests results to Sheet

* Save tests from Windows tests + do not fail if junit file not found

* Change package name

* Remove cleanup old entries (keeping implementation)

* Add job number
2023-06-16 08:34:47 -04:00
Armel Soro
803718a655 [Dogfooding] Create website deploy previews for PRs using odo deploy (#6871)
* Add 'deploy' command in Devfile to support outer-loop case for the website

The goal is to leverage this for creating PR deploy previews
in an automated way.

* Add GitHub Workflow to create Deploy previews for PRs using 'odo deploy'

* Leverage the image-names-as-selector feature

* Add odo binary location to system path to make it easier to use it

* Do not change the Devfile name dynamically

We are using a robot account on quay.io,
which requires specific permissions per repository name,
which cannot be dynamic in this case.

Since we are scoping everything per namespace, it should be fine.
2023-06-15 09:58:00 -04:00
Philippe Martin
24db6079dd Stop test as soon as expectations are ok (#6891) 2023-06-15 03:58:00 -04:00
Armel Soro
63c8e27e2a Implement odo dev --no-commands (#6855)
* Document the '--no-commands' flag

Co-authored-by: Philippe Martin <phmartin@redhat.com>

* Add integration tests highlighting the expectations

* Add '--no-commands' flag to the 'dev' sub-command

* Implement '--no-command' on Podman

* Implement '--no-command' on cluster

* Validate the '--no-commands' flag in the CLI

For example, it should not be possible to call it alongside '--build-command' or '--run-command',
because we won't be able to know what to do.

* Fix 'odo dev' tests when the run/debug does not exist

For consistency with how e.g., the build command works,
instead of erroring out, `odo dev` will
now simply log the error message and wait for new input.

* Check for command existence when we want to run them

As suggested in review, this makes it more adaptable.
As a consequence, if the default (or single) build/run command does not exist,
"odo dev" will not error out immediately; instead, it will behave a bit like
"odo dev --no-commands" (by starting, but printing a warning about the
missing command).
The difference here is that if a run command is added later on
during the dev session, "odo dev" will pick it up and run it,
but "odo dev --no-commands" will continue to purposely ignore it.

The existence of the optional default Build is already checked
by the 'libdevfile.Build' command. It does not error out if there is
no default (or single) Build command. It errors out only if the specified
'--build-command' does not exist in the Devfile.

Co-authored-by: Philippe Martin <phmartin@redhat.com>

* Check for application ports only if the Devfile has run or debug command and if there are ports to forward

This prevents:
i) displaying the "Waiting for the application to be ready" spinner for nothing,
  if there are no ports to forward
ii) waiting until the timeout of 1m has expired if there was no run/debug command executed,
  in which case, it is less unlikely that the application ports defined in the Devfile
  will ever be reachable.

* Test "odo run" command against a Dev Session started with and without "--no-commands"

---------

Co-authored-by: Philippe Martin <phmartin@redhat.com>
2023-06-14 09:28:06 -04:00
dependabot[bot]
218fd27f96 Website: Bump @docusaurus/* from 2.4.0 to 2.4.1 in /docs/website (#6877)
* Website: Bump @docusaurus/core from 2.4.0 to 2.4.1 in /docs/website

Bumps [@docusaurus/core](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus) from 2.4.0 to 2.4.1.
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v2.4.1/packages/docusaurus)

---
updated-dependencies:
- dependency-name: "@docusaurus/core"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

* Bump @docusaurus/* dependencies to 2.4.1

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Armel Soro <asoro@redhat.com>
2023-06-13 15:42:37 -04:00
Philippe Martin
aabbded7e1 Unit tests/inject test clientset (#6874)
* Inject testClientset

* Test analyze CLI as unit test

* Replace odo analyze integration tests with unit tests
2023-06-13 13:16:31 -04:00
Armel Soro
57da760b88 Build nightly binaries of odo and make them available (via IBM Cloud Object Storage) (#6875)
* Build nightly versions of odo and upload them to IBM Cloud Object Storage

* Document where the nightly builds can be downloaded and installed

* Allow to trigger the nightly build workflow manually if needed

* Add a '-nightly' suffix to the commit id included at build time

This will help users running 'odo' know
that they are running a nightly build, e.g.:

```
$ ./odo version
odo v3.11.0 (077397dbd-nightly)
```

* Use an arbitrary cron schedule in the night to avoid peak executions at midnight

Co-authored-by: Philippe Martin <contact@elol.fr>

---------

Co-authored-by: Philippe Martin <contact@elol.fr>
2023-06-13 10:04:49 -04:00
Philippe Martin
6bc30110ba Display outputs when executing odo run (#6865)
* Change NewRunHandler params with Options

* Pass an options to RunHandler to show logs

* Hide spinner and std output since outputs are displayed

* Integration tests with failing command

* Fix outputs

* use raw terminal and local standard i/o streams

* Fix podman i/o

* Fix stdout/err

* Test if in/out are terminal

* command reference doc
2023-06-12 10:45:31 -04:00
ritudes
d892e8e54f Mark issues and pull requests as stale (#6872)
* Mark issues and pull requests as stale

Signed-off-by: Ritu Deshmukh <rideshmu@redhat.com>

* Update .github/workflows/stale.yaml

Co-authored-by: Armel Soro <armel@rm3l.org>

* Update .github/workflows/stale.yaml

Co-authored-by: Armel Soro <armel@rm3l.org>

* Update .github/workflows/stale.yaml

Co-authored-by: Armel Soro <armel@rm3l.org>

* Update .github/workflows/stale.yaml

Co-authored-by: Armel Soro <armel@rm3l.org>

* Update .github/workflows/stale.yaml

Co-authored-by: Armel Soro <armel@rm3l.org>

* Update .github/workflows/stale.yaml

Co-authored-by: Armel Soro <armel@rm3l.org>

* Update .github/workflows/stale.yaml

Co-authored-by: Armel Soro <armel@rm3l.org>

---------

Signed-off-by: Ritu Deshmukh <rideshmu@redhat.com>
Co-authored-by: Armel Soro <armel@rm3l.org>
2023-06-09 11:51:39 -04:00
Philippe Martin
029c5387d5 Skip tests if all changes in docs (#6870)
* Skip tests if all changes in website (and .ibm for testing this PR)

* Use Merge  base

* Add rule for podman-test on GH Actions
2023-06-06 07:32:52 -04:00
dependabot[bot]
a8301793a7 Website: Bump webpack from 5.81.0 to 5.85.0 in /docs/website (#6868)
Bumps [webpack](https://github.com/webpack/webpack) from 5.81.0 to 5.85.0.
- [Release notes](https://github.com/webpack/webpack/releases)
- [Commits](https://github.com/webpack/webpack/compare/v5.81.0...v5.85.0)

---
updated-dependencies:
- dependency-name: webpack
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-06-05 10:59:29 -04:00
Philippe Martin
330b724753 Add an odo run command to manually execute command during odo dev (#6857)
* Add a run command

* Check command name passed as arg

* Check platform is available

* Add a Run method to the DevClient

* Run command on cluster

* Add test with run command on cluster

* Implement and test run on podman

* Enhance test to check that command has been executed in container

* Fix `odo help` test

* Refactor common code for podman/cluster

* Test Apply commands on Kubernetes/Images

* Test  a msg is displayed when executing odo run without odo dev

* Review

* makes GetRunningPodFromSelector return only Running pods on Podman
2023-06-02 09:33:21 -04:00
Armel Soro
b6c9c88245 Make sure the "Syncing files into the container" spinner is displayed on Podman (#6863)
* Check that the "Syncing files into the container" spinner is correctly displayed on both Podman and cluster

* Add missing "Syncing files into the container" spinner when running 'odo dev' on Podman

This indicates to the user that we are sync'ing the files,
which might be a potentially long operation.
This is to be consistent with the output when using 'odo dev' on cluster.
2023-06-02 05:13:13 -04:00
dependabot[bot]
08e8b5d9f5 Go: Bump github.com/segmentio/backo-go (#6851)
Bumps [github.com/segmentio/backo-go](https://github.com/segmentio/backo-go) from 1.0.1-0.20200129164019-23eae7c10bd3 to 1.0.1.
- [Release notes](https://github.com/segmentio/backo-go/releases)
- [Commits](https://github.com/segmentio/backo-go/commits/v1.0.1)

---
updated-dependencies:
- dependency-name: github.com/segmentio/backo-go
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-31 10:00:15 -04:00
github-actions[bot]
2e9a29ab14 Release PR for v3.11.0 (#6853)
* Set version in build/VERSION file

* Bump version in installation docs

* Add release blog post

* Update

* Apply suggestions from code review

Co-authored-by: Armel Soro <asoro@redhat.com>

---------

Co-authored-by: feloy <feloy@users.noreply.github.com>
Co-authored-by: Philippe Martin <phmartin@redhat.com>
Co-authored-by: Armel Soro <asoro@redhat.com>
2023-05-31 06:20:39 -04:00
Philippe Martin
b481d4c410 Bump version 3.11.0 (#6852)
* Bump to version 3.11.0

* Update docs with v3.11.0
v3.11.0
2023-05-30 07:26:48 -04:00
Parthvi Vala
5239a1add8 Document how to fix file permission errors while using odo with GKE/AKS/EKS (#6840)
* Document how to fix storage permission issues with GKE/AKS/EKS

* Temp Change

* First draft

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Apply suggestions from code review

Co-authored-by: Armel Soro <armel@rm3l.org>

* Remove sourceMapping documentation

Signed-off-by: Parthvi Vala <pvala@redhat.com>

* Other code review changes

Signed-off-by: Parthvi Vala <pvala@redhat.com>

---------

Signed-off-by: Parthvi Vala <pvala@redhat.com>
Co-authored-by: Armel Soro <armel@rm3l.org>
2023-05-30 05:37:13 -04:00
Armel Soro
a79c953e7a Track preference options usage (#6843)
* Add integration test highlighting the expectations

* Record parameter (and value) set or unset using the 'odo preference set/unset' commands

By default, values are anonymized.
Only parameters explicitly declared list will be recorded verbatim.
This list is currently empty, but that might change later on.

* Mark all current preference parameters except ImageRegistry as clear-text

Co-authored-by: Philippe Martin <phmartin@redhat.com>

---------

Co-authored-by: Philippe Martin <phmartin@redhat.com>
2023-05-30 05:02:02 -04:00
dependabot[bot]
78c9bedbf9 Website: Bump @algolia/client-search in /docs/website (#6850)
Bumps [@algolia/client-search](https://github.com/algolia/algoliasearch-client-javascript) from 4.17.0 to 4.17.1.
- [Release notes](https://github.com/algolia/algoliasearch-client-javascript/releases)
- [Changelog](https://github.com/algolia/algoliasearch-client-javascript/blob/master/CHANGELOG.md)
- [Commits](https://github.com/algolia/algoliasearch-client-javascript/compare/4.17.0...4.17.1)

---
updated-dependencies:
- dependency-name: "@algolia/client-search"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-05-30 03:46:42 -04:00