Commit c558560
feat(rotate-ca): add auto-discovery and post-processing (#104)
* feat(rotate-ca): add auto-discovery and post-processing
- Auto-discover control plane and worker nodes from Kubernetes API
- Auto-set --control-plane-nodes and --worker-nodes flags
- Auto-set --output to project talosconfig path
- Auto-set --k8s-endpoint from --endpoints flag
- Post-processing after rotation:
- Update secrets.yaml with new CA from cluster
- Update talosconfig.encrypted if exists
- Update kubeconfig via talm kubeconfig
- Validate only one endpoint/node is provided
- Use endpoint as target node for COSI requests
- Disable --with-docs and --with-examples by default
- Update help text and examples
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
* fix(commands): address review comments
- Check total endpoints + nodes count in rotate-ca validation
- Propagate decryption errors in init.go instead of ignoring them
- Check flag existence with Lookup() before calling Set()
- Handle all Set() errors properly
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
---------
Signed-off-by: Andrei Kvapil <kvapss@gmail.com>
Co-authored-by: Claude <noreply@anthropic.com>1 parent 6111a21 commit c558560
3 files changed
Lines changed: 350 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
328 | | - | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
329 | 330 | | |
330 | 331 | | |
331 | 332 | | |
| |||
0 commit comments