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

CFApp controller should not manage VCAP_SERVICES #3101

Closed
georgethebeatle opened this issue Feb 9, 2024 · 1 comment
Closed

CFApp controller should not manage VCAP_SERVICES #3101

georgethebeatle opened this issue Feb 9, 2024 · 1 comment
Labels

Comments

@georgethebeatle
Copy link
Member

Background

The CFApp controller is currently managing VCAP_SERVICES by watching CFServiceBindings. All service binding management should be a responsibility of the CFBindingController. The app controller should not care about service bindings and should not get triggered by them.

Dev Notes:

  • Once we give the responsibility of VCAP_SERVICES management to the servicebinding controller we will need to introduce a finalizer to the CFServiceBinding resource so that the controller rebuilds the VCAP_SERVICES secret on binding deletion.
  • According to the servicebinding.io spec it is possible to project secrets as env vars in the workload. We could leverage this capability and delete our own code that deals with env var injection in our app workload.
@github-project-automation github-project-automation bot moved this to 🧊 Icebox in Korifi - Backlog Feb 9, 2024
@georgethebeatle georgethebeatle moved this from 🧊 Icebox to 🇪🇺 To do in Korifi - Backlog Feb 9, 2024
@georgethebeatle georgethebeatle moved this from 🇪🇺 To do to 🧊 Icebox in Korifi - Backlog Mar 13, 2024
@georgethebeatle georgethebeatle moved this from 🧊 Icebox to 🇪🇺 To do in Korifi - Backlog Mar 13, 2024
@georgethebeatle georgethebeatle moved this from 🇪🇺 To do to 🧊 Icebox in Korifi - Backlog Mar 13, 2024
@georgethebeatle
Copy link
Member Author

On a second thought this issue does not make much sense, as the binding controller is reponsible for just one binding, while the app is what aggregates all its bindings in its environment. Therefore looks like the app controller is the appropriate place for such aggregation.

@github-project-automation github-project-automation bot moved this from 🧊 Icebox to ✅ Done in Korifi - Backlog Mar 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

2 participants