Skip to content

Commit e7d762f

Browse files
committed
Merge remote-tracking branch 'origin/main' into k0s-1-29
2 parents 09988e6 + fed6d6e commit e7d762f

File tree

9 files changed

+22
-27
lines changed

9 files changed

+22
-27
lines changed

.github/workflows/distros.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- 'dev/distros/**'
77
branches:
88
- main
9+
workflow_dispatch: {}
910

1011
concurrency:
1112
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

.github/workflows/release-prod.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -276,19 +276,19 @@ jobs:
276276
USES_DEV_BUCKET: "0"
277277
run: |
278278
# re-promote a release containing an old version of embedded-cluster to test upgrades
279-
export APP_VERSION="appver-${{ needs.get-tag.outputs.tag-name }}-1.8.0-k8s-1.28"
279+
export APP_VERSION="appver-${{ github.ref_name }}-1.8.0-k8s-1.28"
280280
replicated release promote 11615 2cHXb1RCttzpR0xvnNWyaZCgDBP --version "${APP_VERSION}"
281281
replicated release promote 11615 2eAqMYG1IEtX8cwpaO1kgNV6EB3 --version "${APP_VERSION}"
282282
283283
# install the current k0s version
284-
export EC_VERSION="${{ needs.get-tag.outputs.tag-name }}"
285-
export APP_VERSION="appver-${{ needs.get-tag.outputs.tag-name }}"
284+
export EC_VERSION="${{ github.ref_name }}"
285+
export APP_VERSION="appver-${{ github.ref_name }}"
286286
export RELEASE_YAML_DIR=e2e/kots-release-install
287287
./scripts/ci-release-app.sh
288288
289289
# and finally an app upgrade
290-
export EC_VERSION="${{ needs.get-tag.outputs.tag-name }}"
291-
export APP_VERSION="appver-${{ needs.get-tag.outputs.tag-name }}-upgrade"
290+
export EC_VERSION="${{ github.ref_name }}"
291+
export APP_VERSION="appver-${{ github.ref_name }}-upgrade"
292292
export RELEASE_YAML_DIR=e2e/kots-release-upgrade
293293
./scripts/ci-release-app.sh
294294
- name: Create airgap releases
@@ -301,22 +301,22 @@ jobs:
301301
run: |
302302
# promote a release containing the previous stable version of embedded-cluster to test upgrades
303303
export EC_VERSION="${{ needs.find-previous-stable.outputs.ec_version }}"
304-
export APP_VERSION="appver-${{ needs.get-tag.outputs.tag-name }}-previous-stable"
304+
export APP_VERSION="appver-${{ github.ref_name }}-previous-stable"
305305
export RELEASE_YAML_DIR=e2e/kots-release-install-stable
306306
./scripts/ci-release-app.sh
307307
# promote a release with the current k0s version, but call it the previous version to test noop upgrades
308-
export EC_VERSION="${{ needs.get-tag.outputs.tag-name }}"
309-
export APP_VERSION="appver-${{ needs.get-tag.outputs.tag-name }}-previous-k0s"
308+
export EC_VERSION="${{ github.ref_name }}"
309+
export APP_VERSION="appver-${{ github.ref_name }}-previous-k0s"
310310
export RELEASE_YAML_DIR=e2e/kots-release-install
311311
./scripts/ci-release-app.sh
312312
# promote a release with the current k0s version
313-
export EC_VERSION="${{ needs.get-tag.outputs.tag-name }}"
314-
export APP_VERSION="appver-${{ needs.get-tag.outputs.tag-name }}"
313+
export EC_VERSION="${{ github.ref_name }}"
314+
export APP_VERSION="appver-${{ github.ref_name }}"
315315
export RELEASE_YAML_DIR=e2e/kots-release-install
316316
./scripts/ci-release-app.sh
317317
# and finally an app upgrade
318-
export EC_VERSION="${{ needs.get-tag.outputs.tag-name }}"
319-
export APP_VERSION="appver-${{ needs.get-tag.outputs.tag-name }}-upgrade"
318+
export EC_VERSION="${{ github.ref_name }}"
319+
export APP_VERSION="appver-${{ github.ref_name }}-upgrade"
320320
export RELEASE_YAML_DIR=e2e/kots-release-upgrade
321321
./scripts/ci-release-app.sh
322322
@@ -331,7 +331,7 @@ jobs:
331331
env:
332332
LICENSE_ID: ${{ secrets.STAGING_EMBEDDED_CLUSTER_LICENSE_ID }}
333333
run: |
334-
export APP_VERSION="appver-${{ needs.get-tag.outputs.tag-name }}"
334+
export APP_VERSION="appver-${{ github.ref_name }}"
335335
curl -L "https://ec-e2e-replicated-app.testcluster.net/embedded/embedded-cluster-smoke-test-staging-app/ci/${APP_VERSION}" -H "Authorization: $LICENSE_ID" -o embedded-cluster-smoke-test-staging-app-ci.tgz
336336
tar -xzf embedded-cluster-smoke-test-staging-app-ci.tgz
337337
mv embedded-cluster-smoke-test-staging-app embedded-cluster
@@ -393,12 +393,12 @@ jobs:
393393
license: ${{ secrets.STAGING_EMBEDDED_CLUSTER_LICENSE }}
394394
dr-aws-access-key-id: ${{ secrets.TESTIM_AWS_ACCESS_KEY_ID }}
395395
dr-aws-secret-access-key: ${{ secrets.TESTIM_AWS_SECRET_ACCESS_KEY }}
396-
version-specifier: ${{ needs.get-tag.outputs.tag-name }}
396+
version-specifier: ${{ github.ref_name }}
397397

