File tree Expand file tree Collapse file tree 2 files changed +22
-13
lines changed
Expand file tree Collapse file tree 2 files changed +22
-13
lines changed Original file line number Diff line number Diff line change 11# About
22
3+ This project provides Okapi deployment automation when deploying Okapi modules on Kubernetes.
4+
35` okapi-hooks ` is a helper container for Okapi module registration (deploy + install/uninstall + undeploy)
46and a corresponding Helm chart that binds to Helm's ` post-instal ` and ` post-upgrade `
57[ lifecycle hooks] ( https://helm.sh/docs/topics/charts_hooks/ ) .
@@ -18,11 +20,11 @@ dependencies:
1820 version : " >0.1.0-0" # or a specific version
1921` ` `
2022
21- the subchart is then configured with the following minimal values:
23+ the subchart must be configured with the following minimal values:
2224
2325` ` ` yaml filename=values.yaml
2426moduleUrl : " http://mod-x:80"
25- moduleVersion : 0.1.0-main
27+ moduleVersion : 0.1.0-main # used to replace @version@ placeholder in MD
2628moduleDescriptor : |
2729 {
2830 "id" : "mod-x-@version@",
@@ -34,14 +36,16 @@ tenants:
3436` ` `
3537see [values.yaml](./chart/values.yaml) for a complete list of configuration options.
3638
37- The parent chart is then build with
39+ The parent chart is then build with:
3840
3941` ` ` bash
4042cd /path/to/parent/chart
4143helm dependency build
4244helm package .
4345```
4446
47+ The chart expects a deployed secret called ` okapi-secret ` with ` OKAPI_USER/OKAPI_PASS ` or ` OKAPI_TOKEN ` keys.
48+
4549## Environment variables
4650
4751The container can be configured with the following environment variables:
Original file line number Diff line number Diff line change 33nameOverride : " "
44fullnameOverride : " "
55
6- # required, Okapi base URL with scheme and port
7- okapiUrl : " http://okapi:9130"
8- # required, Okapi secret name
9- okapiSecret : " okapi-secret"
10- # required, specify the module base URL with scheme and port
6+ # REQUIRED values that must be specified by the parent chart:
7+
8+ # Module base URL with scheme and port, NO DEFAULT
119moduleUrl : " "
12- # required, specify the ModuleDescriptor literal (JSON)
10+ # ModuleDescriptor literal (JSON), NO DEFAULT
1311moduleDescriptor : " "
14- # required, to be replaced in the ModuleDescriptor
15- moduleVersion : " 0.1.0"
16- # required, specify the Okapi tenant(s) to be used
12+ # Okapi tenant(s) to deploy the module to, NO DEFAULTS
1713tenants : []
18- # required, specify the Okapi admin tenant(s) to be used
14+
15+ # REQUIRED values with defaults in the subchart, may be overridden by parent chart:
16+
17+ # Used to replace @version@ in the module descriptor, must be specified only if @version@ placeholder is used
18+ moduleVersion : " 0.1.0"
19+ # Okapi base URL with scheme and port
20+ okapiUrl : " http://okapi:9130"
21+ # Okapi secret name, the secret must include OKAPI_USER/OKAPI_PASS or OKAPI_TOKEN keys
22+ okapiSecret : " okapi-secret"
23+ # Okapi admin tenant
1924supertenant : supertenant
2025
2126
You can’t perform that action at this time.
0 commit comments