Skip to content

Documents operator-lib PR #100.#5515

Merged
camilamacedo86 merged 1 commit intooperator-framework:masterfrom
fgiloux:master
Mar 30, 2022
Merged

Documents operator-lib PR #100.#5515
camilamacedo86 merged 1 commit intooperator-framework:masterfrom
fgiloux:master

Conversation

@fgiloux
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

fgiloux commented Jan 25, 2022

cc @camilamacedo86

@jberkhahn
Copy link
Copy Markdown
Contributor

looks like you forgot to sign your commit

@fgiloux
Copy link
Copy Markdown
Contributor Author

fgiloux commented Jan 26, 2022

looks like you forgot to sign your commit

Done

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 <fgiloux@redhat.com>
@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
Copy Markdown

openshift-ci Bot commented Mar 30, 2022

New changes are detected. LGTM label has been removed.

@fgiloux
Copy link
Copy Markdown
Contributor Author

fgiloux commented Mar 30, 2022

Doc updated to align with the modifications of the code PR

@camilamacedo86
Copy link
Copy Markdown
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 <fgiloux@redhat.com>
Signed-off-by: Prashant Arya <prary2@gmail.com>
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 <fgiloux@redhat.com>
Signed-off-by: Prashant Arya <prary2@gmail.com>
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