Skip to content
This repository has been archived by the owner on Jul 28, 2023. It is now read-only.

Commit

Permalink
Merge pull request #235 from s1cyan/rm-onboard
Browse files Browse the repository at this point in the history
removes onboard and updates one error code
  • Loading branch information
tseelbach authored May 13, 2020
2 parents d445fe0 + 5d85409 commit e242815
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 81 deletions.
43 changes: 20 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,10 @@ Complete documentation is available at https://kabanero.io
* [kabanero list](#kabanero-list) - List all the stacks in the kabanero instance, and their status
* [kabanero login](#kabanero-login) - Will authenticate you to a Kabanero instance
* [kabanero logout](#kabanero-logout) - Disconnect from Kabanero instance
* [kabanero onboard](#kabanero-onboard) - Command to onboard a developer to the Kabanero infrastructure
* [kabanero sync](#kabanero-sync) - sync the stack list
* [kabanero version](#kabanero-version) - Show Kabanero CLI version

###### Auto generated by spf13/cobra on 6-May-2020
###### Auto generated by spf13/cobra on 13-May-2020
## kabanero login

Will authenticate you to a Kabanero instance
Expand Down Expand Up @@ -84,7 +83,7 @@ kabanero login kabanero-cli-url -u Github userid

* [kabanero](#kabanero) - This repo defines a command line interface used by the enterprise, solution, or application architect who defines and manages the kabanero stacks that are used by developers to create governed applications for their business.

###### Auto generated by spf13/cobra on 6-May-2020
###### Auto generated by spf13/cobra on 13-May-2020
## kabanero logout

Disconnect from Kabanero instance
Expand Down Expand Up @@ -115,7 +114,7 @@ kabanero logout [flags]

* [kabanero](#kabanero) - This repo defines a command line interface used by the enterprise, solution, or application architect who defines and manages the kabanero stacks that are used by developers to create governed applications for their business.

###### Auto generated by spf13/cobra on 6-May-2020
###### Auto generated by spf13/cobra on 13-May-2020
## kabanero list

List all the stacks in the kabanero instance, and their status
Expand Down Expand Up @@ -145,7 +144,7 @@ kabanero list [flags]

* [kabanero](#kabanero) - This repo defines a command line interface used by the enterprise, solution, or application architect who defines and manages the kabanero stacks that are used by developers to create governed applications for their business.

###### Auto generated by spf13/cobra on 6-May-2020
###### Auto generated by spf13/cobra on 13-May-2020
## kabanero sync

sync the stack list
Expand Down Expand Up @@ -177,25 +176,26 @@ kabanero sync [flags]

* [kabanero](#kabanero) - This repo defines a command line interface used by the enterprise, solution, or application architect who defines and manages the kabanero stacks that are used by developers to create governed applications for their business.

###### Auto generated by spf13/cobra on 6-May-2020
## kabanero onboard
###### Auto generated by spf13/cobra on 13-May-2020
## kabanero deactivate

Command to onboard a developer to the Kabanero infrastructure
Remove the specified stack from the list of available application types, without deleting it from the Kabanero instance.

### Synopsis

Under development. In the future this command causes an email to be sent to the user associated
with the user-id providing the information necessary to get started using
Kabanero.

Run the deactivate command to remove the specified stack from the list of available application types, without deleting it from the Kabanero instance.

This command is useful in a case where you have cloned a stack and customized it for your business needs. Deactivation keeps the base stack in the app hub. The base stack continues to be updated and the updates percolate up to your cloned stack. To restore a deactivated stack, run the kabanero refresh command.

```
kabanero onboard github-id [flags]
kabanero deactivate stack-name version [flags]
```

### Options

```
-h, --help help for onboard
-h, --help help for deactivate
```

### Options inherited from parent commands
Expand All @@ -208,26 +208,23 @@ kabanero onboard github-id [flags]

* [kabanero](#kabanero) - This repo defines a command line interface used by the enterprise, solution, or application architect who defines and manages the kabanero stacks that are used by developers to create governed applications for their business.

###### Auto generated by spf13/cobra on 6-May-2020
## kabanero deactivate
###### Auto generated by spf13/cobra on 13-May-2020
## kabanero describe

Remove the specified stack from the list of available application types, without deleting it from the Kabanero instance.
Get more information about the specified stack

### Synopsis


Run the deactivate command to remove the specified stack from the list of available application types, without deleting it from the Kabanero instance.

This command is useful in a case where you have cloned a stack and customized it for your business needs. Deactivation keeps the base stack in the app hub. The base stack continues to be updated and the updates percolate up to your cloned stack. To restore a deactivated stack, run the kabanero refresh command.
Get more information about the specified stacks, including the digest values

```
kabanero deactivate stack-name version [flags]
kabanero describe stack-name version [flags]
```

### Options

```
-h, --help help for deactivate
-h, --help help for describe
```

### Options inherited from parent commands
Expand All @@ -240,4 +237,4 @@ kabanero deactivate stack-name version [flags]

* [kabanero](#kabanero) - This repo defines a command line interface used by the enterprise, solution, or application architect who defines and manages the kabanero stacks that are used by developers to create governed applications for their business.

###### Auto generated by spf13/cobra on 6-May-2020
###### Auto generated by spf13/cobra on 13-May-2020
2 changes: 1 addition & 1 deletion cmd/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func generateDoc(commandDocFile string) error {
newbase := strings.ReplaceAll(base, "_", "-")
return "#" + newbase
}
commandArray := []*cobra.Command{rootCmd, loginCmd, logoutCmd, listCmd, syncCmd, onboardCmd, deactivateCmd}
commandArray := []*cobra.Command{rootCmd, loginCmd, logoutCmd, listCmd, syncCmd, deactivateCmd, describeCmd}
for _, cmd := range commandArray {

markdownGenErr := doc.GenMarkdownCustom(cmd, docFile, linkHandler)
Expand Down
56 changes: 0 additions & 56 deletions cmd/onboard.go

This file was deleted.

2 changes: 1 addition & 1 deletion cmd/sync.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func sendHTTPRequest(method string, url string, jsonBody []byte) (*http.Response
400: "Stack Version not found/version not found/ jwt expired",
// 401: "Session expired or invalid certs",
// 404: "Unable to reach services endpoint",
424: "Kab CR did not specify pipelines",
424: "Kab CR config errors",
429: "GitHub retry limit exceeded",
500: "Internal Server Error",
503: "Operator pod is not fully up",
Expand Down

0 comments on commit e242815

Please sign in to comment.