Skip to content

Commit

Permalink
Merge pull request #528 from k8s-infra-cherrypick-robot/cherry-pick-5…
Browse files Browse the repository at this point in the history
…24-to-release-0.5

[release-0.5] Ability to run on PowerVS staging environment
  • Loading branch information
k8s-ci-robot authored Nov 13, 2023
2 parents 4973fe4 + 641275d commit 22bea0d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,11 @@ Please go through [CSI Spec](https://github.com/container-storage-interface/spec
### Testing
* To build image, run: `make image`
* To push image, run: `make push`

### Running on PowerVS Staging
To test the driver on the staging IBM Cloud PowerVS environment make use of the following environment variables.
```
export IBMCLOUD_IAM_API_ENDPOINT=https://iam.test.cloud.ibm.com
export IBMCLOUD_RESOURCE_CONTROLLER_ENDPOINT=https://resource-controller.test.cloud.ibm.com;
export IBMCLOUD_POWER_API_ENDPOINT=https://dal.power-iaas.test.cloud.ibm.com # Replace 'dal' with specific region of your test workspace.
```
3 changes: 2 additions & 1 deletion pkg/cloud/powervs.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,11 @@ func NewPowerVSCloud(cloudInstanceID, zone string, debug bool) (Cloud, error) {
func newPowerVSCloud(cloudInstanceID, zone string, debug bool) (Cloud, error) {
apikey := os.Getenv("IBMCLOUD_API_KEY")

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

serviceClientOptions := &resourcecontrollerv2.ResourceControllerV2Options{
Authenticator: authenticator,
URL: os.Getenv("IBMCLOUD_RESOURCE_CONTROLLER_ENDPOINT"),
}
serviceClient, err := resourcecontrollerv2.NewResourceControllerV2(serviceClientOptions)
if err != nil {
Expand Down

0 comments on commit 22bea0d

Please sign in to comment.