-
Notifications
You must be signed in to change notification settings - Fork 244
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
Support dev.odo.push.path:*
attributes on Podman
#6576
Conversation
Skipping CI for Draft Pull Request. |
✅ Deploy Preview for odo-docusaurus-preview canceled.
|
…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]>
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]>
Co-authored-by: Parthvi Vala <[email protected]>
d46c9a2
to
a16059d
Compare
dev.odo.push.path:*
attributes on Podman
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.
One small change, else looks good.
cmdName := parameters.DevfileRunCmd | ||
if parameters.Debug { | ||
cmdKind = devfilev1.DebugCommandGroupKind | ||
cmdName = parameters.DevfileDebugCmd | ||
} |
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 move cmdName
along with cmdKind
as well for a better readability?
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.
Done in d1a7381
(#6576)
Kudos, SonarCloud Quality Gate passed!
|
/lgtm |
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 therun
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:
Unit test
Integration test
Documentation
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.