Commit Graph

283 Commits (cdca0558af4e095562e4e83cf74b189bbfef6ab3)

Author SHA1 Message Date
Michal Vala 5d38d7a715
Preview url server support (#14713)
Signed-off-by: Michal Vala <mvala@redhat.com>
2019-10-24 11:39:56 +02:00
Lukas Krejci 7d56354a5e
Use che.infrastructure.kubernetes.namespace.default during workspace namespace resolution (#14828)
Load the workspace during then namespace resolution so that we can check
for the attribute stored in the workspace attributes.

Switch the default namespace to `<username>-che`.

Update the property descriptions in che.properties and use the new
CHE_INFRA_KUBERNETES_NAMESPACE_DEFAULT in the helm chart.

Move the delete to the KubernetesNamespace/OpenShiftProject to
concentrate the handling in one place.

Split the isNamespaceStatic() (previously called isPredefined()) into
isCreatingNamespaces() and isManagingNamespaces() to separately capture
the two usecases in which that single method was previously incorrectly
called. Also make these methods workspace-specific to be able to
consistently work with the legacy logic across all methods.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-10-23 13:22:51 +02:00
Vitalii Parfonov 41d48bf2de
RELEASE: Set next development version (#14904) 2019-10-17 15:45:06 +03:00
Sergii Leshchenko feb18ac7fc Added an ability to list namespace available to ws creation
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-10-09 11:47:03 +03:00
Sergii Leshchenko 9353991fac Add an ability to check if OpenShift config is personalized
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-10-09 11:47:02 +03:00
Sergii Leshchenko 82bf4a6495 Refactor IdentityProviderConfigFactory
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-10-09 11:47:00 +03:00
Vitalii Parfonov 4e1492b08f
RELEASE: Set next development version (#14690) 2019-09-27 22:52:26 +03:00
Mykhailo Kuznietsov 1907b041c1
Remove installer registry service (#14193) 2019-09-23 12:11:33 +03:00
Michal Vala 6d9cfe62c7
workspace namespace/project placeholders (#14524)
* namespace for workspace with username and userid placeholders

* write meaningful error message when failed to create namespace/project due to lack of permissions

* describe placeholders in kubernetes.namespace/openshift.project properties

* refactor detect placeholders in namespace to stream

* check if namespace name is predefined when evaluating
2019-09-20 01:02:08 +02:00
Vladyslav Zhukovskyi df3874dd2a Add missing registration for git preferences provisioner
Signed-off-by: Vlad Zhukovskyi <vzhukovs@redhat.com>
2019-09-10 17:47:16 +03:00
Lukas Krejci 154d668505
Support single-host mode on the multi-user server (#14335)
Support single-host mode on the multi-user server. Note that this depends
changes in the che-jwtproxy component.

* Add a distinction between service name and path base in the external
server exposer to be able to correctly expose a service through a proxy
* the async authentication in loader.js doesn't truncate the path
anymore so that it can correctly locate /jwt/auth even in single-host mode
* enhance the jwt proxy configuration with the ability use custom uri
prefixes for the redirects on auth failure - this can be used to pass in
the information about the external path the proxy is available on even if
hidden behind a path rewriting ingress
* Make sure pathname doesn't contain duplicated slashes when constructing
the auth request.
* Made the cookie path server-strategy sensitive
2019-09-10 10:52:51 +02:00
Roman Iuvshyn 87056fe29e RELEASE: Set next development version 2019-09-05 14:54:52 +02:00
Lukas Krejci af26d29b96
Generalize the ingress configuration to support single-host in single-user mode on kubernetes (#14134) 2019-08-26 16:27:52 +02:00
Sergii Leshchenko a8d17a04d2
Avoid using DtoImpls directly (#14320)
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-08-23 14:50:43 +03:00
Vitalii Parfonov ae8fedc411
RELEASE: Set next development version (#14238) 2019-08-14 19:32:18 +03:00
Sergii Leshchenko bb5512cf5b
Remove workspace config to Devfile converting (#14071)
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-07-31 11:14:01 +03:00
Vitalii Parfonov 03da1e24e4
RELEASE: Set next development version (#14026) 2019-07-25 15:43:30 +03:00
Lukas Krejci e598e2279b Store the container-machine mapping predictably (#13858)
Store the container-machine mapping using a pair of annotations with a
predictable name length to prevent breaking the 63 character limit on the
k8s annotation names.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-07-24 13:14:26 +03:00
Vitalii Parfonov 4050b0610d
Mount the SSH keys as secrets in all workspace containers: OpenShift Env (#13883)
* Mount the SSH keys as secrets in all workspace containers: OpenShift Env

Signed-off-by: Vitalii Parfonov <vparfono@redhat.com>
2019-07-18 12:34:30 +03:00
Vitalii Parfonov ccc8e38823
RELEASE: Set next development version (#13711) 2019-07-05 13:08:59 +03:00
Vitalii Parfonov 385c21284d
Set version 7.0.0-rc-3.0-SNAPSHOT (rc in lowercase) (#13655)
Signed-off-by: Vitalii Parfonov <vparfono@redhat.com>
2019-07-01 17:40:14 +03:00
Vitalii Parfonov 65bb7943a0
Set new version 7.0.0-RC-3.0-SNAPSHOT (#13651)
Signed-off-by: Vitalii Parfonov <vparfono@redhat.com>
2019-07-01 14:02:19 +03:00
Max Shaposhnik 44595cc8e1
Support mountSources for K8S/OS components in devfile 2019-06-24 14:02:39 +03:00
Sergii Leshchenko 16b157aaf2
Make Che Plugin Broker use self-signed certificate (#13565)
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-06-19 16:27:39 +03:00
Vitalii Parfonov 70c3e5b091
RELEASE: Set next development version (#13564) 2019-06-19 12:55:16 +03:00
Vitalii Parfonov 64129a8d44
RELEASE: Set next development version (#13460) 2019-06-03 16:28:42 +03:00
Lukas Krejci ee4461b2fd
Merge api-devfile and api-workspace together (#13417)
Merge api-devfile and api-workspace together and put the infrastructure-dependent code behind injectable interfaces.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-05-31 12:43:45 +02:00
Roman I dd1d9b5a58
switch to RC version scheme (#13424) 2019-05-28 13:52:49 +03:00
Roman I ffb8a3e013
RELEASE: Set next development version (#13377) 2019-05-22 09:52:28 +03:00
Roman Iuvshyn 53cb2c53fa
RELEASE: Set next development version (#13264) 2019-05-05 12:24:42 -04:00
John Collier 7ac34636bc Add option to specify additional cluster role for workspaces. (#13178)
Signed-off-by: John Collier <John.J.Collier@ibm.com>
2019-04-26 19:34:28 +02:00
Lukas Krejci 1d7046ba40 Generate short random names for the che-originating ingresses/routes.
The original name is still stored as a label in case the ingress/route
is originating from the user.

Signed-off-by: Lukas Krejci <lkrejci@redhat.com>
2019-04-17 18:13:44 +02:00
Angel Misevski 0adb360883 Make plugin brokering process use fully qualified names instead of metas.
Instead of downloading metas from plugin registry and passing them to
plugin broker, provide plugin broker with serialized plugin fully
qualified names and allow broker to download necessary metas.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2019-04-15 23:04:19 -06:00
Roman Iuvshyn e60598bdaf
RELEASE: Set next development version (#13102) 2019-04-10 17:13:01 +03:00
John Collier 86436a88e6 Allow sidecar containers to list Kubernetes services by default (#12983)
* Allow workspace pods to list Kubernetes services by default
* Update workspace-view-role.yaml to allow listing
of Kubernetes services
* Allow sidecar containers to list services on OpenShift
* Add services resource to workspace-view role for OpenShift

Signed-off-by: John Collier <John.J.Collier@ibm.com>
2019-03-28 15:25:55 +02:00
Oleksandr Garagatyi 26f21ebe2f
Use single unified plugin broker for all the plugins (#12942)
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2019-03-25 16:44:56 +02:00
Sergii Leshchenko 095e52d186 Make K8s/OS infrastructure support multiple pods/deployment in recipe
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-03-20 13:18:56 +02:00
Sergii Leshchenko 97cd8bce51 Fix NPE when pod template of deployment does not have name specified
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-03-19 17:00:26 +02:00
Sergii Leshchenko df3e15789b Deny to specify objects with the same kind and name in k8s/os recipe
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-03-19 17:00:26 +02:00
Roman Iuvshyn 0abdc77ea0
RELEASE: Set next development version (#12922) 2019-03-19 15:56:30 +02:00
Sergii Kabashniuk 315767ea5d
NopTracer is used if tracing is not enabled (#12897)
* NopTracer is used in tracing is not enabled

Signed-off-by: Sergii Kabashniuk <skabashniuk@redhat.com>
2019-03-19 09:44:49 +02:00
Eugene Ivantsov a9b952297a
Create view role rather than rely on view clusterRole (#12789)
* Create view role rather than rely on view clusterRole

* Create view role for k8s. Fix typo

* Typo and Java doc sync

* Add namespaced role to k8s and openshift templates. Role instead ClusterRole for k8s

* Rename view role to workspace-view

* Fix formatting

* Fix javadoc. Revent erroneous changes to postgres template

* Remove hidden Dockerfile

* Revert pg changes
2019-03-11 18:20:37 +02:00
Sergii Leshchenko 78f1cabc3a
Make Devfile parse k8s/os recipe content in the same way as infrastructures do (#12810)
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
2019-03-06 14:14:36 +02:00
RickJWagner 150435b3be correct typo in comment (#12785)
Signed-off-by: Rick Wagner <RickJWag@yahoo.com>
2019-03-01 08:51:04 +02:00
Roman Iuvshyn 0881493644
RELEASE: Set next development version (#12777) 2019-02-27 16:02:33 +02:00
Roman Iuvshyn 3778f01220
RELEASE: Set next development version (#12768) 2019-02-27 11:50:40 +02:00
Oleksandr Garagatyi 0f84710141
Add more traces and cleanup code (#12655)
Add traces for plugin brokering.
Refactor and cleanup code.
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2019-02-23 22:54:07 +02:00
Angel Misevski 8c4b3924b9 Enable getting workspace events from ReplicaSets and Deployments
- Allow KubernetesDeployments#watchEvents to handle events from
  Deployments and ReplicaSets as well as Pods.
  - Necessary to handle quota events (e.g. exceeding quota)
- Fix regression where sometimes unrecoverable events weren't handled
  at all due to pod naming issues
- Add 'FailedCreate' to unrecoverable events list (this event occurs
  when quota is exceeded.

Signed-off-by: Angel Misevski <amisevsk@redhat.com>
2019-02-13 09:31:52 -05:00
Oleksandr Garagatyi f40b8755b6
Add port attribute to runtime server (#12642)
This is needed to help clients in figuring out which port led
to creating a server in a workspace.
Also, refactor some code.
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2019-02-13 12:13:15 +02:00
Oleksandr Garagatyi e596a28030 Set kubernetes namespace to null on workspace recipe parsing
Signed-off-by: Oleksandr Garagatyi <ogaragat@redhat.com>
2019-02-12 20:48:39 +02:00