-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(k8s): add service account and irsa support for in-cluster-builder (
#3384) * feat(k8s): add service account and irsa support for in-cluster-builder This commit introduces a new service account, and makes the annotations configurable in kaniko and buildkit in-cluster-builders. This change enables the use of IRSA for in-cluter-building which makes it more secure. Fixes #2931 * docs(irsa): add docs for using in-cluster-building with IRSA I decided to replace the existing docs, because the existing approach doesn't provide defense-in-depth. Even in dev clusters, the access to the Docker registries should be restricted to as few places as possible, to make it harder for attackers to push bad images. * chore: fix test * Update core/src/plugins/kubernetes/container/build/common.ts * chore: resolve conflicts on rebase * chore: resolve more conflicts on rebase * revert in-cluster-building.md * docs: add irsa separately * chore: add gcr credential helper to builder and util images * chore: fix serviceAccount for kaniko and support using different kaniko namespace * chore: fix configschema * chore: update reference docs * chore: fix typo in kubernetes config.ts * chore: remove var used for debugging * chore: fix test-framework * chore: add namespace to serviceAccount manifest * chore: add integ tests * chore: remove namespace from util manifest since it is always in project namepsace * chore: use kaniko and buildkit envs for integ tests * chore: add docs for google workload identity * chore: move tests to their own suite * chore: fix docs * chore: remove unused kube api in test * chore: add assertions and use isEqual * Update core/test/integ/src/plugins/kubernetes/container/build/build.ts Co-authored-by: Steffen Neubauer <[email protected]> * chore: use constant * chore: compare resources in test for better output --------- Co-authored-by: Anna Mager <[email protected]> Co-authored-by: Anna Mager <[email protected]>
- Loading branch information
1 parent
8260ab7
commit 9f6b137
Showing
20 changed files
with
694 additions
and
30 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
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.