Skip to content

Commit

Permalink
[updatecli] Update 7.x snapshot to 7.17.28-SNAPSHOT (#2357)
Browse files Browse the repository at this point in the history
* chore: [updatecli] Update 7.x snapshot to 7.17.28-SNAPSHOT
* Override elastic-agent image for 7.17 stack version

Made with ❤️️ by updatecli

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Mario Rodriguez Molins <mario.rodriguez@elastic.co>
  • Loading branch information
github-actions[bot] and mrodm authored Jan 20, 2025
1 parent 1865191 commit a8d5cfb
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ test-stack-command-oldest:
./scripts/test-stack-command.sh 7.14.2

test-stack-command-7x:
./scripts/test-stack-command.sh 7.17.27-SNAPSHOT
./scripts/test-stack-command.sh 7.17.28-SNAPSHOT

# Keeping a test for 8.6 because it has an specific configuration file.
test-stack-command-86:
Expand Down
12 changes: 10 additions & 2 deletions scripts/test-stack-command.sh
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,14 @@ mkdir -p "${OUTPUT_PATH_STATUS}"
elastic-package stack status 2> "${OUTPUT_PATH_STATUS}/initial.txt"
grep "\- No service running" "${OUTPUT_PATH_STATUS}/initial.txt"

EXPECTED_AGENT_VERSION="${EXPECTED_VERSION}"
if [[ "${EXPECTED_VERSION}" =~ ^7\.17 ]] ; then
# Required starting with STACK_VERSION 7.17.21
export ELASTIC_AGENT_IMAGE_REF_OVERRIDE="docker.elastic.co/beats/elastic-agent-complete:${EXPECTED_VERSION}-amd64"
EXPECTED_AGENT_VERSION="${EXPECTED_VERSION}-amd64"
echo "Override elastic-agent docker image: ${ELASTIC_AGENT_IMAGE_REF_OVERRIDE}"
fi

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

Expand All @@ -93,9 +101,9 @@ Status of Elastic stack services:
╭──────────────────┬─────────┬───────────────────╮
│ SERVICE │ VERSION │ STATUS │
├──────────────────┼─────────┼───────────────────┤
│ elastic-agent │ ${EXPECTED_VERSION} │ running (healthy) │
│ elastic-agent │ ${EXPECTED_AGENT_VERSION} │ running (healthy) │
│ elasticsearch │ ${EXPECTED_VERSION} │ running (healthy) │
│ fleet-server │ ${EXPECTED_VERSION} │ running (healthy) │
│ fleet-server │ ${EXPECTED_AGENT_VERSION} │ running (healthy) │
│ kibana │ ${EXPECTED_VERSION} │ running (healthy) │
│ package-registry │ latest │ running (healthy) │
╰──────────────────┴─────────┴───────────────────╯
Expand Down

0 comments on commit a8d5cfb

Please sign in to comment.