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

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new 2de7793  Adds mssql version parameter to Breeze (#17234)
2de7793 is described below

commit 2de7793881da0968dd357a54e8b2a99017891915
Author: Jarek Potiuk <[email protected]>
AuthorDate: Mon Jul 26 17:13:51 2021 +0200

    Adds mssql version parameter to Breeze (#17234)
---
 BREEZE.rst | 14 ++++++++++++--
 breeze     | 18 +++++++++++++++++-
 2 files changed, 29 insertions(+), 3 deletions(-)

diff --git a/BREEZE.rst b/BREEZE.rst
index 555a09b..9066365 100644
--- a/BREEZE.rst
+++ b/BREEZE.rst
@@ -1830,10 +1830,15 @@ This is the current syntax for  `./breeze <./breeze>`_:
                  9.6 10 11 12 13
 
   --mysql-version MYSQL_VERSION
-          Mysql version used. One of:
+          MySql version used. One of:
 
                  5.7 8
 
+  --mssql-version MSSQL_VERSION
+          MSSql version used. One of:
+
+                 2017-latest 2019-latest
+
   -v, --verbose
           Show verbose information about executed docker, kind, kubectl, helm 
commands. Useful for
           debugging - when you run breeze with --verbose flags you will be 
able to see the commands
@@ -2299,10 +2304,15 @@ This is the current syntax for  `./breeze <./breeze>`_:
                  9.6 10 11 12 13
 
   --mysql-version MYSQL_VERSION
-          Mysql version used. One of:
+          MySql version used. One of:
 
                  5.7 8
 
+  --mssql-version MSSQL_VERSION
+          MSSql version used. One of:
+
+                 2017-latest 2019-latest
+
   
****************************************************************************************************
    Enable production image
 
diff --git a/breeze b/breeze
index 60674b2..7aa4295 100755
--- a/breeze
+++ b/breeze
@@ -864,6 +864,12 @@ function breeze::parse_arguments() {
             echo
             shift 2
             ;;
+        --mssql-version)
+            export MSSQL_VERSION="${2}"
+            echo "MSSQL version: ${MSSQL_VERSION}"
+            echo
+            shift 2
+            ;;
         -l | --skip-mounting-local-sources)
             MOUNT_SELECTED_LOCAL_SOURCES="false"
             MOUNT_ALL_LOCAL_SOURCES="false"
@@ -1581,6 +1587,10 @@ function breeze::prepare_formatted_versions() {
         tr '\n' ' ' | fold -w "${indented_screen_width}" -s | sed 
"s/^/${list_prefix}/")
     readonly FORMATTED_MYSQL_VERSIONS
 
+    FORMATTED_MSSQL_VERSIONS=$(echo "${_breeze_allowed_mssql_versions=""}" |
+        tr '\n' ' ' | fold -w "${indented_screen_width}" -s | sed 
"s/^/${list_prefix}/")
+    readonly FORMATTED_MSSQL_VERSIONS
+
     FORMATTED_DEFAULT_CI_EXTRAS=$(echo "${DEFAULT_CI_EXTRAS=}" |
         tr ',' ' ' | fold -w "${indented_screen_width}" -s | sed "s/ /,/g; 
s/^/${list_prefix}/")
     readonly FORMATTED_DEFAULT_CI_EXTRAS
@@ -2258,9 +2268,15 @@ ${FORMATTED_BACKENDS}
 ${FORMATTED_POSTGRES_VERSIONS}
 
 --mysql-version MYSQL_VERSION
-        Mysql version used. One of:
+        MySql version used. One of:
 
 ${FORMATTED_MYSQL_VERSIONS}
+
+--mssql-version MSSQL_VERSION
+        MSSql version used. One of:
+
+${FORMATTED_MSSQL_VERSIONS}
+
 "
 }
 

Reply via email to