Skip to content

Commit b1cf9bc

Browse files
authored
e2e: upgrade: allow specifying the origin k8s version (#3397)
1 parent 2854136 commit b1cf9bc

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

.github/workflows/e2e-upgrade.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ on:
2222
description: CLI version to create a new cluster with. This has to be a released version, e.g., 'v2.1.3'.
2323
type: string
2424
required: true
25+
fromKubernetes:
26+
description: Kubernetes version for the origin cluster, empty for origin target's default version.
27+
type: string
28+
required: false
2529
gitRef:
2630
description: Ref to build upgrading CLI on, empty for HEAD.
2731
type: string
@@ -32,11 +36,11 @@ on:
3236
type: string
3337
required: false
3438
toKubernetes:
35-
description: Kubernetes version to target for the upgrade, empty for target's default version.
39+
description: Kubernetes version to target for the upgrade, empty for upgrade target's default version.
3640
type: string
3741
required: false
3842
toMicroservices:
39-
description: Microservice version to target for the upgrade, empty for target's default version.
43+
description: Microservice version to target for the upgrade, empty for upgrade target's default version.
4044
type: string
4145
required: false
4246
simulatedTargetVersion:
@@ -60,6 +64,10 @@ on:
6064
description: CLI version to create a new cluster with. This has to be a released version, e.g., 'v2.1.3'.
6165
type: string
6266
required: true
67+
fromKubernetes:
68+
description: Kubernetes version for the origin cluster, empty for origin target's default version.
69+
type: string
70+
required: false
6371
gitRef:
6472
description: Ref to build upgrading CLI on.
6573
type: string
@@ -215,6 +223,7 @@ jobs:
215223
osImage: ${{ inputs.fromVersion }}
216224
isDebugImage: "false"
217225
cliVersion: ${{ inputs.fromVersion }}
226+
kubernetesVersion: ${{ inputs.fromKubernetes }}
218227
regionZone: ${{ inputs.regionZone }}
219228
gcpProject: constellation-e2e
220229
gcpClusterCreateServiceAccount: "infrastructure-e2e@constellation-e2e.iam.gserviceaccount.com"

0 commit comments

Comments
 (0)