Skip to content

Commit d2ab158

Browse files
committed
removed duplicated logic in helm.py
1 parent a660f4e commit d2ab158

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

hubploy/helm.py

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -223,16 +223,11 @@ def deploy(
223223
"Activating cluster credentials for deployment "
224224
+ f"{deployment} and performing deployment upgrade."
225225
)
226-
# Only the keyed gcloud path changes the machine's active login, so it
227-
# is the only one with anything to revert.
228226
provider = config.get("cluster", {}).get("provider")
229227
gcloud_key_auth = provider == "gcloud" and encrypted_key
230-
if gcloud_key_auth:
231-
current_login = stack.enter_context(
232-
cluster_auth(deployment, debug, verbose, encrypted_key)
233-
)
234-
else:
235-
stack.enter_context(cluster_auth(deployment, debug, verbose, encrypted_key))
228+
current_login = stack.enter_context(
229+
cluster_auth(deployment, debug, verbose, encrypted_key)
230+
)
236231
helm_upgrade(
237232
name,
238233
namespace,

0 commit comments

Comments
 (0)