exec credential provider: make arbitrary JSON more explicit

Signed-off-by: Andrew Keesler <akeesler@vmware.com>
This commit is contained in:
Andrew Keesler 2020-11-03 12:19:16 -05:00
parent 6fc4e102b8
commit c855d5d68c
No known key found for this signature in database
GPG Key ID: 27CE0444346F9413
1 changed files with 6 additions and 2 deletions

View File

@ -895,7 +895,9 @@ clusters:
extensions: extensions:
- name: client.authentication.k8s.io/exec # reserved extension name for per cluster exec config - name: client.authentication.k8s.io/exec # reserved extension name for per cluster exec config
extension: extension:
some-config-per-cluster: config-data # arbitrary config arbitrary: config
this: can be provided via the KUBERNETES_EXEC_INFO environment variable upon setting provideClusterInfo
you: ["can", "put", "anything", "here"]
contexts: contexts:
- name: my-cluster - name: my-cluster
context: context:
@ -994,7 +996,9 @@ example of the aforementioned `KUBERNETES_EXEC_INFO` environment variable.
"server": "https://172.17.4.100:6443", "server": "https://172.17.4.100:6443",
"certificate-authority-data": "LS0t...", "certificate-authority-data": "LS0t...",
"config": { "config": {
"some-config-per-cluster": "config-data" "arbitrary": "config",
"this": "can be provided via the KUBERNETES_EXEC_INFO environment variable upon setting provideClusterInfo",
"you": ["can", "put", "anything", "here"]
} }
} }
} }