-
Notifications
You must be signed in to change notification settings - Fork 10
Fix empty gather logs due to script crash #33
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
Fix empty gather logs due to script crash #33
Conversation
Signed-off-by: Oliver Gondža <[email protected]>
… with readarray Signed-off-by: Oliver Gondža <[email protected]>
|
@olivergondza: The label(s) DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
Signed-off-by: Oliver Gondža <[email protected]>
|
Working on contributing a verification for this. For now, |
…ft.io Signed-off-by: Oliver Gondža <[email protected]>
|
Alright, all fixed. The output can be compared with 1.16 using: Edit: Tag updated |
Signed-off-by: Oliver Gondža <[email protected]>
|
|
||
| ```shell | ||
| chmod +x ./gather_gitops.sh | ||
| ./gather_gitops.sh --base-collection-path . |
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.
Does not work since #23.
Signed-off-by: Oliver Gondža <[email protected]>
Signed-off-by: Oliver Gondža <[email protected]>
|
/ok-to-test |
anandf
left a comment
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
Signed-off-by: Oliver Gondža <[email protected]>
|
/ok-to-test |
|
/lgtm |
|
/approve |
1 similar comment
|
/approve |
jannfis
left a comment
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
This is a regression form 1.17[1], works in 1.16. Script fails with
error: resource name may not be empty. This happens when the added quoting inoc get ... "$(xxx)" ...caused the argument is now empty instead of missing.[1] https://github.com/redhat-developer/gitops-must-gather/pull/31/files
What type of PR is this?
/kind bug
What does this PR do / why we need it:
Fixes the bug. Improved error reporting. Refactors the code so shellcheck can be happy. This also enabled removing following in the future:
# Getting non.existent.crd is a hack to avoid getting all available crds in the cluster in case there are no owned resources that do not contain "argoproj.io"Have you updated the necessary documentation?
Which issue(s) this PR fixes:
None
Test acceptance criteria:
How to test changes / Special notes to the reviewer:
This was verified by running locally and compared to the results of
oc adm must-gather --image=registry.redhat.io/openshift-gitops-1/must-gather-rhel8:v1.16.0.