Skip to content

Commit f342dc0

Browse files
committed
Fixed failing Kubernetes tests after deny_all for experimental API
The tests were broken by apache#9611
1 parent fddc572 commit f342dc0

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

chart/templates/configmap.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,9 @@ data:
4242
remote_logging = True
4343
{{- end }}
4444

45+
[api]
46+
auth_backend = {{ .Values.api.authBackend }}
47+
4548
[logging]
4649
logging_level = DEBUG
4750
[webserver]

chart/values.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,3 +434,7 @@ postgresql:
434434
enabled: true
435435
postgresqlPassword: postgres
436436
postgresqlUsername: postgres
437+
438+
# Authentication backend used for the experimental API
439+
api:
440+
authBackend: airflow.api.auth.backend.deny_all

scripts/ci/libraries/_kind.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@ function deploy_airflow_with_helm() {
294294
--set "defaultAirflowRepository=${DOCKERHUB_USER}/${DOCKERHUB_REPO}" \
295295
--set "images.airflow.repository=${DOCKERHUB_USER}/${DOCKERHUB_REPO}" \
296296
--set "images.airflow.tag=${AIRFLOW_PROD_BASE_TAG}" -v 1 \
297-
--set "defaultAirflowTag=${AIRFLOW_PROD_BASE_TAG}" -v 1
297+
--set "defaultAirflowTag=${AIRFLOW_PROD_BASE_TAG}" -v 1 \
298+
--set "api.authBackend=airflow.api.auth.backend.default"
298299
echo
299300
popd || exit 1
300301
}

0 commit comments

Comments
 (0)