-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(kubernetes-plugin): sanitize volumes configuration for helm and k…
…ubernetes type pod runners (#6251) * fix(kubernetes-plugin): sanitize volumes configuration for helm and kubernetes type pod runners * chore: add tests and adjust docs * chore: remove unused import * chore: fix test * style: empty lines and spacing * style: convert plain comment to JSDoc * fix: recognize octal numbers in YAML < 1.2 * chore: remove unnecessary return value * refactor: unwrap nested if-blocks Use immediate returns to avoid arrow-style code. * refactor: weaken args nullability of the function * refactor: move pod volume sanitizer to `prepareRunPodSpec` To call it only in one place, for all action types. * chore: remove unnecessary arg * chore(test): deep-clone of helm target to prevent shared data pollution * fix: sanitize containers defined in pod spec * docs: add warning about retained volume types to helm-pod and kubernetes-pod run --------- Co-authored-by: Vladimir Vagaytsev <[email protected]>
- Loading branch information
1 parent
6f4b120
commit 0a12df4
Showing
15 changed files
with
261 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.