mirror of
https://github.com/fluxcd/flux2.git
synced 2026-04-27 13:48:50 +00:00
Fix flux push artifact for insecure registries
Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
parent
1af7e08f07
commit
600ec37524
3 changed files with 10 additions and 4 deletions
|
|
@ -250,7 +250,13 @@ func pushArtifactCmdRun(cmd *cobra.Command, args []string) error {
|
|||
return err
|
||||
}
|
||||
}
|
||||
transportOpts, err := oci.WithRetryTransport(ctx, ref, authenticator, backoff, []string{ref.Context().Scope(transport.PushScope)})
|
||||
transportOpts, err := oci.WithRetryTransport(ctx,
|
||||
ref,
|
||||
authenticator,
|
||||
backoff,
|
||||
[]string{ref.Context().Scope(transport.PushScope)},
|
||||
pushArtifactArgs.insecure,
|
||||
)
|
||||
if err != nil {
|
||||
return fmt.Errorf("error setting up transport: %w", err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue