-
Notifications
You must be signed in to change notification settings - Fork 179
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
[RFC0030] Add Support for File based Service Binding Information #901
Comments
Hello there, here are the 4 PRs within diego-release, bbs, rep, and executor. They are needed for RFC-0030.
|
@dimitardimitrov13 thanks for the update! I updated the tasks list. |
@beyhan, thank you. |
🎉 Hi @dimitardimitrov13 , Excellent work so far! Please ping me on slack (too easy to miss github notifications with 100+ repos 🫠 ) when the CAPI PRs are done and we can test this end-to-end. At that point I will assign a Diego reviewer. |
Hello Amelia, Thanks for your message. Unfortunately, we do not have a straightforward way to test this end-to-end. During the implementation stage, I used a custom build of cfdot and a mocked code inside the BBS to simulate this. The code was cleaned up from the BBS before the PR. It seems we will need to wait for the CAPI team. Best regards, |
Hi @ameowlia, Just in case you haven't seen the input from @dimitardimitrov13 above. |
This is what I read in the comment above #901 (comment) |
Yes, I want to wait to review and merge until we can test it end-to-end. That way we can make sure everything works all the way through and we don't have to worry about breaking changes if part of it is released, but then it ends up things need to change to work with CAPI. |
@beyhan, @dimitardimitrov13: As I've started to implement the CAPI part of this, I came across the changed BBS interface. I suggest that we adapt When already changing the BBS interface, I would also like to discuss, if we can adapt the attributes. Currently they are named |
And another topic to discuss is the usage of non-Ascii characters. Today you can do the following:
The env var looks then as follows:
With file-based service bindings this would result in a file |
There's also a possible name conflict. The RFC states that the directory should be named after the service binding. I guess that this refers to the |
Referring to a discussion (#994 (comment)) in an RFC willing to build on top of this I would say that we should go for the suggested name there change |
Hello, I agree that good naming conventions should always be chosen. Since we have already changed it once (as requested by Stefan Merker), it could be done again. Regarding the other comments, I'll take a look next week and get back to you with answers. Best regards, |
The RFC defines that we should support the K8s service binding spec naming conventions in
tmpfs file system but most probably it supports the same as Linux OS and according to the rules listed in https://en.wikipedia.org/wiki/Filename#Comparison_of_filename_limitations K8s naming specification should be fine. Any thoughts on this @ameowlia , @ChrisMcGowan , @rkoster , @stephanme, @Gerg?
|
In the K8s spec is stated that:
I think we should make sure that this conflict results in an error like with the name in the previous comment. It also sounds as a missing validation in the current behaviour of CC. @philippthun Do we have any other alternative? |
Okay, I've implemented the MUST requirement for service binding names. But what about the SHOULD requirement for binding entry file names? We would already violate this by using the defined
I would prefer one of the first two options. |
Agree - I've implemented this check. |
Hi @philippthun, I would say that we should go with option 1. because we aim to reuse existing tooling from the CNCF community here and it could be that they fail if we aren't conform with the K8s spe. @ameowlia , @ChrisMcGowan , @rkoster , @stephanme, @Gerg any opinion on this? |
I opened #1008 to address all this discussions. |
👋 Hi @philippthun, I am in the middle of doing acceptance for the diego PRs for file-based service binding info. ❓ Are there docs on how to enable file-based service binding info for apps? I looked through...
...and I can't seem to find it. Is there a new CF CLI or a CAPI API command I should be using? |
Hi @ameowlia, in the RFC it is specified in
community/toc/rfc/rfc-0030-add-support-for-file-based-service-binding.md Lines 107 to 113 in 55a5ff9
Looking into the implementation in cloudfoundry/cloud_controller_ng#3997 the feature flag has the name as defined in the RFC |
@ameowlia - The release-candidate version of the docs has some info about this flag: https://v3-apidocs.cloudfoundry.org/version/release-candidate/#supported-app-features - actually only the name is interesting... As Beyhan already wrote, you have to enable it via the API. Maybe you find this repository helpful - it contains test apps (and test descriptions) that I used for end-to-end validation of this feature. Our plan is to integrate this into CATS. |
Thanks for those links @philippthun they really help! I was able to black box test the basic functionality today and everything worked. I will continue reviewing tomorrow. |
This is a tracking issue for the implementation of https://github.com/cloudfoundry/community/blob/main/toc/rfc/rfc-0030-add-support-for-file-based-service-binding.md
Tasks
The text was updated successfully, but these errors were encountered: