Skip to content
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

Support dev.odo.push.path:* attributes on Podman #6576

Conversation

rm3l
Copy link
Member

@rm3l rm3l commented Feb 7, 2023

Co-authored-by: @valaparthvi

What type of PR is this:
/kind feature
/area odo-on-podman

What does this PR do / why we need it:
This adds support for command-level attributes prefixed with dev.odo.push.path: on Podman. See #6492 and the doc for more context.

While working on this issue, we also found out that odo was always picking the attributes of the run command, regardless of whether users were running in Debug or not. This PR also fixes that behavior, by making sure we pick the right command attributes.

Which issue(s) this PR fixes:
Fixes #6492

PR acceptance criteria:

How to test changes / Special notes to the reviewer:
See https://deploy-preview-6576--odo-docusaurus-preview.netlify.app/docs/user-guides/advanced/pushing-specific-files. This should now work on Podman.

@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. Required by Prow. label Feb 7, 2023
@openshift-ci
Copy link

openshift-ci bot commented Feb 7, 2023

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@netlify
Copy link

netlify bot commented Feb 7, 2023

Deploy Preview for odo-docusaurus-preview canceled.

Name Link
🔨 Latest commit d1a7381
🔍 Latest deploy log https://app.netlify.com/sites/odo-docusaurus-preview/deploys/63e35779dc981700084c6ff5

@odo-robot
Copy link

odo-robot bot commented Feb 7, 2023

OpenShift Unauthenticated Tests on commit 853ed43 finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Feb 7, 2023

NoCluster Tests on commit 853ed43 finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Feb 7, 2023

Unit Tests on commit 853ed43 finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Feb 7, 2023

Validate Tests on commit 853ed43 finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Feb 7, 2023

Kubernetes Tests on commit 853ed43 finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Feb 7, 2023

Windows Tests (OCP) on commit 853ed43 finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Feb 7, 2023

OpenShift Tests on commit 853ed43 finished successfully.
View logs: TXT HTML

@odo-robot
Copy link

odo-robot bot commented Feb 7, 2023

Kubernetes Docs Tests on commit 162a193 finished successfully.
View logs: TXT HTML

rm3l and others added 5 commits February 7, 2023 15:05
…xed with 'dev.odo.push.path'

We were looking into the run command attributes only,
while all this could also apply to the debug command too.

Co-authored-by: Parthvi Vala <[email protected]>
This way, it can be reused in all platform-specific implementations.

Co-authored-by: Parthvi Vala <[email protected]>
Co-authored-by: Parthvi Vala <[email protected]>
@rm3l rm3l force-pushed the 6492-support-dev.odo.push.path-attribute-on-podman branch from d46c9a2 to a16059d Compare February 7, 2023 14:08
@rm3l rm3l added kind/feature Categorizes issue as a feature request. For PRs, that means that the PR is the implementation area/odo-on-podman Issues or PRs related to running odo against Podman labels Feb 7, 2023
@rm3l rm3l changed the title [WIP] Support dev.odo.push.path attribute on Podman Support dev.odo.push.path:* attributes on Podman Feb 7, 2023
@rm3l rm3l marked this pull request as ready for review February 7, 2023 14:10
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. Required by Prow. label Feb 7, 2023
@openshift-ci openshift-ci bot requested review from anandrkskd and feloy February 7, 2023 14:11
@rm3l rm3l requested review from valaparthvi and removed request for feloy February 7, 2023 14:11
Copy link
Contributor

@valaparthvi valaparthvi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small change, else looks good.

Comment on lines 272 to 275
cmdName := parameters.DevfileRunCmd
if parameters.Debug {
cmdKind = devfilev1.DebugCommandGroupKind
cmdName = parameters.DevfileDebugCmd
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we move cmdName along with cmdKind as well for a better readability?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done in d1a7381 (#6576)

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 8, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@rm3l rm3l requested a review from valaparthvi February 8, 2023 08:05
@valaparthvi
Copy link
Contributor

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. Required by Prow. label Feb 8, 2023
@openshift-merge-robot openshift-merge-robot merged commit 9714967 into redhat-developer:main Feb 8, 2023
@rm3l rm3l deleted the 6492-support-dev.odo.push.path-attribute-on-podman branch February 8, 2023 10:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/odo-on-podman Issues or PRs related to running odo against Podman kind/feature Categorizes issue as a feature request. For PRs, that means that the PR is the implementation lgtm Indicates that a PR is ready to be merged. Required by Prow.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support dev.odo.push.path attribute on Podman
3 participants