Repository navigation
fix(tools): describe the requested runtime in the diagnose scripts - #6292
Open
rida-ghreizy wants to merge 1 commit into
Open
rida-ghreizy wants to merge 1 commit into
rida-ghreizy wants to merge 1 commit into
Conversation
kubectl_resource in the alluxio, curvine, jindo and juicefs diagnose
scripts passes ${name}, which is never set, instead of ${runtime_name}.
kubectl then describes every runtime of that kind in the namespace and
writes them all to <kind>runtime-<name>.yaml.
Signed-off-by: rida <ghreizyrida1@gmail.com>
|
This file contains hidden or 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
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.



Ⅰ. Describe what this PR does
kubectl_resourceintools/diagnose-fluid-{alluxio,curvine,jindo,juicefs}.shdescribes the runtime with${name}, a variable these scripts never set:With
${name}empty, kubectl describes every runtime of that kind in the namespace, and the archive's<kind>runtime-<name>.yamlholds all of them instead of the runtime passed with-r. This uses${runtime_name}, like the dataset, PV and PVC lines just next to it.Ⅱ. Does this pull request fix one issue?
NONE
Ⅲ. List the added test cases (unit test/integration test) if any, please explain if no tests are needed.
None: the scripts have no test harness. Checked by hand with a
kubectlstub, below.Ⅳ. Describe how to verify it
Put a
kubectlstub that logs its arguments first onPATH, then runbash tools/diagnose-fluid-<runtime>.sh collect -r demo -n ns1for each script:kubectl describe alluxioruntime --namespace ns1kubectl describe alluxioruntime --namespace ns1 demokubectl describe cacheruntime --namespace ns1kubectl describe cacheruntime --namespace ns1 demokubectl describe jindoruntime --namespace ns1kubectl describe jindoruntime --namespace ns1 demokubectl describe juicefsruntime --namespace ns1kubectl describe juicefsruntime --namespace ns1 demobash -npasses for all four scripts.Ⅴ. Special notes for reviews
#5671 also edits these scripts but does not touch this line.