2.1 KiB
2.1 KiB
Purpose
oc-deploy is a tool to deploy (with helm) all component of OpenCloud.
Usage
Command | Description |
---|---|
oc-deploy |
Display help |
oc-deploy version |
Display the version of tool |
oc-deploy install [-c|--context <context>] [-v|--version <OcVersion>] |
Deploy an OpenCloud |
oc-deploy uninstall [-c|--context <context>] |
Undeploy an OpenCloud |
Arguments | Description | Default |
---|---|---|
context |
Context Kubernetes | opencloud |
OcVersion |
Specific version or latest | latest |
Principe
Pre-requis
oc-deploy need to access to an Kubernetes Cluster, c'est-à-dire : kubeconfig.
oc-deploy need to access to Internet :
- to download the oc.json file (contient oc.yml) :
- to download kubectl and helm tools if
- Url : Urls are specified into oc.yml
Development
To init:
make get-deps
To build
make build
To run
make run_install [BIN_OPTS="<args>"]
make run_uninstall [BIN_OPTS="<args>"]
make run_generate [BIN_OPTS="<args>"]
or
make exec_install [BIN_OPTS="<args>"]
make exec_uninstall [BIN_OPTS="<args>"]
make exec_generate [BIN_OPTS="<args>"]
To Test
All packages:
make test
or to test an specific package:
make test_<package>
Test generate .coverage.html file to view the coverage of test.
To Publish
Cf : ../publish
Divers
- Latest version for kubectl: https://dl.k8s.io/release/stable.txt
- Release for helm: https://github.com/helm/helm/releases