* Add support for creating component from service catalog
Fixes#266
Signed-off-by: Suraj Narwade <surajnarwade353@gmail.com>
This PR adds the support for creating services from service catalog. for this support, we have used
client from [kubernetes-incubator/service-catalog](https://github.com/kubernetes-incubator/service-catalog).
Currently, we are supporting template service broker only. In future, we will add support for
other brokers as well.
We have added entire new command set for this purpose.
* to check available services in service catalog
```
$ odo service catalog
```
* to create service,
```
$ odo service create mysql-persistent
```
* to delete service,
```
$ odo service delete mysql-persistent
```
* to list the current provisioned services with their status
```
$ odo service list
```
* updated component/service search in catalog
* remove commented code from service.go
* removed hard coded template-service-broker
This will list all the storages in all the components in a
current application and project
Syntax will be odo storage list --all
on execution of odo storage list --all componentName it will fail
Fixes#507
Add e2e test related to feature
Refactored the output format for --all flag
Add comments about code flow
Fix semicolon comment
Fix issue of unmounted storage getting printed multiple times
Add function for listing mounted storage and unmounted storage
Add spacing before lines
Add a flag in unmount function
Basically in case of deleting pvc, we are first unmounting
and then deleting. Then unmounting function is updating the labels
So if we are deleting the pvc then updating call is not required
Added a flag to update Labels or not, when delete function is called
its set to false and when unmount is called it is set to true
Add comments about updateLabels
Made the code resuable and more simpler
Address other indentation and format changes
Make print format look good
The odo create command documentation suggests usage of
odo component list instead of odo catalog list. This PR
fixes the same.
fixes#645
Signed-off-by: anmolbabu <anmolbudugutta@gmail.com>
This PR adds message of the form:
"Component $componentName was created and ports $containerPort/$containerProtocol,.... were opened."
fixes#608
Signed-off-by: anmolbabu <anmolbudugutta@gmail.com>
It adds a new function getContainerPortsFromString which takes a string array containing the port string e.g 8080/tcp,8081,9090/udp and returns the ContainerPorts or error. If no protocol is passed, tcp is considered as default.
Signed-off-by: mdas <mrinald7@gmail.com>
It also adds a component flag to the create command for URL to specify the component. It also changes the behaviour of the odo delete command and now a component flag can be passed to delete the url from or else the current component is used.
Signed-off-by: mdas <mrinald7@gmail.com>
Updates the PS1 output so that "<no application>/<no component>" is
outputted when nothing is detected, rather then the previous
long-string.
This also changes the comparison from error-code to string-checking.
Closes https://github.com/redhat-developer/odo/issues/549
To achieve this, two functions have been added SetupForSupervisor and CleanupAfterSupervisor in occlient.go. Also some other functions are added in occlient to add and remove initContainers, volumeMounts and volumes to the deploymentConfig. Also updateDcAnnotations in occlient is added to update the annotations in the deploymentConfig.
Signed-off-by: mdas <mrinald7@gmail.com>
This combines both autocompletion and "terminal" commands into one
category (`odo utils`).
The new command added is `odo utils terminal`
This can be used with either bash/zsh by: source <(odo utils terminal
bash/zsh)
As of now,
```
$ odo app
There's no active application.
You can create one by running 'odo application create <name>'.✔ ~/go/src/github.com/redhat-developer/odo [without-storage-name L|⚑ 20]
```
This PR will add newline here so that output will be like,
```
$ odo app
There's no active application.
You can create one by running 'odo application create <name>'.
✔ ~/go/src/github.com/redhat-developer/odo [without-storage-name L|⚑ 20]
```