-
Notifications
You must be signed in to change notification settings - Fork 903
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(kubernetes): Fix merge strategy field (#7455)
* fix(kubernetes): Properly dirty patch stage on resource update We're not currently not marking the stage dirty upon chaning the resource to be selected, which makes it impossible to save (without making some other change or waiting for a digest cycle to happen for another reason). * fix(kubernetes): Fix manifest source defaulting in patch manifest When creating a new patch manifest stage, we default the 'Manifest Source' selector to 'Text' but the 'Manifest' text box is not visible; the user needs to choose 'Artifact' then 'Text' again to make the text box visible. * fix(kubernetes): Fix merge strategy field We've been incorrectly setting the merge strategy on options.strategy instead of options.mergeStrategy since 1.15. Start writing to the correct field, and handle updating any stages affected by the bug by deleting the value of 'strategy' and copying it over to mergeStrategy. * fix(kubernetes): Fix defaulting of strategy field The prior commit was incorrect; delete does not return the deleted value. * fix(kubernetes): Fix display of strategy field
- Loading branch information
Showing
2 changed files
with
34 additions
and
35 deletions.
There are no files selected for viewing
58 changes: 27 additions & 31 deletions
58
...pts/modules/kubernetes/src/v2/pipelines/stages/patchManifest/PatchManifestStageConfig.tsx
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