Skip to content

Commit

Permalink
Just define provider args in elastic-package stack up command
Browse files Browse the repository at this point in the history
  • Loading branch information
mrodm committed Aug 13, 2024
1 parent fc042f2 commit 6ed4ed8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion scripts/test-check-false-positives.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,14 @@ ELASTIC_PACKAGE_LINKS_FILE_PATH="$(pwd)/scripts/links_table.yml"
export ELASTIC_PACKAGE_LINKS_FILE_PATH

stack_args=$(stack_version_args) # --version <version>
stack_args="${stack_args} $(stack_provider_args)" # -U <setting=1,settings=2>

# Update the stack
elastic-package stack update -v ${stack_args}

# NOTE: if any provider argument is defined, the stack must be shutdown first to ensure
# that all parameters are taken into account by the services
stack_args="${stack_args} $(stack_provider_args)" # -U <setting=1,settings=2>

# Boot up the stack
elastic-package stack up -d -v ${stack_args}

Expand Down
6 changes: 4 additions & 2 deletions scripts/test-check-packages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,14 @@ fi
# at the beginning of the pipeline and must be running for all packages.
if [[ "${SERVERLESS}" != "true" ]]; then
stack_args=$(stack_version_args) # --version <version>
stack_args="${stack_args} $(stack_provider_args)" # -U <setting=1,settings=2>

echo "Stack Args: ${stack_args}"
# Update the stack
elastic-package stack update -v ${stack_args}

# NOTE: if any provider argument is defined, the stack must be shutdown first to ensure
# that all parameters are taken into account by the services
stack_args="${stack_args} $(stack_provider_args)" # -U <setting=1,settings=2>

# Boot up the stack
elastic-package stack up -d -v ${stack_args}

Expand Down

0 comments on commit 6ed4ed8

Please sign in to comment.