Fix empty gather logs due to script crash#33
Conversation
Signed-off-by: Oliver Gondža <ogondza@gmail.com>
… with readarray Signed-off-by: Oliver Gondža <ogondza@gmail.com>
|
@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 <ogondza@gmail.com>
|
Working on contributing a verification for this. For now, |
…ft.io Signed-off-by: Oliver Gondža <ogondza@gmail.com>
|
Alright, all fixed. The output can be compared with 1.16 using: Edit: Tag updated |
Signed-off-by: Oliver Gondža <ogondza@gmail.com>
Signed-off-by: Oliver Gondža <ogondza@gmail.com>
Signed-off-by: Oliver Gondža <ogondza@gmail.com>
|
/ok-to-test |
Signed-off-by: Oliver Gondža <ogondza@gmail.com>
|
/ok-to-test |
|
/lgtm |
|
/approve |
1 similar comment
|
/approve |
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.