Skip to content

Commit

Permalink
Fixing authentication because of oauth
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskuipers committed May 31, 2024
1 parent e1fbaf1 commit 84cdd46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/api/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,11 @@
def oc_login():
"""Login to the OpenShift cluster"""
kubeConfig = OCPLoginConfiguration(
api_key=settings.CLUSTER_API_KEY
# api_key=settings.CLUSTER_API_KEY
# ocp_username=settings.CLUSTER_USER,
# ocp_password=settings.CLUSTER_PASSWORD
)
kubeConfig.api_key = {"authorization": "Bearer " + settings.CLUSTER_API_KEY}
kubeConfig.host = settings.CLUSTER_URL
kubeConfig.verify_ssl = False

Expand Down

0 comments on commit 84cdd46

Please sign in to comment.