Skip to content

Add k0s distribution support to etcdctl-wrapper#4

Draft
Copilot wants to merge 1 commit into
mainfrom
copilot/update-wrapper-script-for-k0s
Draft

Add k0s distribution support to etcdctl-wrapper#4
Copilot wants to merge 1 commit into
mainfrom
copilot/update-wrapper-script-for-k0s

Conversation

Copilot AI commented Jun 4, 2026

Copy link
Copy Markdown

The wrapper script only detected k3s and vanilla Kubernetes cert directories, leaving k0s clusters without auto-TLS configuration.

Changes

  • etcdctl-wrapper.sh: Added k0s branch in the cert-dir detection chain, between k3s and vanilla k8s checks:
    • Cert dir: /host/var/lib/k0s/pki/etcd/
    • Files: ca.crt, server.crt, server.key
  • Readme.md: Updated the "Where to run it" and "How auto-TLS works" tables to include k0s (controller nodes)
K0S_CERT_DIR="/host/var/lib/k0s/pki/etcd"
...
elif [ -d "$K0S_CERT_DIR" ]; then
    CACERT="$K0S_CERT_DIR/ca.crt"
    CERT="$K0S_CERT_DIR/server.crt"
    KEY="$K0S_CERT_DIR/server.key"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants