1
0
mirror of synced 2026-03-02 03:26:57 +00:00

Fix flux push artifact for insecure registries

Signed-off-by: Stefan Prodan <stefan.prodan@gmail.com>
(cherry picked from commit 600ec37524)
This commit is contained in:
Stefan Prodan
2025-07-10 12:38:53 +03:00
committed by github-actions[bot]
parent 6bf37f6a56
commit f210b2fa29
3 changed files with 10 additions and 4 deletions

View File

@@ -261,7 +261,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)
}