diff --git a/infrastructures/kubernetes/src/main/java/org/eclipse/che/workspace/infrastructure/kubernetes/KubernetesInfraModule.java b/infrastructures/kubernetes/src/main/java/org/eclipse/che/workspace/infrastructure/kubernetes/KubernetesInfraModule.java index d4ab3fa1c8e..bbb46f9f690 100644 --- a/infrastructures/kubernetes/src/main/java/org/eclipse/che/workspace/infrastructure/kubernetes/KubernetesInfraModule.java +++ b/infrastructures/kubernetes/src/main/java/org/eclipse/che/workspace/infrastructure/kubernetes/KubernetesInfraModule.java @@ -205,5 +205,10 @@ protected void configure() { binder(), KubernetesEnvironment.TYPE); KubernetesDevfileBindings.addKubernetesBasedComponentTypeBindings( binder(), KUBERNETES_COMPONENT_TYPE); + + // We need to initialize the bindings somehow. Because no other environment type is upgradable + // to kubernetes, we just call this in a way that initializes the binding with an empty map. + KubernetesDevfileBindings.addAllowedEnvironmentTypeUpgradeBindings( + binder(), KubernetesEnvironment.TYPE); } }