Kodo is a command line interface to build and deploy applications on Openshift.
git clone https://github.com/cli-playground/kodo.git
cd kodo
- To build run,
go build -o bin/kodo main.go
- Fork from https://github.com/cli-playground/kodo.git
- Create Your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Before creating pull request, Make sure to pull all upstream latest changes
- Create a new pull request
- You can refer go.mod for list of dependencies.
Before running commands, Set Path to $HOME/kodo/bin/.
-
count : Command to count resources like pods running on cluster
kodo count <resources>
For example,kodo count pods --server=<server url> --token=<token>
will output count of running pods of a given cluster. -
deploy : Command to deploy an image
kodo deploy --image=<image> --replicas=<no of replicas> --port=<port number> --token=<token> --server=<cluster url> --namespace=<namespace>
-
build: Command to create new BuildConfig and ImageStream from Dockerfile in github repo
kodo build --source=<github url> --namespace=<namespace> --token=<Token>--server=<cluster url>
-
help: Command to help user to list all available commands and flags
kodo help
-
version : Command to check current version
kodo version