Skip to content

Commit

Permalink
fix(scalability): checking clusterName in cluster.name
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua Kurz committed Mar 3, 2023
1 parent 09468c8 commit bce8c04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hardeneks/cluster_wide/scalability/control_plane.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ def check_kubectl_compression(resources: Resources):
kubeconfig = helpers.get_kube_config()
isSetCorrectly = False
for cluster in kubeconfig.get("clusters", []):
clusterName = cluster.get("name", None)
if (clusterName == resources.cluster):
clusterName = cluster.get("name", "")
if (resources.cluster in clusterName):
if cluster.get("cluster", {}).get("disable-compression", False) != True:
console.print(
Panel(
Expand Down

0 comments on commit bce8c04

Please sign in to comment.