mirror of
https://github.com/fluxcd/flux2.git
synced 2026-05-06 18:14:43 +00:00
Upgrade fluxcd/pkg packages
Signed-off-by: Matheus Pimenta <matheuscscp@gmail.com>
This commit is contained in:
parent
ad9d63ac52
commit
0951061b5e
10 changed files with 103 additions and 116 deletions
|
|
@ -83,6 +83,15 @@ func listArtifactsCmdRun(cmd *cobra.Command, args []string) error {
|
|||
|
||||
ociOpts := oci.DefaultOptions()
|
||||
|
||||
if listArtifactArgs.provider.String() != sourcev1.GenericOCIProvider {
|
||||
logger.Actionf("logging in to registry with provider credentials")
|
||||
ociOpt, err := loginWithProvider(ctx, url, listArtifactArgs.provider.String())
|
||||
if err != nil {
|
||||
return fmt.Errorf("error during login with provider: %w", err)
|
||||
}
|
||||
ociOpts = append(ociOpts, ociOpt)
|
||||
}
|
||||
|
||||
if listArtifactArgs.insecure {
|
||||
ociOpts = append(ociOpts, crane.Insecure)
|
||||
}
|
||||
|
|
@ -96,13 +105,6 @@ func listArtifactsCmdRun(cmd *cobra.Command, args []string) error {
|
|||
}
|
||||
}
|
||||
|
||||
if listArtifactArgs.provider.String() != sourcev1.GenericOCIProvider {
|
||||
logger.Actionf("logging in to registry with provider credentials")
|
||||
if err := ociClient.LoginWithProvider(ctx, url, listArtifactArgs.provider.String()); err != nil {
|
||||
return fmt.Errorf("error during login with provider: %w", err)
|
||||
}
|
||||
}
|
||||
|
||||
opts := oci.ListOptions{
|
||||
RegexFilter: listArtifactArgs.regexFilter,
|
||||
SemverFilter: listArtifactArgs.semverFilter,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue