-
Notifications
You must be signed in to change notification settings - Fork 79
Log in to AWS ECR automatically using the cluster-provided credentials. #147
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
Closed
Closed
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
fd5a039
Log in to AWS ECR automatically using the cluster-provided credentials.
MartinEmrich b7e90af
Merge branch 'main' of https://github.com/fluxcd/image-reflector-cont…
MartinEmrich 133d1e3
Merge branch 'main' into main
MartinEmrich a56624b
Enable AWS ECR login with flag instead of env variable
MartinEmrich dd9fbbf
removed (as of now) unused return values
MartinEmrich 22f2317
Bump API version to v0.11.0
squaremo 4b48cf1
Write changelog entry for v0.11.0
squaremo 5c94f3d
Bump controller version used in config
squaremo 4542bd0
Merge pull request #155 from fluxcd/release-v0.11.0
squaremo 5da1152
Correct apiVersion of v1beta1 samples
squaremo c22a8d0
Merge pull request #158 from fluxcd/samples-to-v1beta1
squaremo a6e1be8
Log in to AWS ECR automatically using the cluster-provided credentials.
MartinEmrich 801d106
Enable AWS ECR login with flag instead of env variable
MartinEmrich 782d111
removed (as of now) unused return values
MartinEmrich 4a461c1
Merge branch 'main' of github.com:MartinEmrich/image-reflector-contro…
MartinEmrich File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -69,6 +69,7 @@ func main() { | |
| storagePath string | ||
| storageValueLogFileSize int64 | ||
| concurrent int | ||
| useAwsEcr bool | ||
| ) | ||
|
|
||
| flag.StringVar(&metricsAddr, "metrics-addr", ":8080", "The address the metric endpoint binds to.") | ||
|
|
@@ -79,6 +80,8 @@ func main() { | |
| flag.StringVar(&storagePath, "storage-path", "/data", "Where to store the persistent database of image metadata") | ||
| flag.Int64Var(&storageValueLogFileSize, "storage-value-log-file-size", 1<<28, "Set the database's memory mapped value log file size in bytes. Effective memory usage is about two times this size.") | ||
| flag.IntVar(&concurrent, "concurrent", 4, "The number of concurrent resource reconciles.") | ||
| flag.BoolVar(&useAwsEcr, "use-aws-ecr", false, "Log in to AWS Elastic Container Registry with IAM") | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Wondering if a flag like |
||
|
|
||
| clientOptions.BindFlags(flag.CommandLine) | ||
| logOptions.BindFlags(flag.CommandLine) | ||
| leaderElectionOptions.BindFlags(flag.CommandLine) | ||
|
|
@@ -144,6 +147,7 @@ func main() { | |
| ExternalEventRecorder: eventRecorder, | ||
| MetricsRecorder: metricsRecorder, | ||
| Database: db, | ||
| UseAwsEcr: useAwsEcr, | ||
| }).SetupWithManager(mgr, controllers.ImageRepositoryReconcilerOptions{ | ||
| MaxConcurrentReconciles: concurrent, | ||
| }); err != nil { | ||
|
|
||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if implementation details from another layer (set
USE_ECR) should be mentioned here, it may be better (and less maintenance heavy) to simply refer to the feature.