mirror of https://github.com/k3s-io/k3s
Merge pull request #52961 from sbezverk/add_signer_for_skeleton
Automatic merge from submit-queue (batch tested with PRs 51067, 52319, 52803, 52961, 51972). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.. 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. Closes #35613pull/6/head
commit
8683b3d530
|
@ -3450,6 +3450,11 @@ func GetSigner(provider string) (ssh.Signer, error) {
|
|||
if len(keyfile) == 0 {
|
||||
keyfile = "id_rsa"
|
||||
}
|
||||
case "skeleton":
|
||||
keyfile = os.Getenv("KUBE_SSH_KEY")
|
||||
if len(keyfile) == 0 {
|
||||
keyfile = "id_rsa"
|
||||
}
|
||||
default:
|
||||
return nil, fmt.Errorf("GetSigner(...) not implemented for %s", provider)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue