diff --git a/source/Calamari.ConsolidateCalamariPackages/Calamari.ConsolidateCalamariPackages.csproj b/source/Calamari.ConsolidateCalamariPackages/Calamari.ConsolidateCalamariPackages.csproj index ee3cc2d8a8..11096e249b 100644 --- a/source/Calamari.ConsolidateCalamariPackages/Calamari.ConsolidateCalamariPackages.csproj +++ b/source/Calamari.ConsolidateCalamariPackages/Calamari.ConsolidateCalamariPackages.csproj @@ -19,6 +19,9 @@ + + NU1902 + diff --git a/source/Calamari.Tests/ArgoCD/Helm/HelmValuesImageReplaceStepVariablesTests.cs b/source/Calamari.Tests/ArgoCD/Helm/HelmValuesImageReplaceStepVariablesTests.cs index 515481c62f..51fd166ecf 100644 --- a/source/Calamari.Tests/ArgoCD/Helm/HelmValuesImageReplaceStepVariablesTests.cs +++ b/source/Calamari.Tests/ArgoCD/Helm/HelmValuesImageReplaceStepVariablesTests.cs @@ -52,7 +52,10 @@ public void UnstructuredValue_AlreadyAtTarget_TracksWithFriendlyName() using var scope = new AssertionScope(); result.UpdatedImageReferences.Should().BeEmpty(); +<<<<<<< HEAD result.AlreadyUpToDateImages.Should().BeEquivalentTo(["nginx:1.27.1"]); +======= +>>>>>>> release/2026.1 } [Test] @@ -92,7 +95,10 @@ public void StructuredValue_AlreadyAtTarget_TracksWithFriendlyName() using var scope = new AssertionScope(); result.UpdatedImageReferences.Should().BeEmpty(); +<<<<<<< HEAD result.AlreadyUpToDateImages.Should().BeEquivalentTo(["nginx:1.27.1"]); +======= +>>>>>>> release/2026.1 } [Test] @@ -136,7 +142,10 @@ public void NoHelmReference_SkipsImage() using var scope = new AssertionScope(); result.UpdatedImageReferences.Should().BeEmpty(); +<<<<<<< HEAD result.AlreadyUpToDateImages.Should().BeEmpty(); +======= +>>>>>>> release/2026.1 } [Test] diff --git a/source/Calamari/ArgoCD/ArgoCDModule.cs b/source/Calamari/ArgoCD/ArgoCDModule.cs index 9ebab224e0..eeeb813b32 100644 --- a/source/Calamari/ArgoCD/ArgoCDModule.cs +++ b/source/Calamari/ArgoCD/ArgoCDModule.cs @@ -1,15 +1,35 @@ using Autofac; using Calamari.ArgoCD.Conventions; using Calamari.ArgoCD.Git; +<<<<<<< HEAD using Calamari.ArgoCD.Git.PullRequests; using Calamari.ArgoCD.Git.PullRequests.Vendors.GitLab; using Microsoft.Extensions.Caching.Memory; using Microsoft.Extensions.Options; +======= +using Calamari.ArgoCD.Git.GitVendorApiAdapters; +using Calamari.ArgoCD.GitHub; +using LibGit2Sharp; +>>>>>>> release/2026.1 namespace Calamari.ArgoCD { public class ArgoCDModule : Module { + static ArgoCDModule() + { + // Note this cannot be set in the RepositoryFactory as it causes tests to fail, due to the following issue. + + // LibGit2Sharp custom sub-transports are registered by calling a static registration + // method on GlobalSettings. Additionally, if you try and register a multiple transports + // with the same scheme, it throws an exception. It's not ideal, but it's what we've got + // to work with. + // + // Using the type constructor to make sure that these methods are only called once. + GlobalSettings.RegisterSmartSubtransport("http"); + GlobalSettings.RegisterSmartSubtransport("https"); + } + protected override void Load(ContainerBuilder builder) { builder.RegisterType().AsSelf().InstancePerLifetimeScope(); @@ -47,6 +67,10 @@ void RegisterMemoryCache(ContainerBuilder builder) .InstancePerLifetimeScope(); builder.RegisterType().As().InstancePerLifetimeScope(); } + } } +<<<<<<< HEAD } +======= +>>>>>>> release/2026.1 diff --git a/source/Calamari/ArgoCD/HelmValuesImageReplaceStepVariables.cs b/source/Calamari/ArgoCD/HelmValuesImageReplaceStepVariables.cs index fe976df1ee..2f96d4a8a4 100644 --- a/source/Calamari/ArgoCD/HelmValuesImageReplaceStepVariables.cs +++ b/source/Calamari/ArgoCD/HelmValuesImageReplaceStepVariables.cs @@ -40,11 +40,15 @@ public ImageReplacementResult UpdateImages(IReadOnlyCollection>>>>>> release/2026.1 { updatedYaml = HelmValuesEditor.UpdateNodeValue(updatedYaml, helmReference, newImageTag.ContainerReference.Tag); imagesUpdated.Add(newImageTag.ContainerReference.FriendlyName()); diff --git a/source/Calamari/Calamari.csproj b/source/Calamari/Calamari.csproj index 04a73e5c8c..408117a65d 100644 --- a/source/Calamari/Calamari.csproj +++ b/source/Calamari/Calamari.csproj @@ -46,6 +46,7 @@ NU1902 +