capsule
capsule copied to clipboard
[WIP] convert create-user.sh to pure go functions
The result of this code would look like this it generates ${tenant}-${user}.kubeconfig
{
"apiVersion": "v1",
"kind": "Config",
"clusters": [
{
"name": "orbstack",
"cluster": {
"certificate-authority-data": "<data>",
"server": "https://127.0.0.1:26443"
}
}
],
"contexts": [
{
"name": "oil-oil",
"context": {
"cluster": "orbstack",
"user": "oil"
}
}
],
"current-context": "oil-oil",
"preferences": null,
"users": [
{
"name": "oil",
"user": {
"client-certificate-data": "<data>",
"client-key-data": "<data>"
}
}
]
}
Deploy Preview for capsule-documentation canceled.
| Name | Link |
|---|---|
| Latest commit | 89801be068d40306561fa41a81285d220a76a22e |
| Latest deploy log | https://app.netlify.com/sites/capsule-documentation/deploys/65dda207df41a5000819cca5 |
@9trocode I'm very welcoming to your PR, and I'd like to know if you could revamp it.