-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Documents operator-lib PR #100. #5515
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
Conversation
looks like you forgot to sign your commit |
Done |
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.
/lgtm
if x.GVK.Kind == PodKind { | ||
req := cfg.Clientset.CoreV1().Pods(x.Namespace).GetLogs(x.Name, &v1.PodLogOptions{}) | ||
func myhook(cfg Config, res ResourceInfo) error { | ||
log.V(4).Info("pre-deletion", "GVK", res.GVK, "namespace", res.Namespace, "name", res.Name) |
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.
should we not update here to use the log from the context either
@fgiloux ?
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.
@camilamacedo86 as soon as the code fix has been merged I will update this doc PR. There are a couple of places that would need to be changed to align to the current version of the code fix and this is one of them.
log could not be set as it was unexported. Signed-off-by: Frederic Giloux <[email protected]>
New changes are detected. LGTM label has been removed. |
Doc updated to align with the modifications of the code PR |
I think it address all comments/suggestions made so far |
…#5515) log could not be set as it was unexported. Signed-off-by: Frederic Giloux <[email protected]> Signed-off-by: Prashant Arya <[email protected]>
…#5515) log could not be set as it was unexported. Signed-off-by: Frederic Giloux <[email protected]> Signed-off-by: Prashant Arya <[email protected]>
Description of the change:
The log field could not be set as it was unexported. The log strategy also needed to be aligned with the rest of the library.
operator-lib PR #100
Motivation for the change:
It was not usable as it was and the documentation needs to reflect the implementation change
Checklist
If the pull request includes user-facing changes, extra documentation is required:
changelog/fragments
(seechangelog/fragments/00-template.yaml
)website/content/en/docs