Provider of "cors.allowed.origins" setting for CORS Filter of WS Agent. Provides the value such algorithm:
1. If set che.wsagent.cors.allowed_origins
2. Server with "ide" attribute in workspace config
3. Server from url of "ide" link in workspace config
4. che.api
Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
Fixes bug when a maven file-type (without linked editor provider) is registered and another file type for pom.xml files (with linked editor provider) is registered as well, but when the pom.xml file is opened default editor provider is returned. The fix iterates registered editor providers if the the default provider is registered for the found file type.
Create a copy of the Pods and Deployments map when creating a
KubernetesEnvironment, rather than reusing the objects that are passed
in.
Fixes an issue where it's not possible to use a KubernetesEnvironment
created from another, as addPod() would try to add to an immutable map.
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
Add test cases for
- KubernetesInternalRuntime, when creating from deployments
- UniqueNamesProvisioner, to ensure deployments and configmaps are
handled correctly
Signed-off-by: Angel Misevsk <amisevsk@redhat.com>
Remove podName parameter from addPod method and simply get it from the
pod's metadata.
Additional cleanup and documentation changes:
- Make some log messages level 'info' instead of 'debug'
- Modify argument order in messages to to make more sense
- Add docs for KubernetesEnvironment methods about how/when pods map can
be modified
- Fix issue where pods referencing nonexistent configmaps would emit
unreadable error messages due to configmap renaming.
- Clean up code according to PR Quality Review
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
Add validation and processing on the dashboard side for recipes
containing deployments and/or configmaps. This allows users to create
new stacks using these items in recipes.
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
- Rename method in KubernetesInternalRuntime to make its meaning more
clear
- Fix some documentation issues
- Refactor KubernetesEnvironment to set podData in constructor instead
of through builder, avoiding inconsistencies in podData when using
constructor directly.
- Rename KubernetesEnvironment#getPodData to getPodsData to better
represent the data that is returned
- Fix issue where pod-based recipes were not correctly getting
deployment name label and so were failing to start
- Fix issue where deployments were not given a unique name by
provisioner.
Signed-off-by: Angel Misevsk <amisevsk@redhat.com>
Allow configmaps to be specified in Kubernetes/OpenShift recipes. Also
changes UniqueNamesProvisioner to rewrite configmap names across the
environment to avoid name collisions.
Signed-off-by: Angel Misevski <amisevsk@redhat.com>
Changes necessary to make tests compile and pass after introduction of
deployments into Kubernetes/OpenShift recipes.
Signed-off-by: Angel Misevski <amisevsk@redhat.com>