Skip to content

Commit 22bea0d

Browse files
authored
Merge pull request #528 from k8s-infra-cherrypick-robot/cherry-pick-524-to-release-0.5
[release-0.5] Ability to run on PowerVS staging environment
2 parents 4973fe4 + 641275d commit 22bea0d

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,11 @@ Please go through [CSI Spec](https://github.com/container-storage-interface/spec
107107
### Testing
108108
* To build image, run: `make image`
109109
* To push image, run: `make push`
110+
111+
### Running on PowerVS Staging
112+
To test the driver on the staging IBM Cloud PowerVS environment make use of the following environment variables.
113+
```
114+
export IBMCLOUD_IAM_API_ENDPOINT=https://iam.test.cloud.ibm.com
115+
export IBMCLOUD_RESOURCE_CONTROLLER_ENDPOINT=https://resource-controller.test.cloud.ibm.com;
116+
export IBMCLOUD_POWER_API_ENDPOINT=https://dal.power-iaas.test.cloud.ibm.com # Replace 'dal' with specific region of your test workspace.
117+
```

pkg/cloud/powervs.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,11 @@ func NewPowerVSCloud(cloudInstanceID, zone string, debug bool) (Cloud, error) {
6565
func newPowerVSCloud(cloudInstanceID, zone string, debug bool) (Cloud, error) {
6666
apikey := os.Getenv("IBMCLOUD_API_KEY")
6767

68-
authenticator := &core.IamAuthenticator{ApiKey: apikey}
68+
authenticator := &core.IamAuthenticator{ApiKey: apikey, URL: os.Getenv("IBMCLOUD_IAM_API_ENDPOINT")}
6969

7070
serviceClientOptions := &resourcecontrollerv2.ResourceControllerV2Options{
7171
Authenticator: authenticator,
72+
URL: os.Getenv("IBMCLOUD_RESOURCE_CONTROLLER_ENDPOINT"),
7273
}
7374
serviceClient, err := resourcecontrollerv2.NewResourceControllerV2(serviceClientOptions)
7475
if err != nil {

0 commit comments

Comments
 (0)