mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-02 08:17:26 +00:00
Add support for skeleton in GetSigner
Adding support for skeleton to GetSigner to be able to run e2e tests against a bare metal multinode cluster.
This commit is contained in:
parent
5f8726e427
commit
6201727935
@ -3450,6 +3450,11 @@ func GetSigner(provider string) (ssh.Signer, error) {
|
|||||||
if len(keyfile) == 0 {
|
if len(keyfile) == 0 {
|
||||||
keyfile = "id_rsa"
|
keyfile = "id_rsa"
|
||||||
}
|
}
|
||||||
|
case "skeleton":
|
||||||
|
keyfile = os.Getenv("KUBE_SSH_KEY")
|
||||||
|
if len(keyfile) == 0 {
|
||||||
|
keyfile = "id_rsa"
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("GetSigner(...) not implemented for %s", provider)
|
return nil, fmt.Errorf("GetSigner(...) not implemented for %s", provider)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user