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 #35613
pull/6/head
Kubernetes Submit Queue 2017-09-25 14:50:56 -07:00 committed by GitHub
commit 8683b3d530
1 changed files with 5 additions and 0 deletions

View File

@ -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)
}