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

kubelet's metric label name has been updated #540

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
2 changes: 1 addition & 1 deletion kube_hunter/modules/hunting/kubelet.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ def get_k8s_version(self):
if line.startswith("kubernetes_build_info"):
for info in line[line.find("{") + 1 : line.find("}")].split(","):
k, v = info.split("=")
if k == "gitVersion":
if k == "gitVersion" or k == "git_version":
return v.strip('"')

# returns list of tuples of Privileged container and their pod.
Expand Down