Skip to content

Commit 24e6b03

Browse files
authored
Merge pull request kubernetes#121708 from aravindhp/add-azure-framework-ssh-provider
framework: add SSH support for Azure
2 parents 22866ca + 34b2c4e commit 24e6b03

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

test/e2e/framework/ssh/ssh.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,11 @@ func GetSigner(provider string) (ssh.Signer, error) {
8686
if keyfile == "" {
8787
keyfile = "id_rsa"
8888
}
89+
case "azure":
90+
keyfile = os.Getenv("AZURE_SSH_KEY")
91+
if keyfile == "" {
92+
keyfile = "id_rsa"
93+
}
8994
default:
9095
return nil, fmt.Errorf("GetSigner(...) not implemented for %s", provider)
9196
}

test/e2e/framework/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ var (
136136
BusyBoxImage = imageutils.GetE2EImage(imageutils.BusyBox)
137137

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

141141
// ServeHostnameImage is a serve hostname image name.
142142
ServeHostnameImage = imageutils.GetE2EImage(imageutils.Agnhost)

0 commit comments

Comments
 (0)