-
Notifications
You must be signed in to change notification settings - Fork 50
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
Proposal: add debug-level file captures for rendered gotemplates #1496
Comments
We have created an issue in Pivotal Tracker to manage this: https://www.pivotaltracker.com/story/show/180636109 The labels on this github issue will be updated when the story is started. |
I was desperately trying to debug why some resources specified in the sources template don't seem to be detected/watched by the binding controller and thus fail to be used in the status binding section. As a workaround for the lack of capture of rendered templates, I introduced faults in the status template to basically dump the watched resources. In the traces, I see the following but this did not help.
I finally end up on https://github.com/cloudfoundry-incubator/service-fabrik-broker/blob/master/docs/Interoperator-templates.md#sources precising
In my use-case, I need to lookup a resource created as a side effect of the resource provisionned by interoperator, but not directly listed in the bind template. This is similar to the postgresql example at https://github.com/cloudfoundry-incubator/service-fabrik-broker/blob/master/docs/Interoperator.md#sfplan where the secret seems created as a side effect of the postgresql resource being created, but is not listed in the provision or bind template. @anoopjb @vinaybheri would you confirm that a resource not listed in the |
A Secret resource (created as a side effect of a fluxcd2 Kustomization resource provisionned by the |
|
@Pooja-08 thanks for the follow up. I indeed observe that a secret created as a side effect of a resource created by interoperator (say |
Thank you for the proposal @gberche-orange 👍 |
Is your feature request related to a problem? Please describe.
As a service author
Describe the solution you'd like
A debug flag which enables saving in a temporary directory (say
/tmp/sf-rendered-templates
) the recently rendered templates, for instance with schemesf-service-instance-<service-instance-guid>-<value>.out
sf-service-instance-<service-instance-guid>-<template>.out
sf-service-binding-<service-binding-guid>-<value>.out
sf-service-binding-<service-binding-guid>-<template>.out
with template being one of: sources, status, provision, unprovision, bind, unbind
The files would be overriden by each reconciliation loop. This enables a service author to use a
watch cat sf-service-instance-<service-instance-guid>-<template>.out
to see the rendered changes following a gotemplate changeA periodic job could remove files older than a threshold, so that transient service instances (typically provisionned and unprovisionned by automated tests) would not fill up the file system.
Describe alternatives you've considered
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: