Skip to content

Implement --platform parameter #33

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

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

Conversation

newtondev
Copy link

You can limit the resolve of image tags to only a specific platform by specifying the --platform command-line flag with the target platform e.g. linux/amd64.

Fixes #3

@halvards halvards assigned halvards and newtondev and unassigned halvards Oct 2, 2024
@halvards
Copy link
Contributor

halvards commented Oct 2, 2024

Thanks for your contribution @newtondev! I've left some comments above.

@newtondev
Copy link
Author

@halvards I have closed the other PR in favour of this one which has all the version bumps inlcluded. thanks

@@ -165,7 +167,7 @@ func run(ctx context.Context) error {
return nil
}

func setupControllers(mgr manager.Manager, log logr.Logger, dryRun bool, ignoreErrors bool, certSetupFinished chan struct{}, skipPrefixes []string) {
func setupControllers(mgr manager.Manager, log logr.Logger, dryRun bool, ignoreErrors bool, certSetupFinished chan struct{}, skipPrefixes []string, platform string) {
Copy link

@vahan-sahakyan-op vahan-sahakyan-op Mar 1, 2025

Choose a reason for hiding this comment

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

do you guys follow no-wrapping-args coding style for go at Google?

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.

Add flag to resolve platform-specific images
3 participants