-
Notifications
You must be signed in to change notification settings - Fork 14
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
adding ability to log lines based on level of log output by plugin #102
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sseago
approved these changes
Apr 27, 2022
djzager
approved these changes
Apr 27, 2022
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.
Nice. Manual testing demonstrates more useful log messages in crane transform
:
$ ./crane transform --export-dir=export --transform-dir=transform
INFO[0000] resource file: EndpointSlice_guestbook_frontend-t758v.yaml creating whiteout file: /home/dzager/go/src/github.com/konveyor/crane/transform/resources/guestbook/.wh.EndpointSlice_guestbook_frontend-t758v.yaml
INFO[0000] resource file: EndpointSlice_guestbook_redis-master-c6zpm.yaml creating whiteout file: /home/dzager/go/src/github.com/konveyor/crane/transform/resources/guestbook/.wh.EndpointSlice_guestbook_redis-master-c6zpm.yaml
INFO[0000] resource file: EndpointSlice_guestbook_redis-slave-26pqd.yaml creating whiteout file: /home/dzager/go/src/github.com/konveyor/crane/transform/resources/guestbook/.wh.EndpointSlice_guestbook_redis-slave-26pqd.yaml
INFO[0000] resource file: Endpoints_guestbook_frontend.yaml creating whiteout file: /home/dzager/go/src/github.com/konveyor/crane/transform/resources/guestbook/.wh.Endpoints_guestbook_frontend.yaml
INFO[0000] resource file: Endpoints_guestbook_redis-master.yaml creating whiteout file: /home/dzager/go/src/github.com/konveyor/crane/transform/resources/guestbook/.wh.Endpoints_guestbook_redis-master.yaml
INFO[0000] resource file: Endpoints_guestbook_redis-slave.yaml creating whiteout file: /home/dzager/go/src/github.com/konveyor/crane/transform/resources/guestbook/.wh.Endpoints_guestbook_redis-slave.yaml
INFO[0000] Plugin: OpenShiftPlugin -- time="2022-04-27T13:23:21-04:00" level=info msg="found pod, processing update default pull secret" pluginPath=/home/dzager/go/src/github.com/konveyor/crane/plugins/managed/default/OpenShiftPlugin
INFO[0000] resource file: Pod_guestbook_frontend-6fdf9bc774-65c77.yaml creating whiteout file: /home/dzager/go/src/github.com/konveyor/crane/transform/resources/guestbook/.wh.Pod_guestbook_frontend-6fdf9bc774-65c77.yaml
INFO[0000] Plugin: OpenShiftPlugin -- time="2022-04-27T13:23:21-04:00" level=info msg="found pod, processing update default pull secret" pluginPath=/home/dzager/go/src/github.com/konveyor/crane/plugins/managed/default/OpenShiftPlugin
INFO[0000] resource file: Pod_guestbook_frontend-6fdf9bc774-8x5w8.yaml creating whiteout file: /home/dzager/go/src/github.com/konveyor/crane/transform/resources/guestbook/.wh.Pod_guestbook_frontend-6fdf9bc774-8x5w8.yaml
INFO[0000] Plugin: OpenShiftPlugin -- time="2022-04-27T13:23:21-04:00" level=info msg="found pod, processing update default pull secret" pluginPath=/home/dzager/go/src/github.com/konveyor/crane/plugins/managed/default/OpenShiftPlugin
INFO[0000] resource file: Pod_guestbook_frontend-6fdf9bc774-wlrzl.yaml creating whiteout file: /home/dzager/go/src/github.com/konveyor/crane/transform/resources/guestbook/.wh.Pod_guestbook_frontend-6fdf9bc774-wlrzl.yaml
INFO[0000] Plugin: OpenShiftPlugin -- time="2022-04-27T13:23:21-04:00" level=info msg="found pod, processing update default pull secret" pluginPath=/home/dzager/go/src/github.com/konveyor/crane/plugins/managed/default/OpenShiftPlugin
INFO[0000] resource file: Pod_guestbook_redis-master-5c65fc56c7-2x5fg.yaml creating whiteout file: /home/dzager/go/src/github.com/konveyor/crane/transform/resources/guestbook/.wh.Pod_guestbook_redis-master-5c65fc56c7-2x5fg.yaml
INFO[0000] Plugin: OpenShiftPlugin -- time="2022-04-27T13:23:21-04:00" level=info msg="found pod, processing update default pull secret" pluginPath=/home/dzager/go/src/github.com/konveyor/crane/plugins/managed/default/OpenShiftPlugin
INFO[0000] resource file: Pod_guestbook_redis-slave-5dfcb9cd65-9tdrb.yaml creating whiteout file: /home/dzager/go/src/github.com/konveyor/crane/transform/resources/guestbook/.wh.Pod_guestbook_redis-slave-5dfcb9cd65-9tdrb.yaml
INFO[0000] Plugin: OpenShiftPlugin -- time="2022-04-27T13:23:21-04:00" level=info msg="found pod, processing update default pull secret" pluginPath=/home/dzager/go/src/github.com/konveyor/crane/plugins/managed/default/OpenShiftPlugin
INFO[0000] resource file: Pod_guestbook_redis-slave-5dfcb9cd65-j6sgq.yaml creating whiteout file: /home/dzager/go/src/github.com/konveyor/crane/transform/resources/guestbook/.wh.Pod_guestbook_redis-slave-5dfcb9cd65-j6sgq.yaml
INFO[0000] resource file: ReplicaSet_guestbook_frontend-6fdf9bc774.yaml creating whiteout file: /home/dzager/go/src/github.com/konveyor/crane/transform/resources/guestbook/.wh.ReplicaSet_guestbook_frontend-6fdf9bc774.yaml
INFO[0000] resource file: ReplicaSet_guestbook_redis-master-5c65fc56c7.yaml creating whiteout file: /home/dzager/go/src/github.com/konveyor/crane/transform/resources/guestbook/.wh.ReplicaSet_guestbook_redis-master-5c65fc56c7.yaml
INFO[0000] resource file: ReplicaSet_guestbook_redis-slave-5dfcb9cd65.yaml creating whiteout file: /home/dzager/go/src/github.com/konveyor/crane/transform/resources/guestbook/.wh.ReplicaSet_guestbook_redis-slave-5dfcb9cd65.yaml
INFO[0000] Plugin: OpenShiftPlugin -- time="2022-04-27T13:23:21-04:00" level=info msg="found service account, processing" pluginPath=/home/dzager/go/src/github.com/konveyor/crane/plugins/managed/default/OpenShiftPlugin
INFO[0000] Plugin: OpenShiftPlugin -- time="2022-04-27T13:23:21-04:00" level=info msg="found service account, processing" pluginPath=/home/dzager/go/src/github.com/konveyor/crane/plugins/managed/default/OpenShiftPlugin
INFO[0000] Plugin: OpenShiftPlugin -- time="2022-04-27T13:23:21-04:00" level=info msg="found service account, processing" pluginPath=/home/dzager/go/src/github.com/konveyor/crane/plugins/managed/default/OpenShiftPlugin
JaydipGabani
approved these changes
Apr 28, 2022
/test all |
/test all |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fixe for migtools/crane#82