1
0
mirror of synced 2026-02-06 10:55:56 +00:00

Fix flux push artifact for insecure registries

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
This commit is contained in:
Stefan Prodan
2025-07-10 12:38:53 +03:00
parent 1af7e08f07
commit 600ec37524
3 changed files with 10 additions and 4 deletions

View File

@@ -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)
}