Skip to content

Commit b9cb7b2

Browse files
committed
Improve readme's & logging
1 parent 8a4eee5 commit b9cb7b2

4 files changed

Lines changed: 9 additions & 1 deletion

File tree

examples/minikube/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ root@devspace-default-6446cb6b8c-c2l2q:/app#
6666

6767
The command deployed a tiller server and internal registry and used the minikube docker daemon to build the dockerfile.
6868

69+
Furthermore a bi-directional sync was started between the local folder `/go-workspace/src/github.com/covexo/devspace/examples/quickstart-kubectl` and `/app` within the docker container. Whenever you change a file in either of those two folders the change will be synchronized. In addition the container port 3000 was forwarded to your local port 3000.
70+
6971
# Step 2: Start developing
7072

7173
You can start the server now with `npm start` in the open terminal. Now navigate in your browser to `localhost:3000` and you should see the output 'Hello World!'.

examples/offline-development/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@ root@devspace-default-6446cb6b8c-c2l2q:/app#
6666

6767
The command deployed a tiller server and internal registry and used the minikube docker daemon to build the dockerfile.
6868

69+
Furthermore a bi-directional sync was started between the local folder `/go-workspace/src/github.com/covexo/devspace/examples/quickstart-kubectl` and `/app` within the docker container. Whenever you change a file in either of those two folders the change will be synchronized. In addition the container port 3000 was forwarded to your local port 3000.
70+
6971
# Step 2: Start developing
7072

7173
You can now disconnect from the internet. You can start the server now with `npm start` in the open terminal. Now navigate in your browser to `localhost:3000` and you should see the output 'Hello World!'.

examples/quickstart-kubectl/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,12 +57,14 @@ dk0dqqO: digest: sha256:5e043c3d366676331f4ffe6a9b6f38cbc08338c25ef47789060564d3
5757
deployment.extensions/devspace created
5858
[DONE] √ Successfully deployed devspace-default
5959
[DONE] √ Port forwarding started on 3000:3000
60-
[DONE] √ Sync started on /Users/fabiankramm/Programmieren/go-workspace/src/github.com/covexo/devspace/examples/quickstart-kubectl <-> /app (Pod:e388779b2b49465855bb0322057a9fff/devspace-5b5f977b77-49cjt)
60+
[DONE] √ Sync started on /go-workspace/src/github.com/covexo/devspace/examples/quickstart-kubectl <-> /app (Pod:e388779b2b49465855bb0322057a9fff/devspace-5b5f977b77-49cjt)
6161
root@devspace-5b5f977b77-49cjt:/app#
6262
```
6363

6464
The command created a new kubernetes namespace for you in the devspace-cloud and deployed the `kube/deployment.yaml` to that namespace. It also created a new kubectl context for you. If you want to access kubernetes resources via kubectl in the devspace-cloud you can simply change your kubectl context via `kubectl config use-context $$devspace-context-name$$`. You can find the context name in `.devspace/config.yaml` under `cluster.kubeContext`.
6565

66+
Furthermore a bi-directional sync was started between the local folder `/go-workspace/src/github.com/covexo/devspace/examples/quickstart-kubectl` and `/app` within the docker container. Whenever you change a file in either of those two folders the change will be synchronized. In addition the container port 3000 was forwarded to your local port 3000.
67+
6668
# Step 2: Start developing
6769

6870
You can start the server now with `npm start` in the open terminal. Now navigate in your browser to `localhost:3000` and you should see the output 'Hello World!'.

pkg/devspace/kubectl/client.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,9 @@ func GetClientConfig() (*rest.Config, error) {
6060
return nil, fmt.Errorf("Couldn't load cloud provider config: %v", err)
6161
}
6262

63+
log.StartWait("Login to cloud provider")
6364
err = cloud.Update(providerConfig, config, config.Cluster.APIServer == nil, false)
65+
log.StopWait()
6466
if err != nil {
6567
log.Warnf("Couldn't update cloud provider %s information: %v", *config.Cluster.CloudProvider, err)
6668
}

0 commit comments

Comments
 (0)