398398
k0s-version: ${{ needs.get-tag.outputs.k0s_version }}
399399
k0s-version-previous: ${{ needs.get-tag.outputs.k0s_version }} # we do not run k8s upgrade tests on release
400400
k0s-version-previous-stable: ${{ needs.find-previous-stable.outputs.k0s_version }}
401-
upgrade-target-ec-version: ${{ needs.get-tag.outputs.tag-name }}
401+
upgrade-target-ec-version: ${{ github.ref_name }}
402402

403403
# this job will validate that all the tests passed
404404
validate-release-success:

dev/distros/dockerfiles/almalinux-8.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ RUN dnf install -y \
1111
ca-certificates \
1212
bash \
1313
coreutils \
14+
binutils \
1415
curl \
1516
procps-ng \
1617
ipvsadm \

dev/distros/dockerfiles/centos-9.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ RUN dnf install -y \
1111
ca-certificates \
1212
bash \
1313
coreutils \
14+
binutils \
1415
curl \
1516
procps-ng \
1617
ipvsadm \

dev/distros/dockerfiles/debian-bookworm.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ RUN apt-get update && apt-get install -y \
88
ca-certificates \
99
bash \
1010
coreutils \
11+
binutils \
1112
curl \
1213
inotify-tools \
1314
ipvsadm \

dev/distros/dockerfiles/debian-bullseye.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ RUN apt-get update && apt-get install -y \
88
ca-certificates \
99
bash \
1010
coreutils \
11+
binutils \
1112
curl \
1213
inotify-tools \
1314
ipvsadm \

dev/distros/dockerfiles/ubuntu-jammy.Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ RUN apt-get update && apt-get install -y \
88
ca-certificates \
99
bash \
1010
coreutils \
11+
binutils \
1112
curl \
1213
inotify-tools \
1314
ipvsadm \

e2e/install_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ func TestHostPreflightCustomSpec(t *testing.T) {
291291
defer tc.Cleanup()
292292

293293
t.Logf("%s: installing test dependencies on node 0", time.Now().Format(time.RFC3339))
294-
line := []string{"yum", "install", "-y", "binutils", "fio"}
294+
line := []string{"yum", "install", "-y", "fio"}
295295
if stdout, stderr, err := tc.RunCommandOnNode(0, line); err != nil {
296296
t.Fatalf("fail to install dependencies on node 0: %v: %s: %s", err, stdout, stderr)
297297
}

e2e/unsupported-overrides_test.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,6 @@ func TestUnsupportedOverrides(t *testing.T) {
2020
})
2121
defer tc.Cleanup()
2222

23-
t.Logf("%s: installing dependencies on node 0", time.Now().Format(time.RFC3339))
24-
commands := [][]string{
25-
{"apt-get", "update", "-y"},
26-
{"apt-get", "install", "binutils", "-y"},
27-
}
28-
for _, cmd := range commands {
29-
if stdout, stderr, err := tc.RunCommandOnNode(0, cmd); err != nil {
30-
t.Fatalf("fail to run command %q: %v: %s: %s", cmd, err, stdout, stderr)
31-
}
32-
}
33-
3423
t.Logf("%s: installing embedded-cluster with unsupported overrides on node 0", time.Now().Format(time.RFC3339))
3524
line := []string{"unsupported-overrides.sh"}
3625
if stdout, stderr, err := tc.RunCommandOnNode(0, line); err != nil {

0 commit comments

Comments
 (0)