Skip to content

Conversation

@SasSwart
Copy link

@SasSwart SasSwart commented Oct 18, 2024

Description

This PR adds support for build secrets to kaniko. Because the --secret flag is not available to docker run, it sources them from environment variables prefixed with KANIKO_BUILD_SECRET.

These build secrets are also accessible in the kaniko options struct. A PR is inbound to provide them and make this feature available from envbuilder.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes unit tests
  • Adds integration tests if needed.

See the contribution guide for more details.

Reviewer Notes

  • The code flow looks good.
  • Unit tests and or integration tests added.

Release Notes

Describe any changes here so maintainer can include it in the release notes, or delete this block.

Examples of user facing changes:
- kaniko adds a new flag `--registry-repo` to override registry

@SasSwart SasSwart marked this pull request as ready for review October 23, 2024 09:52
@SasSwart SasSwart requested a review from mafredri October 23, 2024 09:52
Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congrats on diving into Kaniko and nice work implementing this!

Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few remaining suggestions and I think testing could be improved a bit but otherwise it's looking good.

Copy link
Member

@mafredri mafredri left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, a few minor things still, but once those are fixed this is ready to go!

Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! I don't have anything that Mathias hasn't already pointed out.

@SasSwart SasSwart merged commit 350cbb8 into main Oct 28, 2024
9 checks passed
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