From b7cca56ec7f5bd9a624c5cc971e5f8fd4c1cadca Mon Sep 17 00:00:00 2001 From: Deepak Bhatt Date: Sat, 30 Nov 2024 05:49:46 +0000 Subject: [PATCH] fix: [CDE-502]:do not add nexus connector (#3082) * do not add nexus connector * Merge branch 'main' of https://git0.harness.io/l7B_kbSEQD2wjrM7PShm5w/PROD/Harness_Commons/gitness into nexus-support * do not add nexus connector * address feedback * add nexus connector support --- types/platform_connector.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/types/platform_connector.go b/types/platform_connector.go index 3061688a8..051e5158e 100644 --- a/types/platform_connector.go +++ b/types/platform_connector.go @@ -18,7 +18,6 @@ const ( UnknownPlatformConnectorType PlatformConnectorType = "Unknown" ArtifactoryPlatformConnectorType PlatformConnectorType = "Artifactory" DockerRegistryPlatformConnectorType PlatformConnectorType = "DockerRegistry" - NexusPlatformConnectorType PlatformConnectorType = "Nexus" UnknownPlatformConnectorAuthType PlatformConnectorAuthType = "unknown" UserNamePasswordPlatformConnectorAuthType PlatformConnectorAuthType = "UsernamePassword" @@ -29,7 +28,6 @@ var ( platformConnectorTypeMapping = map[string]PlatformConnectorType{ ArtifactoryPlatformConnectorType.String(): ArtifactoryPlatformConnectorType, DockerRegistryPlatformConnectorType.String(): DockerRegistryPlatformConnectorType, - NexusPlatformConnectorType.String(): NexusPlatformConnectorType, } platformConnectorAuthTypeMapping = map[string]PlatformConnectorAuthType{ @@ -74,10 +72,8 @@ type PlatformConnectorSpec struct { ArtifactoryURL string // DockerRegistryURL is for DockerRegistryPlatformConnectorType DockerRegistryURL string - // NexusRegistryURL is for NexusPlatformConnectorType - NexusRegistryURL string - AuthSpec PlatformConnectorAuthSpec - EnabledProxy bool + AuthSpec PlatformConnectorAuthSpec + EnabledProxy bool } // PlatformConnectorAuthSpec provide auth details. @@ -98,8 +94,6 @@ func (c PlatformConnectorSpec) ExtractRegistryURL() string { return c.DockerRegistryURL case ArtifactoryPlatformConnectorType: return c.ArtifactoryURL - case NexusPlatformConnectorType: - return c.NexusRegistryURL case UnknownPlatformConnectorType: return "" default: