We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6b6f66 commit d63fe04Copy full SHA for d63fe04
airflow_kubernetes_job_operator/kube_api/config.py
@@ -126,7 +126,9 @@ def load_in_cluster():
126
127
configuration.host = loader.host
128
configuration.ssl_ca_cert = loader.ssl_ca_cert
129
- configuration.api_key["authorization"] = "bearer " + loader.token
+ configuration.api_key["authorization"] = (
130
+ loader.token if loader.token.lower().strip().startswith("bearer ") else "bearer " + loader.token
131
+ )
132
default_namespace_file = os.path.join(DEFAULT_SERVICE_ACCOUNT_PATH, "namespace")
133
if os.path.exists(default_namespace_file):
134
with open(default_namespace_file, "r") as raw:
0 commit comments