-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Local mimic command csb client bind
fails to access instance details
#1049
Comments
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/187906362 The labels on this github issue will be updated when the story is started. |
Thank you very much for raising the incidence, @kanngiesser. We will soon prioritise tasks and analyse the issue so we can contact you as soon as possible. |
Thank you for raising the incidence. csb is a development tool that could have bugs. We are open to contributions. Unfortunately we can not allocate resources to this task right now, but we will be happy to review your pull request with some proposed solution |
After digging into the source code, this is what I was able to figure out:
# (...)
bind:
computed_inputs:
- name: arn
default: ${instance.details["arn"]}
type: string
In fact, terraform outputs appear to be stored to As a consequence, there is a simple fix which allows to create bindings when testing locally: call |
IMO this behavior appears to be somewhat unexpected and should be changed. With the current implementation, the provision request is only finalized when calling
|
Description
The default variable
instance.details
returns an empty map when trying to bind a service instance with the local mimic commandcsb client bind
.The problem occurs for our custom brokerpaks and can be reproduced for the default brokerpak which is bootstrapped from the
csb pak init
commandExpected Behavior
The map
instance.details
is expected to return output values from theprovision
callActual Behavior
instance.details
returns an empty map. When testing with the default-brokerpak which is bootstrapped from thecsb pak init
command, callingcsb client bind
returns this error, for example:Possible Fix
--
Steps to Reproduce
pak init
command:Context
The Bug prevents us from testing service bindings locally for Brokerpaks which are under development.
Your Environment
The text was updated successfully, but these errors were encountered: