Skip to content

Implement --platform parameter#33

Open
newtondev wants to merge 8 commits into
google:mainfrom
newtondev:feat/add-flag-for-platform
Open

Implement --platform parameter#33
newtondev wants to merge 8 commits into
google:mainfrom
newtondev:feat/add-flag-for-platform

Conversation

@newtondev
Copy link
Copy Markdown

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
Copy Markdown
Contributor

halvards commented Oct 2, 2024

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

@newtondev
Copy link
Copy Markdown
Author

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

Comment thread cmd/webhook/webhook.go
}

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
Copy Markdown

@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