Skip to content
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

Update ServiceBindingRequests to work with latest Operator #2

Merged
merged 2 commits into from
Sep 9, 2020
Merged

Conversation

djones6
Copy link
Contributor

@djones6 djones6 commented Sep 9, 2020

Two recent changes to the Service Binding Operator mean that the current ServiceBindingRequests no longer function, and two corresponding updates are required:

  1. You do not need to specify an applicationSelector now that Support creation of managed secret without associating it to a workload redhat-developer/service-binding-operator#350 is implemented. In fact, you must not do so if using with Appsody/OpenLiberty operators, otherwise both are trying to manage the same resource, and get into an endless loop of updating the deployment. (I wasn't able to identify exactly which SBO change has triggered this)
  2. backingServiceSelector (singular) is being deprecated in favour of backingServiceSelectors. This was discussed in Support multiple backing services in customEnvVar / dataMapping redhat-developer/service-binding-operator#396 and implemented in Introduce id field in service selector to be used as shortcut in custom environment variables redhat-developer/service-binding-operator#468. In order to distinguish between backing services, you now need to give them an id and reference that in the Go template expression.

This PR addresses both issues.

...and causes an endless reconcile loop with the Appsody operator
And reference backing service via id field
Copy link
Contributor

@matthewpwilson matthewpwilson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. We should probably update the copies of the SBRs in the microservice repos as well.

@djones6
Copy link
Contributor Author

djones6 commented Sep 11, 2020

@matthewpwilson Corresponding PRs to update the SBR in each microservice are here:
ibm-icpa-coffeeshop/barista-kafka#1
ibm-icpa-coffeeshop/coffeeshop-ui#1

@djones6 djones6 deleted the fix-sbr branch September 11, 2020 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants