You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by ka...@apache.org on 2021/01/21 20:19:28 UTC

[airflow] 03/44: Adds --no-rbac-ui flag for Breeze airflow 1.10 installation (#11315)

This is an automated email from the ASF dual-hosted git repository.

kaxilnaik pushed a commit to branch v1-10-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 201e963219ca6dc5d12fbd6a9878f9685748d00d
Author: Jarek Potiuk <ja...@polidea.com>
AuthorDate: Wed Oct 7 02:00:00 2020 +0200

    Adds --no-rbac-ui flag for Breeze airflow 1.10 installation (#11315)
    
    When installing airflow 1.10 via breeze we now enable rbac
    by default, but we can disable it with --no-rbac-ui flag.
    
    This is useful to test different variants of 1.10 when testing
    release candidataes in connection with the 'start-airflow'
    command.
    
    (cherry picked from commit 22c6a843d760d920f329fc97aa55f45d82682ab9)
    (cherry picked from commit ba6bb8bf3b20d5e2684b0e1a775e2cc9fba33768)
    (cherry picked from commit e9940ab34e715593a2fcaf912fb6ba43605388fb)
---
 scripts/ci/libraries/_docker.env      | 1 +
 scripts/in_container/entrypoint_ci.sh | 2 ++
 2 files changed, 3 insertions(+)

diff --git a/scripts/ci/libraries/_docker.env b/scripts/ci/libraries/_docker.env
index 3290f20..6bc53dc 100644
--- a/scripts/ci/libraries/_docker.env
+++ b/scripts/ci/libraries/_docker.env
@@ -35,3 +35,4 @@ DEFAULT_CONSTRAINTS_BRANCH
 GITHUB_REGISTRY_PULL_IMAGE_TAG
 POSTGRES_VERSION
 MYSQL_VERSION
+DISABLE_RBAC
diff --git a/scripts/in_container/entrypoint_ci.sh b/scripts/in_container/entrypoint_ci.sh
index 057d630..a645922 100755
--- a/scripts/in_container/entrypoint_ci.sh
+++ b/scripts/in_container/entrypoint_ci.sh
@@ -117,6 +117,8 @@ unset AIRFLOW__CORE__UNIT_TEST_MODE
 mkdir -pv "${AIRFLOW_HOME}/logs/"
 cp -f "${IN_CONTAINER_DIR}/airflow_ci.cfg" "${AIRFLOW_HOME}/unittests.cfg"
 
+disable_rbac_if_requested
+
 set +e
 "${IN_CONTAINER_DIR}/check_environment.sh"
 ENVIRONMENT_EXIT_CODE=$?