We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62519b2 commit f1a8622Copy full SHA for f1a8622
src/codeflare_sdk/cluster/cluster.py
@@ -515,14 +515,14 @@ def from_k8_cluster_object(
515
else:
516
local_interactive = False
517
if "codeflare.dev/oauth" in rc["metadata"]["annotations"]:
518
- if rc["metadata"]["annotations"]["codeflare.dev/oauth"] == "True":
519
- openshift_oauth = True
+ openshift_oauth = (
+ rc["metadata"]["annotations"]["codeflare.dev/oauth"] == "True"
520
+ )
521
522
for container in rc["spec"]["headGroupSpec"]["template"]["spec"][
523
"containers"
524
]:
- if "oauth-proxy" in container["name"]:
525
+ openshift_oauth = "oauth-proxy" in container["name"]
526
machine_types = (
527
rc["metadata"]["labels"]["orderedinstance"].split("_")
528
if "orderedinstance" in rc["metadata"]["labels"]
0 commit comments