Skip to content

Commit 094eca2

Browse files
committed
Add metrics overlay to smoke tests
Signed-off-by: Thomas Cooper <code@tomcooper.dev>
1 parent 90da429 commit 094eca2

6 files changed

Lines changed: 34 additions & 9 deletions

File tree

.github/actions/smoke-test/action.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ inputs:
99
overlay:
1010
description: 'Overlay name for component verification (matches .github/config/overlays/<name>.env)'
1111
required: false
12-
default: 'base'
12+
default: 'core'
1313

1414
runs:
1515
using: 'composite'
@@ -18,6 +18,7 @@ runs:
1818
shell: bash
1919
env:
2020
LOCAL_DIR: .
21+
OVERLAY: ${{ inputs.overlay }}
2122
TIMEOUT: ${{ inputs.timeout }}
2223
run: ./install.sh
2324

@@ -31,6 +32,7 @@ runs:
3132
shell: bash
3233
env:
3334
LOCAL_DIR: .
35+
OVERLAY: ${{ inputs.overlay }}
3436
TIMEOUT: ${{ inputs.timeout }}
3537
run: ./uninstall.sh
3638

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Components expected in the base (default) deployment.
2-
# Used by verify-install.sh, verify-uninstall.sh, and debug.sh.
1+
# Components expected in the core (default) deployment.
2+
# Used by verify-install.sh and debug.sh.
33
#
44
# Format:
55
# OPERATORS - "namespace:deployment" pairs (space-separated)
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Components expected in the metrics overlay deployment.
2+
# Used by verify-install.sh and debug.sh.
3+
#
4+
# Format:
5+
# OPERATORS - "namespace:deployment" pairs (space-separated)
6+
# CUSTOM_RESOURCES - "namespace:resource" pairs (space-separated)
7+
# NAMESPACES - namespaces to inspect on failure (space-separated)
8+
9+
OPERATORS="strimzi:strimzi-cluster-operator apicurio-registry:apicurio-registry-operator streamshub-console:streamshub-console-operator monitoring:prometheus-operator"
10+
CUSTOM_RESOURCES="kafka:kafka/dev-cluster apicurio-registry:apicurioregistry3/apicurio-registry streamshub-console:console.console.streamshub.github.com/streamshub-console monitoring:prometheus.monitoring.coreos.com/prometheus"
11+
NAMESPACES="strimzi kafka apicurio-registry streamshub-console monitoring"

.github/scripts/debug.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
# Reads component definitions from an overlay config file.
55
#
66
# Environment variables:
7-
# OVERLAY - overlay name (default: "base")
7+
# OVERLAY - overlay name (default: "core")
88
#
99

1010
set +e
1111

12-
OVERLAY="${OVERLAY:-base}"
12+
OVERLAY="${OVERLAY:-core}"
1313
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
1414
CONFIG_FILE="${SCRIPT_DIR}/../config/overlays/${OVERLAY}.env"
1515

.github/scripts/verify-install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
# Reads component definitions from an overlay config file.
55
#
66
# Environment variables:
7-
# OVERLAY - overlay name (default: "base")
7+
# OVERLAY - overlay name (default: "core")
88
# TIMEOUT - kubectl wait timeout (default: "600s")
99
#
1010

1111
set -euo pipefail
1212

13-
OVERLAY="${OVERLAY:-base}"
13+
OVERLAY="${OVERLAY:-core}"
1414
TIMEOUT="${TIMEOUT:-600s}"
1515
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
1616
CONFIG_FILE="${SCRIPT_DIR}/../config/overlays/${OVERLAY}.env"

.github/workflows/integration.yaml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,12 @@ on:
88

99
jobs:
1010
smoke-minikube:
11-
name: smoke-minikube
11+
name: smoke-minikube (${{ matrix.overlay }})
1212
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
overlay: [core, metrics]
1317
steps:
1418
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1519

@@ -24,10 +28,16 @@ jobs:
2428

2529
- name: Smoke test
2630
uses: ./.github/actions/smoke-test
31+
with:
32+
overlay: ${{ matrix.overlay }}
2733

2834
smoke-kind:
29-
name: smoke-kind
35+
name: smoke-kind (${{ matrix.overlay }})
3036
runs-on: ubuntu-latest
37+
strategy:
38+
fail-fast: false
39+
matrix:
40+
overlay: [core, metrics]
3141
steps:
3242
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3343

@@ -46,3 +56,5 @@ jobs:
4656
4757
- name: Smoke test
4858
uses: ./.github/actions/smoke-test
59+
with:
60+
overlay: ${{ matrix.overlay }}

0 commit comments

Comments
 (0)