RHsyseng / openshift-checks

A collection of scripts to check the health of an OpenShift cluster
53 stars 44 forks source link

adding new parameters (-k, -q) and some improvements in the code #99

Closed ptrnull closed 2 years ago

ptrnull commented 2 years ago

Added new parameters: Set the KUBECONFIG env var to /kubeconfig/file: $(basename "$0") -k /kubeconfig/file Set the mode to quiet and save the output to /tmp/output.file: $(basename "$0") -q /tmp/output.file

Added new function setup to run the initial oc commands (after exporting the KUBECONFIG if needed). Some vars renaming to uppercase as they are global.