-
Notifications
You must be signed in to change notification settings - Fork 59
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
feat: Add workDir API to the script and command operation APIs to make parametrize the working directory #1913
Conversation
…metrize the working directory Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com>
@sergenyalcin did you see my reply on slack https://kubernetes.slack.com/archives/C067LUFL43U/p1725360878442449 ? |
@sergenyalcin I'm going to merge this and do follow ups. Thanks for initiating the changes! |
/cherry-pick release-0.2 |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1913 +/- ##
==========================================
- Coverage 70.01% 69.96% -0.06%
==========================================
Files 134 134
Lines 5489 5493 +4
==========================================
Hits 3843 3843
- Misses 1332 1334 +2
- Partials 314 316 +2 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
…e parametrize the working directory (#1913) * Add workDir API to the script and command operation APIs to make parametrize the working directory Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com> * update codegen Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> --------- Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
…e parametrize the working directory (#1913) (#1919) * Add workDir API to the script and command operation APIs to make parametrize the working directory * update codegen --------- Signed-off-by: Sergen Yalçın <yalcinsergen97@gmail.com> Signed-off-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com> Co-authored-by: Sergen Yalçın <44261342+sergenyalcin@users.noreply.github.com> Co-authored-by: Charles-Edouard Brétéché <charles.edouard@nirmata.com>
Explanation
The working directory for the script and command operations is hard-coded for the test directory. For some scripts it can affect the logic of some commands like cp. This is directly affects the end users of uptest after kuttl to chainsaw migration.
This PR adds
workDir
API to the script and command operation APIs to make parametrize the working directory.Related issue
Fixes #1912
Proposed Changes
Checklist
Further Comments