Skip to content
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

Update start_cerberus.py #135

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions start_cerberus.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ def main(cfg):
# Cluster info
logging.info("Fetching cluster info")
if distribution == "openshift":
cluster_version = runcommand.invoke("kubectl get clusterversion")
cluster_version = runcommand.invoke("oc get clusterversion")
logging.info("\n%s" % (cluster_version))
cluster_info = runcommand.invoke("kubectl cluster-info | awk 'NR==1' | sed -r "
cluster_info = runcommand.invoke("oc cluster-info | awk 'NR==1' | sed "
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@seanogor we might want to use kubectl here since cluster-info resource is common to both kubernetes as well openshift distributions. This way it works even when the distribution is set to kubernetes. Thoughts?

"'s/\x1B\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK]//g'") # noqa
logging.info("%s" % (cluster_info))

Expand Down