Skip to content

Commit

Permalink
Add an explanatory comment for how we initialize the environment upgrade
Browse files Browse the repository at this point in the history
bindings in k8s infra.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
  • Loading branch information
metlos committed Jun 3, 2019
1 parent 2927747 commit 339db91
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ protected void configure() {
KubernetesDevfileBindings.addKubernetesBasedComponentTypeBindings(
binder(), KUBERNETES_COMPONENT_TYPE);

// We need to intialize 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);
}
Expand Down

0 comments on commit 339db91

Please sign in to comment.