[stable/airflow] Service account not getting pushed to KubernetesExecutor
Describe the bug
The dagbag is having issues being filled because it is attempting to use a 'default' service account in the cluster.
Version of Helm and Kubernetes:
2.1.6 Helm / 1.15 Kubernetes
Which chart:
Airflow
What happened:
We are creating our own RBAC roles and then passing the stable airflow chart as a subchart. Create account flag is set to false, but we are supply a service account name. We are also supplying a worker_service_account, but when populating the dagbag it is using the 'default' service account, and not the one we are specifying.
What you expected to happen:
The service account we pass should be used in the executor that populates the dagbag.
How to reproduce it (as minimally and precisely as possible):
set RBAC creation to false, set serviceaccount creation to false, and supply a service account name.
Anything else we need to know:
We are utilizing Spinnaker with EKS; and are utilizing a service account in DAGs to pull secrets and configmaps for each DAG.
This is the last part of our airflow list_dags line. I am simply looking to specify the service account it uses, since it is now using the default account in the default namespace.
HTTP response headers: HTTPHeaderDict({'Audit-Id': '20e10932-ad73-4d41-bfc3-7b7922bfcda0', 'Content-Type': 'application/json', 'X-Content-Type-Options': 'nosniff', 'Date': 'Wed, 20 Nov 2019 00:55:00 GMT', 'Content-Length': '352'})
HTTP response body: {"kind":"Status","apiVersion":"v1","metadata":{},"status":"Failure","message":"configmaps \"snowflake-configmap\" is forbidden: User \"system:serviceaccount:default:default\" cannot get resource \"configmaps\" in API group \"\" in the namespace \"default\"","reason":"Forbidden","details":{"name":"snowflake-configmap","kind":"configmaps"},"code":403}
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any further update will cause the issue/pull request to no longer be considered stale. Thank you for your contributions.
This issue is being automatically closed due to inactivity.