fix(registry): disable tls for azure [EE-3726] (#8605)

pull/9030/head
cmeng 2023-06-02 11:53:46 +12:00 committed by GitHub
parent 4c2906e89d
commit e8e8329aab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -32,13 +32,13 @@ export function RegistryManagementConfigurationDefaultModel(registry) {
this.TLSSkipVerify = true;
}
if (registry.Type === RegistryTypes.QUAY || registry.Type === RegistryTypes.AZURE || registry.Type === RegistryTypes.ECR) {
if (registry.Type === RegistryTypes.QUAY || registry.Type === RegistryTypes.ECR) {
this.Authentication = true;
this.Username = registry.Username;
this.TLS = true;
}
if ((registry.Type === RegistryTypes.CUSTOM || registry.Type === RegistryTypes.PROGET) && registry.Authentication) {
if ((registry.Type === RegistryTypes.CUSTOM || registry.Type === RegistryTypes.PROGET || registry.Type === RegistryTypes.AZURE) && registry.Authentication) {
this.Authentication = true;
this.Username = registry.Username;
}