forked from redpanda-data/redpanda
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request redpanda-data#20749 from redpanda-data/clee/PESDLC…
…-1432 [rptest] Azure CDT bringup
- Loading branch information
Showing
11 changed files
with
586 additions
and
173 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
from rptest.services.provider_clients.ec2_client import EC2Client | ||
from rptest.services.provider_clients.gcp_client import GCPClient | ||
from rptest.services.provider_clients.azure_client import AzureClient | ||
|
||
|
||
def make_provider_client(provider, logger, region, key, secret): | ||
def make_provider_client(provider, logger, region, key, secret, tenant=None): | ||
provider = provider.upper() | ||
_client = None | ||
if provider == 'AWS': | ||
_client = EC2Client(region, key, secret, logger) | ||
elif provider == 'GCP': | ||
# In scope of GCP, key contains path to keyfile | ||
_client = GCPClient(region, key, logger) | ||
elif provider == 'AZURE': | ||
_client = AzureClient(region, key, secret, tenant, logger) | ||
return _client |
Oops, something went wrong.