Skip to content

Commit

Permalink
fix: printing url when Eclipse Che is available (#1224)
Browse files Browse the repository at this point in the history
* fix: fix printing url when Eclipse Che is available

Signed-off-by: Anatolii Bazko <abazko@redhat.com>
  • Loading branch information
tolusha authored Dec 6, 2021
1 parent 0da8a10 commit 812d343
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 3 additions & 8 deletions helmcharts/stable/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,26 +25,21 @@ $ kubectl create namespace eclipse-che

Install `Eclipse Che Operator` by following instructions in top right button `Install`.

A new pod che-operator is created in `eclipse-che` namespace
A new pod `che-operator` is created in `eclipse-che` namespace:

```bash
$ kubectl get pods -n eclipse-che
eclipse-che che-operator-554c564476-fl98z 1/1 Running 0 13s
```

Click `CRDS` button, select `CheCluster` template and copy
custom resource Eclipse Che to file org.eclipse.che_v1_checluster.yaml.
Set up valid actual ingress domain `k8s.domain`.
Apply CR:
Click `CRDS` button, select `CheCluster` template and save Eclipse Che custom resource as a file `org.eclipse.che_v1_checluster.yaml` with a valid ingress domain for a Kubernetes cluster. Apply Eclipse Che custom resource to trigger an installation:

```bash
$ kubectl apply -f org.eclipse.che_v1_checluster.yaml -n eclipse-che
```

Also you can use `kubectl edit checluster/eclipse-che -n eclipse-che` to update Eclipse Che configuration.
See more configuration options in the [Installation guide](https://www.eclipse.org/che/docs/che-7/installation-guide/configuring-the-che-installation/).

The deployment process can be tracked by looking at the Operator logs by using the command:
See more configuration options in the [Installation guide](https://www.eclipse.org/che/docs/che-7/installation-guide/configuring-the-che-installation/). The deployment process can be tracked by looking at the Operator logs by using the command:

```bash
$ kubectl logs che-operator-554c564476-fl98z -n eclipse-che -f
Expand Down
2 changes: 1 addition & 1 deletion pkg/deploy/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ func (s *Server) UpdateAvailabilityStatus() (bool, error) {
name = "CodeReady Workspaces"
}

logrus.Infof(name+" is now available at: %s", s.deployContext.CheCluster.Status.CheURL)
logrus.Infof(name+" is now available at: %s", util.GetCheURL(s.deployContext.CheCluster))
s.deployContext.CheCluster.Status.CheClusterRunning = AvailableStatus
err := deploy.UpdateCheCRStatus(s.deployContext, "status: Che API", AvailableStatus)
return err == nil, err
Expand Down

0 comments on commit 812d343

Please sign in to comment.