generated from hashicorp/terraform-provider-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stealing most of this from #434 but cleaned up the reflection code. Handle experiment tag and pointers in reflect See chainguard-dev/apko#1453 Since GID is optional and 0 is a valid value, we needed a way to distinguish between unset and 0, so GID became a pointer. This broke the reflect code (labeled HACK) that punted on pointers. I've updated that code to handle pointers but also to ignore any fields marked with `apko:"experimental"` because I don't want to pollute the schema with them. --------- Signed-off-by: Josh Dolitsky <[email protected]> Signed-off-by: Jon Johnson <[email protected]> Co-authored-by: Josh Dolitsky <[email protected]>
- Loading branch information
1 parent
28f6a4f
commit 914572b
Showing
4 changed files
with
230 additions
and
164 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
Oops, something went wrong.