-
-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for managed pulling from private ECRs (#394)
This PR adds the possibility to set additional references to ECRs as sources in the configuration file. This change allows to take advantage of the logic already in place to rotate ECR tokens and authenticate to private registries, but for pulling images from private ECRs in a context of multi ECR replication. The same AWS credentials as for the target ECR are used. #### Main changes: - Updated the configuration to add the field `privateRegistries` in `source` - Added a new attribute to the `imagePullSecretProviders` containing the registries' clients - Added a function to produce a `dockerconfig` in a JSON format from a registry client to merge with the authfile passed to Skopeo - Updated `GetImagePullSecrets` to include dockerconfigs from private registries to the image pull secrets from pods #### Notes: - `imagePullSecrets` from hooked Pods still have priority over the authentication via these default private registries - Changes do not impact the Helm chart and are compatible with previous version - Source private registries cannot authenticate with different credentials from the ones used by the target registry passed as environment variables
- Loading branch information
Showing
16 changed files
with
403 additions
and
136 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.