Skip to content

Commit

Permalink
Merge pull request #121708 from aravindhp/add-azure-framework-ssh-pro…
Browse files Browse the repository at this point in the history
…vider

framework: add SSH support for Azure
  • Loading branch information
k8s-ci-robot committed Nov 4, 2023
2 parents 22866ca + 34b2c4e commit 24e6b03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions test/e2e/framework/ssh/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,11 @@ func GetSigner(provider string) (ssh.Signer, error) {
if keyfile == "" {
keyfile = "id_rsa"
}
case "azure":
keyfile = os.Getenv("AZURE_SSH_KEY")
if keyfile == "" {
keyfile = "id_rsa"
}
default:
return nil, fmt.Errorf("GetSigner(...) not implemented for %s", provider)
}
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/framework/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ var (
BusyBoxImage = imageutils.GetE2EImage(imageutils.BusyBox)

// ProvidersWithSSH are those providers where each node is accessible with SSH
ProvidersWithSSH = []string{"gce", "gke", "aws", "local"}
ProvidersWithSSH = []string{"gce", "gke", "aws", "local", "azure"}

// ServeHostnameImage is a serve hostname image name.
ServeHostnameImage = imageutils.GetE2EImage(imageutils.Agnhost)
Expand Down

0 comments on commit 24e6b03

Please sign in to comment.