-
Notifications
You must be signed in to change notification settings - Fork 656
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
Api endpoint to get deployment manifest with expanded runtime config #2532
Comments
The bosh/src/bosh-director/lib/bosh/director/api/controllers/deployments_controller.rb Lines 469 to 489 in 6b40dfc
Seems like a lot of that code could be used to do what you want on Since that endpoint currently renders the "currently deployed manifest", if you're adding an option to add runtime configs, it feels correct that the option should have a flag for "currently deployed manifest + runtime configs", but also adding a flag for "currently deployed manifest + new runtime configs" seems like a fine option too. You might also be able to just use the |
Thanks @jpalermo for your detailed analysis and suggestion for contribution ! |
Is your feature request related to a problem? Please describe.
As a bosh operator, in order to record a reliable current state of a bosh deployment, I need a deployment manifest with the applied runtime config. Then I archive this deployment manifest (typically in git) in order to track history of changes applied by my automation pipelines.
Currently, the runtime config may change, but the current endpoint has not yet options to render the applied runtime config. For cloud-config, it does support indicating the cloud-config within the deployment is outdated, see
bosh/src/bosh-director/spec/unit/api/controllers/deployments_controller_spec.rb
Lines 1073 to 1100 in 69dea96
Describe the solution you'd like
A new param to the
/deployments/<deployment>
endpoint to render the deployment manifest along with the add-ons.Describe alternatives you've considered
I looked for existing task debug traces and could not find a dumped rendered manifest.
Looking at source code, the planner below seems to perform the manifest merge but does not yet dump it
bosh/src/bosh-director/lib/bosh/director/deployment_plan/planner_factory.rb
Lines 50 to 126 in 4f06568
A clear and concise description of what you want to happen.
I'm also considering fetching the full manifest directly from the director db, but would need guidance into the current director db schema, as https://github.com/cloudfoundry/bosh/tree/main/docs/director_schema seems outdated
The text was updated successfully, but these errors were encountered: