Skip to content
This repository has been archived by the owner on May 6, 2022. It is now read-only.

Commit

Permalink
Pass service instance name via ProvisionRequest context (#2669)
Browse files Browse the repository at this point in the history
  • Loading branch information
taragu authored and k8s-ci-robot committed Jul 10, 2019
1 parent 35164fd commit cc2bfbe
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controller/controller_binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -1218,6 +1218,7 @@ func (c *controller) prepareBindRequest(
"platform": ContextProfilePlatformKubernetes,
"namespace": instance.Namespace,
clusterIdentifierKey: clusterID,
"instance_name": instance.Name,
}

request := &osb.BindRequest{
Expand Down
1 change: 1 addition & 0 deletions pkg/controller/controller_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -2211,6 +2211,7 @@ func (c *controller) prepareRequestHelper(instance *v1beta1.ServiceInstance, pla
"platform": ContextProfilePlatformKubernetes,
"namespace": instance.Namespace,
clusterIdentifierKey: id,
"instance_name": instance.Name,
}
return rh, nil
}
Expand Down
1 change: 1 addition & 0 deletions pkg/controller/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ var (
testContext = map[string]interface{}{
"platform": ContextProfilePlatformKubernetes,
"namespace": testNamespace,
"instance_name": testServiceInstanceName,
clusterIdentifierKey: testClusterID,
}
)
Expand Down

0 comments on commit cc2bfbe

Please sign in to comment.