Skip to content
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

Bump apko, handle pointers #436

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jonjohnsonjr
Copy link
Contributor

Stealing most of this from #434 but cleaned up the reflection code.

Handle experiment tag and pointers in reflect

See https://github.com/chainguard-dev/apko/pull/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.

jdolitsky and others added 3 commits December 20, 2024 13:47
Signed-off-by: Josh Dolitsky <[email protected]>
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: Jon Johnson <[email protected]>
@jonjohnsonjr jonjohnsonjr mentioned this pull request Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants