-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
Template service broker documentation and logging updates #14318
Template service broker documentation and logging updates #14318
Conversation
719f213
to
ee9ee8e
Compare
@@ -244,6 +287,9 @@ func (c *TemplateInstanceController) provision(templateInstance *templateapi.Tem | |||
return errs[0] | |||
} | |||
|
|||
// We add an OwnerReference to all objects we create - this is also needed | |||
// by the template service broker for cleanup. TODO: what about any objects | |||
// created by the templateinstance in other namespaces? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
great question :/
pkg/template/servicebroker/bind.go
Outdated
func (b *Broker) Bind(instanceID, bindingID string, breq *api.BindRequest) *api.Response { | ||
glog.V(4).Infof("Template service broker: Bind") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
print the instanceid and binding id?
func (b *Broker) Catalog() *api.Response { | ||
glog.V(4).Infof("Template service broker: Catalog") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe at least print the list of namespaces that it's fetching templates from. this will help when someone says "but it's not retrieving all my templates"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
have added this to the service broker startup log message - unless you really want it logged on every time a catalog call is made (and loglevel >= 4)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that's fine.
// TODO: currently the spec does not allow for user information to be | ||
// provided on Deprovision, so little authorization can be carried out. | ||
|
||
glog.V(4).Infof("Template service broker: Deprovision") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
print the instanceid
// TODO: currently the spec does not allow for user information to be | ||
// provided on LastOperation, so little authorization can be carried out. | ||
|
||
glog.V(4).Infof("Template service broker: LastOperation") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instance id
func (b *Broker) Provision(instanceID string, preq *api.ProvisionRequest) *api.Response { | ||
glog.V(4).Infof("Template service broker: Provision") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instanceid
pkg/template/servicebroker/unbind.go
Outdated
func (b *Broker) Unbind(instanceID, bindingID string) *api.Response { | ||
glog.V(4).Infof("Template service broker: Unbind") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instance/bindingid
couple nits related to what's being logged but mostly looks great. The readme is especially helpful imho. |
ee9ee8e
to
2593143
Compare
@bparees updated and pushed |
[merge][severity:bug] |
[Test]ing while waiting on the merge queue |
2593143
to
3b0f19f
Compare
rebased, please remerge |
Evaluated for origin test up to 3b0f19f |
continuous-integration/openshift-jenkins/test FAILURE (https://ci.openshift.redhat.com/jenkins/job/test_pull_request_origin/1791/) (Base Commit: a1dffba) |
flake #13980, please remerge |
[merge][severity:bug] |
1 similar comment
[merge][severity:bug] |
Evaluated for origin merge up to 3b0f19f |
continuous-integration/openshift-jenkins/merge SUCCESS (https://ci.openshift.redhat.com/jenkins/job/merge_pull_request_origin/829/) (Base Commit: 060f5e5) (Extended Tests: bug) (Image: devenv-rhel7_6280) |
Documentation and logging updates as a follow-up to #14216
@openshift/devex ptal