mirror of
https://github.com/truecharts/library-charts.git
synced 2026-07-05 06:36:24 -03:00
add more docs
This commit is contained in:
@@ -9,6 +9,14 @@ image:
|
||||
|
||||
imageSelector: ""
|
||||
|
||||
command: []
|
||||
|
||||
args: []
|
||||
|
||||
extraArgs: []
|
||||
|
||||
|
||||
|
||||
|
||||
# Everything bellow needs documentation
|
||||
|
||||
@@ -32,12 +40,6 @@ ixExternalInterfacesConfigurationNames: []
|
||||
# - interface2
|
||||
|
||||
|
||||
command: []
|
||||
|
||||
args: []
|
||||
|
||||
extraArgs: []
|
||||
|
||||
tty: false
|
||||
|
||||
stdin: false
|
||||
|
||||
92
library/common/_docs/values/command-args.md
Normal file
92
library/common/_docs/values/command-args.md
Normal file
@@ -0,0 +1,92 @@
|
||||
# Command / Args
|
||||
|
||||
## Key: command
|
||||
|
||||
- Type: `list`
|
||||
- Default: `string` or `[]`
|
||||
- Helm Template:
|
||||
- String: ✅
|
||||
- List entry: ✅
|
||||
|
||||
`command` key overrides the entrypoint of the container
|
||||
|
||||
Examples:
|
||||
|
||||
```yaml
|
||||
# String / Single command
|
||||
command: ./custom-script.sh
|
||||
# String / Single command (tpl)
|
||||
command: "{{ .Values.customCommand }}"
|
||||
|
||||
# List
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
- |
|
||||
echo "Doing things..."
|
||||
# List (tpl)
|
||||
command:
|
||||
- /path/to/executable
|
||||
- --port
|
||||
- "{{ .Values.service.main.ports.main.port }}"
|
||||
```
|
||||
|
||||
## Key: args
|
||||
|
||||
- Type: `list`
|
||||
- Default: `string` or `[]`
|
||||
- Helm Template:
|
||||
- String: ✅
|
||||
- List entry: ✅
|
||||
|
||||
`args` key adds arguments to the entrypoint of the container
|
||||
|
||||
Examples:
|
||||
|
||||
```yaml
|
||||
# String / Single args
|
||||
args: worker
|
||||
# String / Single arg (tpl)
|
||||
arg: "{{ .Values.mode }}"
|
||||
|
||||
# List
|
||||
arg:
|
||||
- --port
|
||||
- 8080
|
||||
# List (tpl)
|
||||
arg:
|
||||
- --port
|
||||
- "{{ .Values.service.main.ports.main.port }}"
|
||||
```
|
||||
|
||||
## Key: extraArgs
|
||||
|
||||
- Type: `list`
|
||||
- Default: `string` or `[]`
|
||||
- Helm Template:
|
||||
- String: ✅
|
||||
- List entry: ✅
|
||||
|
||||
`extraArgs` key appends arguments to `args` of the container.
|
||||
This is useful for exposing it on SCALE GUI, so users can append
|
||||
arguments on top of the ones defined from the chart developer
|
||||
|
||||
Examples:
|
||||
|
||||
```yaml
|
||||
# String / Single args
|
||||
extraArgs: some_extra_arg
|
||||
# String / Single arg (tpl)
|
||||
extraArgs: "{{ .Values.some_key }}"
|
||||
|
||||
# List
|
||||
extraArgs:
|
||||
- --photos_path
|
||||
- /path/to/photos
|
||||
# List (tpl)
|
||||
extraArgs:
|
||||
- --photos_path
|
||||
- "{{ .Values.persistence.photos.mountPath }}"
|
||||
```
|
||||
|
||||
<!-- TODO: Add link to k8s docs -->
|
||||
@@ -54,3 +54,5 @@ gpuImage:
|
||||
|
||||
imageSelector: gpuImage
|
||||
```
|
||||
|
||||
<!-- TODO: Add link to k8s docs -->
|
||||
|
||||
Reference in New Issue
Block a user