Skip to content

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

Merged
merged 1 commit into from
Mar 30, 2022

Conversation

fgiloux
Copy link
Contributor

@fgiloux fgiloux commented Jan 25, 2022

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:

@openshift-ci openshift-ci bot requested review from asmacdo and jmrodri January 25, 2022 06:33
@fgiloux
Copy link
Contributor Author

fgiloux commented Jan 25, 2022

cc @camilamacedo86

@jberkhahn
Copy link
Contributor

looks like you forgot to sign your commit

@fgiloux
Copy link
Contributor Author

fgiloux commented Jan 26, 2022

looks like you forgot to sign your commit

Done

Copy link
Contributor

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Mar 19, 2022
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)
Copy link
Contributor

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 ?

Copy link
Contributor Author

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]>
@openshift-ci openshift-ci bot removed the lgtm Indicates that a PR is ready to be merged. label Mar 30, 2022
@openshift-ci
Copy link

openshift-ci bot commented Mar 30, 2022

New changes are detected. LGTM label has been removed.

@fgiloux
Copy link
Contributor Author

fgiloux commented Mar 30, 2022

Doc updated to align with the modifications of the code PR

@camilamacedo86
Copy link
Contributor

I think it address all comments/suggestions made so far
So, we are ok to move forward.
Anyway, please feel free to raise issues or contact us if you see any hall for improvements.

@camilamacedo86 camilamacedo86 merged commit 472b451 into operator-framework:master Mar 30, 2022
prary pushed a commit to prary/operator-sdk that referenced this pull request Apr 2, 2022
…#5515)

log could not be set as it was unexported.

Signed-off-by: Frederic Giloux <[email protected]>
Signed-off-by: Prashant Arya <[email protected]>
prary pushed a commit to prary/operator-sdk that referenced this pull request Apr 2, 2022
…#5515)

log could not be set as it was unexported.

Signed-off-by: Frederic Giloux <[email protected]>
Signed-off-by: Prashant Arya <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants