From cfe51d4a52f9d4a6c207fa85ee8041cb36bc963f Mon Sep 17 00:00:00 2001 From: Sheen Capadngan Date: Thu, 19 Jun 2025 03:50:56 +0800 Subject: [PATCH] misc: improved template dcs --- .../guides/automated-bootstrapping.mdx | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/docs/self-hosting/guides/automated-bootstrapping.mdx b/docs/self-hosting/guides/automated-bootstrapping.mdx index 7a34fc9f8..b4b77d5c1 100644 --- a/docs/self-hosting/guides/automated-bootstrapping.mdx +++ b/docs/self-hosting/guides/automated-bootstrapping.mdx @@ -109,13 +109,20 @@ The Helm chart auto bootstrap feature: ### Template System -The `secretTemplate` field allows you to customize the data section of the created Kubernetes secret. The template has access to the full bootstrap response and includes helper functions: +The `secretTemplate` field allows you to customize the data section of the created Kubernetes secret. The template has access to the full bootstrap response with the following available data fields: -- `{{ .Identity.Credentials.Token }}` - The admin machine identity token -- `{{ .Organization.ID }}` - The created organization ID -- `{{ .Organization.Slug }}` - The organization slug -- `{{ .User.Email }}` - The admin user email -- `b64enc` function for base64 encoding values +- `{{ .Identity.Credentials.Token }}`: The admin machine identity token +- `{{ .Identity.ID }}`: The identity ID +- `{{ .Identity.Name }}`: The identity name +- `{{ .Organization.ID }}`: The organization ID +- `{{ .Organization.Name }}`: The organization name +- `{{ .Organization.Slug }}`: The organization slug +- `{{ .User.Email }}`: The admin user email +- `{{ .User.ID }}`: The admin user ID +- `{{ .User.FirstName }}`: The admin user first name +- `{{ .User.LastName }}`: The admin user last name + +The template also supports the `b64enc` function for base64 encoding values. Example template for storing multiple values: