diff --git a/infrastructures/kubernetes/src/main/java/org/eclipse/che/workspace/infrastructure/kubernetes/provision/KubernetesTrustedCAProvisioner.java b/infrastructures/kubernetes/src/main/java/org/eclipse/che/workspace/infrastructure/kubernetes/provision/KubernetesTrustedCAProvisioner.java index a187a0e173e..1ec8eef7ac1 100644 --- a/infrastructures/kubernetes/src/main/java/org/eclipse/che/workspace/infrastructure/kubernetes/provision/KubernetesTrustedCAProvisioner.java +++ b/infrastructures/kubernetes/src/main/java/org/eclipse/che/workspace/infrastructure/kubernetes/provision/KubernetesTrustedCAProvisioner.java @@ -62,7 +62,7 @@ public KubernetesTrustedCAProvisioner( @Named("che.infra.kubernetes.trusted_ca.dest_configmap") String configMapName, @Named("che.infra.kubernetes.trusted_ca.mount_path") String certificateMountPath, @Nullable @Named("che.infra.kubernetes.trusted_ca.dest_configmap_labels") - String configMapLabel, + String configMapLabels, CheInstallationLocation cheInstallationLocation, KubernetesNamespaceFactory namespaceFactory, CheServerKubernetesClientFactory cheServerClientFactory) @@ -75,9 +75,9 @@ public KubernetesTrustedCAProvisioner( this.installationLocationNamespace = cheInstallationLocation.getInstallationLocationNamespace(); this.namespaceFactory = namespaceFactory; - if (configMapLabel != null) { + if (configMapLabels != null && !configMapLabels.trim().equals("")) { this.configMapLabelKeyValue = - Splitter.on(",").withKeyValueSeparator("=").split(configMapLabel); + Splitter.on(",").withKeyValueSeparator("=").split(configMapLabels); } else { this.configMapLabelKeyValue = new HashMap<>(); }