You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/03/27 23:02:25 UTC
[GitHub] [airflow] dszakallas commented on issue #22560: KubernetesExecutor does not work with kubelogin exec authentication
dszakallas commented on issue #22560:
URL: https://github.com/apache/airflow/issues/22560#issuecomment-1080038043
I did a bit more of debugging, it seems that the error is not specific to kubelogin. I am renaming the ticket as it has little to do with kubelogin and Azure.
I found this in the logs:
```
{{refresh_config.py:73}} ERROR - __init__() missing 1 required positional argument: 'cwd'
```
Changing
https://github.com/apache/airflow/blob/ee9049c0566b2539a247687de05f9cffa008f871/airflow/kubernetes/refresh_config.py#L61
to
```python
status = ExecProvider(self._user['exec'], os.getcwd()).run()
```
resolves the issue.
I am using the following version of `kubernetes`:
```
kubernetes 23.3.0
```
Here's the relevant diff in the upstream:
https://github.com/kubernetes-client/python/commit/1c5bf586f0882c81c03181588830887345703ca5
So it seems like this API breaks in [v22.6.0](https://github.com/kubernetes-client/python/releases/tag/v22.6.0).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org