misc: used kubernetes client

This commit is contained in:
Sheen Capadngan
2025-06-25 02:38:51 +08:00
parent 02a2309953
commit 1d7da56b40
6 changed files with 171 additions and 109 deletions
+1 -1
View File
@@ -104,7 +104,7 @@ When using `k8-secret`, the command will create or update a Kubernetes secret di
```bash
# Example template that stores the token
infisical bootstrap --k8-secret-template='{"data":{"token":"{{.Identity.Credentials.Token | encodeBase64}}"}}'
infisical bootstrap --k8-secret-template='{"data":{"token":"{{.Identity.Credentials.Token}}"}}'
# Example template with multiple fields
infisical bootstrap --k8-secret-template='{"stringData":{"token":"{{.Identity.Credentials.Token}}","org-id":"{{.Organization.ID}}","user-email":"{{.User.Email}}"}}'
@@ -80,7 +80,7 @@ Enable auto bootstrapping in your Helm values by setting `autoBootstrap.enabled:
autoBootstrap:
enabled: true
organization: "My Organization"
secretTemplate: '{"data":{"token":"{{.Identity.Credentials.Token | encodeBase64}}"}}'
secretTemplate: '{"data":{"token":"{{.Identity.Credentials.Token}}"}}'
secretDestination:
name: "infisical-bootstrap-secret"
@@ -132,9 +132,9 @@ Example template for storing multiple values:
secretTemplate: |
{
"data": {
"infisical_token": "{{ .Identity.Credentials.Token | encodeBase64 }}",
"admin_email": "{{ .User.Email | encodeBase64 }}",
"organization": "{{ .Organization.Name | encodeBase64 }}"
"infisical_token": "{{ .Identity.Credentials.Token }}",
"admin_email": "{{ .User.Email }}",
"organization": "{{ .Organization.Name }}"
}
}
```