-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle unknowns in Helm Release (#2822)
### Proposed changes This PR improves support for preview mode in the Helm Release, specifically the handling of unknown inputs. The specific improvements are: 1. Ensure that the Helm provider handles the RPC requests (Check, Diff, Create, Update, and Read); previously, when unknowns were present, the kube provider itself handled some requests (with undefined behavior, see #2679). 2. When decoding the inputs into an internal `Release` struct for further processing, render the unknown values as `null`. Previously, `decodeRelease` would panic. 3. When encoding the `Release` back to a property map, recover the unknownness of the properties. 4. In `Check`, perform the roundtrip of inputs-to-Release-to-outputs in all cases. This has the effect of stabilizing the checked inputs. 5. In `Diff`, detect the edge case of a property becoming a computed value. 6. In preview mode, emit unknown values for the output-only properties `status` and `resourceNames`. Note: the handling of unknowns works best with `allowNullValues: true`. ### Related issues (optional) Closes #2660 Closes #2679 ```
- Loading branch information
1 parent
b337259
commit aea60a1
Showing
15 changed files
with
670 additions
and
47 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
Oops, something went wrong.