mirror of https://github.com/harness/drone.git
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 supportpull/3597/head
parent
b0630e59a2
commit
b7cca56ec7
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue