Skip to content

Commit a5484be

Browse files
committed
README, values
1 parent 7d5c936 commit a5484be

File tree

2 files changed

+22
-13
lines changed

2 files changed

+22
-13
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
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)
46
and 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
2426
moduleUrl: "http://mod-x:80"
25-
moduleVersion: 0.1.0-main
27+
moduleVersion: 0.1.0-main #used to replace @version@ placeholder in MD
2628
moduleDescriptor: |
2729
{
2830
"id" : "mod-x-@version@",
@@ -34,14 +36,16 @@ tenants:
3436
```
3537
see [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
4042
cd /path/to/parent/chart
4143
helm dependency build
4244
helm 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

4751
The container can be configured with the following environment variables:

chart/values.yaml

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,24 @@
33
nameOverride: ""
44
fullnameOverride: ""
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
119
moduleUrl: ""
12-
#required, specify the ModuleDescriptor literal (JSON)
10+
#ModuleDescriptor literal (JSON), NO DEFAULT
1311
moduleDescriptor: ""
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
1713
tenants: []
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
1924
supertenant: supertenant
2025

2126

0 commit comments

Comments
 (0)