1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-02 20:35:25 +02:00

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

This commit is contained in:
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

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;
}