Modified kubectl-applogs plusing file and crlogs.py file #1374
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.
Fix #1372
Modified changes:
Removed
connections
parameter from the commandpython /$KUBEPLUS_HOME/plugins/crlogs.py $canonicalKind $instance $namespace $kubeconfig
in kubectl-applogs plugin file.Removed unnecessary code from
crlogs.py
file including the commented code and relation block for connections and composition.To be modified:
Further to look into the clogs.py file.
clogs.py
file contains two unused functions:-get_resources_composition
get_pods1
As per my understanding, we are not using relation block for connections and composition so the function
get_resources_composition
is unnecessary. Also, the functionget_pods1
is not being used from the beginning. I have crosschecked - these two functions are not being used in any other files.Please let me know on what should be done the these two functions. My suggestion would be - as we are not using these functions we shall remove it from the code base.