Skip to content

Commit a8d5cfb

Browse files
[updatecli] Update 7.x snapshot to 7.17.28-SNAPSHOT (#2357)
* 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 <[email protected]>
1 parent 1865191 commit a8d5cfb

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ test-stack-command-oldest:
6666
./scripts/test-stack-command.sh 7.14.2
6767

6868
test-stack-command-7x:
69-
./scripts/test-stack-command.sh 7.17.27-SNAPSHOT
69+
./scripts/test-stack-command.sh 7.17.28-SNAPSHOT
7070

7171
# Keeping a test for 8.6 because it has an specific configuration file.
7272
test-stack-command-86:

scripts/test-stack-command.sh

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,14 @@ mkdir -p "${OUTPUT_PATH_STATUS}"
7777
elastic-package stack status 2> "${OUTPUT_PATH_STATUS}/initial.txt"
7878
grep "\- No service running" "${OUTPUT_PATH_STATUS}/initial.txt"
7979

80+
EXPECTED_AGENT_VERSION="${EXPECTED_VERSION}"
81+
if [[ "${EXPECTED_VERSION}" =~ ^7\.17 ]] ; then
82+
# Required starting with STACK_VERSION 7.17.21
83+
export ELASTIC_AGENT_IMAGE_REF_OVERRIDE="docker.elastic.co/beats/elastic-agent-complete:${EXPECTED_VERSION}-amd64"
84+
EXPECTED_AGENT_VERSION="${EXPECTED_VERSION}-amd64"
85+
echo "Override elastic-agent docker image: ${ELASTIC_AGENT_IMAGE_REF_OVERRIDE}"
86+
fi
87+
8088
# Update the stack
8189
elastic-package stack update -v ${ARG_VERSION}
8290

@@ -93,9 +101,9 @@ Status of Elastic stack services:
93101
╭──────────────────┬─────────┬───────────────────╮
94102
│ SERVICE │ VERSION │ STATUS │
95103
├──────────────────┼─────────┼───────────────────┤
96-
│ elastic-agent │ ${EXPECTED_VERSION} │ running (healthy) │
104+
│ elastic-agent │ ${EXPECTED_AGENT_VERSION} │ running (healthy) │
97105
│ elasticsearch │ ${EXPECTED_VERSION} │ running (healthy) │
98-
│ fleet-server │ ${EXPECTED_VERSION} │ running (healthy) │
106+
│ fleet-server │ ${EXPECTED_AGENT_VERSION} │ running (healthy) │
99107
│ kibana │ ${EXPECTED_VERSION} │ running (healthy) │
100108
│ package-registry │ latest │ running (healthy) │
101109
╰──────────────────┴─────────┴───────────────────╯

0 commit comments

Comments
 (0)