fix build-in objects docs (#719)

* fix build-in objects docs

Signed-off-by: yxxhero <aiopsclub@163.com>

* fix typo

Signed-off-by: yxxhero <aiopsclub@163.com>

---------

Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
yxxhero 2023-03-02 11:03:24 +08:00 committed by GitHub
parent d56dfeb5e4
commit a5c4bea54a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 32 additions and 9 deletions

View File

@ -9,16 +9,39 @@
# release template built-in objects # release template built-in objects
it be used for the below case: it be used for the below tow cases:
1. release definition
``` ```
apiVersion: v1 templates:
kind: ConfigMap default:
metadata: chart: stable/{{`{{ .Release.Name }}`}}
# release template namespace: kube-system
name: {{`{{ .Release.Name }}`}}-1 values:
namespace: {{`{{ .Release.Namespace }}`}} - config/{{`{{ .Release.Name }}`}}/values.yaml
data: - config/{{`{{ .Release.Name }}`}}/{{`{{ .Environment.Name }}`}}.yaml
foo: FOO secrets:
- config/{{`{{ .Release.Name }}`}}/secrets.yaml
- config/{{`{{ .Release.Name }}`}}/{{`{{ .Environment.Name }}`}}-secrets.yaml
releases:
- name: heapster
version: 0.3.2
inherit:
template: default
- name: kubernetes-dashboard
version: 0.10.0
inherit:
template: default
```
2. release values template
```
releases:
- name: some-release
chart: my-chart
values:
# This is a template file can use the built-in objects
- path/to/values.gotmpl
``` ```
- `Release`: This object describes the release itself. It has several objects - `Release`: This object describes the release itself. It has several objects