Skip to content

Commit

Permalink
Support service instance id for IBMPowerVSImage (#1691)
Browse files Browse the repository at this point in the history
  • Loading branch information
Karthik-K-N committed Mar 27, 2024
1 parent a1e0e41 commit 384c189
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cloud/scope/powervs_image.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ func NewPowerVSImageScope(params PowerVSImageScopeParams) (scope *PowerVSImageSc
spec := params.IBMPowerVSImage.Spec
if spec.ServiceInstanceID != "" {
serviceInstanceID = spec.ServiceInstanceID
} else if params.IBMPowerVSImage.Spec.ServiceInstance != nil && params.IBMPowerVSImage.Spec.ServiceInstance.ID != nil {
serviceInstanceID = *params.IBMPowerVSImage.Spec.ServiceInstance.ID
} else {
name := fmt.Sprintf("%s-%s", params.IBMPowerVSImage.Spec.ClusterName, "serviceInstance")
if params.IBMPowerVSImage.Spec.ServiceInstance != nil && params.IBMPowerVSImage.Spec.ServiceInstance.Name != nil {
Expand Down

0 comments on commit 384c189

Please sign in to comment.