-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from shahidhk/cli
introduce gitkube cli
- Loading branch information
Showing
879 changed files
with
71,912 additions
and
102,136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
gitkube | ||
cmd/gitkube-controller/gitkube-controller | ||
ws/ | ||
_output/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM golang:1.10 | ||
|
||
# install gox | ||
RUN go get github.com/mitchellh/gox | ||
|
||
# setup the working directory | ||
WORKDIR /go/src/github.com/hasura/gitkube |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// A CLI tool to install and manage Gitkube and associated remotes on a | ||
// Kubernetes cluster. | ||
package main | ||
|
||
import ( | ||
"github.com/hasura/gitkube/pkg/cmd" | ||
log "github.com/sirupsen/logrus" | ||
) | ||
|
||
// main is the entrypoint function | ||
func main() { | ||
err := cmd.Execute() | ||
if err != nil { | ||
log.Fatal(err) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
## gitkube | ||
|
||
Build and deploy docker images to Kubernetes using git push | ||
|
||
### Synopsis | ||
|
||
Install Gitkube and manage its Remotes on a Kubernetes cluster | ||
|
||
### Examples | ||
|
||
``` | ||
# Get your application running on Kubernetes in 4 simple steps. | ||
# Step 1: Install Gitkube on a Kubernetes cluster: | ||
gitkube install | ||
# Step 2: Generate a Gitkube Remote spec interactively and save it as 'example-remote.yaml': | ||
gitkube remote generate -f example-remote.yaml | ||
# Step 3: Create a Remote defined in 'example-remote.yaml' on the cluster: | ||
gitkube remote create -f example-remote.yaml | ||
# outputs the remote url | ||
# Step 4: Add remote to the git repo and push: | ||
git remote add example <remote_url> | ||
git push example master | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for gitkube | ||
--kube-context string kubernetes context to use | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [gitkube install](gitkube_install.md) - Install Gitkube on a Kubernetes cluster | ||
* [gitkube remote](gitkube_remote.md) - Manage Gitkube Remotes on a cluster | ||
* [gitkube uninstall](gitkube_uninstall.md) - Uninstall Gitkube components from a cluster | ||
* [gitkube version](gitkube_version.md) - Output the cli version | ||
|
||
###### Auto generated by spf13/cobra on 26-May-2018 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
## gitkube install | ||
|
||
Install Gitkube on a Kubernetes cluster | ||
|
||
### Synopsis | ||
|
||
Install all Gitkube components on the cluster and expose the gitkubed deployment | ||
|
||
``` | ||
gitkube install [flags] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
# Install Gitkube in 'kube-system' namespace: | ||
gitkube install | ||
# Install in another namespace: | ||
gitkube install --namespace <your-namespace> | ||
# The command prompts for a ServiceType to expose gitkubed deployment. | ||
# Use '--expose' flag to set a ServiceType and skip the prompt | ||
# Say, 'LoadBalancer': | ||
gitkube install --expose LoadBalancer | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-e, --expose string k8s service type to expose the gitkubed deployment | ||
-h, --help help for install | ||
-n, --namespace string namespace to create install gitkube resources in (default "kube-system") | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--kube-context string kubernetes context to use | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [gitkube](gitkube.md) - Build and deploy docker images to Kubernetes using git push | ||
|
||
###### Auto generated by spf13/cobra on 26-May-2018 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
## gitkube remote | ||
|
||
Manage Gitkube Remotes on a cluster | ||
|
||
### Synopsis | ||
|
||
Manage Gitkube Remotes on a cluster | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for remote | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--kube-context string kubernetes context to use | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [gitkube](gitkube.md) - Build and deploy docker images to Kubernetes using git push | ||
* [gitkube remote create](gitkube_remote_create.md) - Create Remote for enabling git-push, from a spec file | ||
* [gitkube remote delete](gitkube_remote_delete.md) - Delete a Remote from the cluster | ||
* [gitkube remote generate](gitkube_remote_generate.md) - Generate a Remote spec in an interactive manner | ||
* [gitkube remote list](gitkube_remote_list.md) - List Remotes | ||
|
||
###### Auto generated by spf13/cobra on 26-May-2018 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
## gitkube remote create | ||
|
||
Create Remote for enabling git-push, from a spec file | ||
|
||
### Synopsis | ||
|
||
Create Remote for enabling git-push, from a spec file | ||
|
||
``` | ||
gitkube remote create [flags] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
# Create a remote by reading 'example-remote.yaml': | ||
gitkube create -f example-remote.yaml | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-f, --file string spec file | ||
-h, --help help for create | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--kube-context string kubernetes context to use | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [gitkube remote](gitkube_remote.md) - Manage Gitkube Remotes on a cluster | ||
|
||
###### Auto generated by spf13/cobra on 26-May-2018 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
## gitkube remote delete | ||
|
||
Delete a Remote from the cluster | ||
|
||
### Synopsis | ||
|
||
Delete a Gitkube remote from the cluster | ||
|
||
``` | ||
gitkube remote delete [flags] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
# Delete remote called 'example': | ||
gitkube remote delete example | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for delete | ||
-n, --namespace string namespace of the remote (default "default") | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--kube-context string kubernetes context to use | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [gitkube remote](gitkube_remote.md) - Manage Gitkube Remotes on a cluster | ||
|
||
###### Auto generated by spf13/cobra on 26-May-2018 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
## gitkube remote generate | ||
|
||
Generate a Remote spec in an interactive manner | ||
|
||
### Synopsis | ||
|
||
An interactive prompt-driven approach to generate Remote spec, rather than writing yaml by hand | ||
|
||
``` | ||
gitkube remote generate [flags] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
# Generate a remote and save it as 'example-remote.yaml': | ||
gitkube remote generate -f example-remote.yaml | ||
# Shows interactive prompts to type-in/select options. | ||
# Contacts the cluster to create docker registry secret (if provided) | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for generate | ||
-o, --output string file format to output, supports yaml and json (default "yaml") | ||
-f, --output-file string write generated spec to this file | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--kube-context string kubernetes context to use | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [gitkube remote](gitkube_remote.md) - Manage Gitkube Remotes on a cluster | ||
|
||
###### Auto generated by spf13/cobra on 26-May-2018 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
## gitkube remote list | ||
|
||
List Remotes | ||
|
||
### Synopsis | ||
|
||
List Gitkube Remotes on a cluster | ||
|
||
``` | ||
gitkube remote list [flags] | ||
``` | ||
|
||
### Examples | ||
|
||
``` | ||
# List all remotes: | ||
gitkube remote list | ||
``` | ||
|
||
### Options | ||
|
||
``` | ||
-h, --help help for list | ||
-n, --namespace string namespace for listing (default "default") | ||
``` | ||
|
||
### Options inherited from parent commands | ||
|
||
``` | ||
--kube-context string kubernetes context to use | ||
``` | ||
|
||
### SEE ALSO | ||
|
||
* [gitkube remote](gitkube_remote.md) - Manage Gitkube Remotes on a cluster | ||
|
||
###### Auto generated by spf13/cobra on 26-May-2018 |
Oops, something went wrong.