Skip to content

Commit 54532d1

Browse files
authored
feat(version): add 3.5.0 to the upgrade matrix (#163)
* feat(version): add 3.5.0 to the upgrade matrix Signed-off-by: Niladri Halder <[email protected]> * fix(ci): fix docker/metadata-action syntax for release.yml Signed-off-by: Niladri Halder <[email protected]> * fix(ci): downgrade kubernetes version for migration-e2e Signed-off-by: Niladri Halder <[email protected]> * feat(ci): update starting version for the upgrade tests Signed-off-by: Niladri Halder <[email protected]> * feat(ci): update migration CRD Signed-off-by: Niladri Halder <[email protected]> * feat(ci): update actions/checkout to v4 Signed-off-by: Niladri Halder <[email protected]> * chore(dep): update github.com/openebs/api/v3 module to v3.0.4 Signed-off-by: Niladri Halder <[email protected]> * fix(ci): fix typo in openebs-operator.yaml URL Signed-off-by: Niladri Halder <[email protected]> * fix(ci): downgrade k8s version for migration-e2e Signed-off-by: Niladri Halder <[email protected]> * fix(ci/upgrade): reintroduce ndm-operator Signed-off-by: Niladri Halder <[email protected]> --------- Signed-off-by: Niladri Halder <[email protected]>
1 parent ad4482f commit 54532d1

36 files changed

+1990
-648
lines changed

.github/workflows/build.yml

+9-8
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
runs-on: ubuntu-latest
3434
steps:
3535
- name: Checkout
36-
uses: actions/checkout@v3
36+
uses: actions/checkout@v4
3737

3838
- name: Shellcheck
3939
uses: reviewdog/action-shellcheck@v1
@@ -49,7 +49,7 @@ jobs:
4949
needs: ['lint','upgrade-e2e']
5050
steps:
5151
- name: Checkout
52-
uses: actions/checkout@v3
52+
uses: actions/checkout@v4
5353

5454
- name: Set Image Org
5555
# sets the default IMAGE_ORG to openebs
@@ -141,7 +141,7 @@ jobs:
141141
needs: ['lint', 'migration-e2e']
142142
steps:
143143
- name: Checkout
144-
uses: actions/checkout@v3
144+
uses: actions/checkout@v4
145145

146146
- name: Set Image Org
147147
# sets the default IMAGE_ORG to openebs
@@ -242,7 +242,7 @@ jobs:
242242
id: go
243243

244244
- name: Check out code into the Go module directory
245-
uses: actions/checkout@v3
245+
uses: actions/checkout@v4
246246

247247
- name: verify license
248248
run: make check-license
@@ -259,10 +259,10 @@ jobs:
259259
strategy:
260260
fail-fast: true
261261
matrix:
262-
kubernetes: [v1.27.3]
262+
kubernetes: [v1.21.14]
263263
steps:
264264
- name: Checkout
265-
uses: actions/checkout@v3
265+
uses: actions/checkout@v4
266266

267267
- name: Setup Minikube-Kubernetes
268268
uses: medyagh/setup-minikube@latest
@@ -295,9 +295,10 @@ jobs:
295295
fail-fast: true
296296
matrix:
297297
engine: [cstor, jiva]
298+
kubernetes: [v1.27.3]
298299
steps:
299300
- name: Checkout
300-
uses: actions/checkout@v3
301+
uses: actions/checkout@v4
301302

302303
- name: Setup Minikube-Kubernetes
303304
uses: medyagh/setup-minikube@latest
@@ -349,7 +350,7 @@ jobs:
349350
needs: ['unit-tests']
350351
steps:
351352
- name: Checkout
352-
uses: actions/checkout@v3
353+
uses: actions/checkout@v4
353354

354355
- name: Set Image Org
355356
# sets the default IMAGE_ORG to openebs

.github/workflows/pull_request.yml

+8-7
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
runs-on: ubuntu-latest
3333
steps:
3434
- name: Checkout
35-
uses: actions/checkout@v3
35+
uses: actions/checkout@v4
3636

3737
- name: Shellcheck
3838
uses: reviewdog/action-shellcheck@v1
@@ -48,7 +48,7 @@ jobs:
4848
needs: ['lint']
4949
steps:
5050
- name: Checkout
51-
uses: actions/checkout@v3
51+
uses: actions/checkout@v4
5252

5353
- name: Set up QEMU
5454
uses: docker/setup-qemu-action@v2
@@ -76,7 +76,7 @@ jobs:
7676
needs: ['lint']
7777
steps:
7878
- name: Checkout
79-
uses: actions/checkout@v3
79+
uses: actions/checkout@v4
8080

8181
- name: Set up QEMU
8282
uses: docker/setup-qemu-action@v2
@@ -111,7 +111,7 @@ jobs:
111111
id: go
112112

113113
- name: Check out code into the Go module directory
114-
uses: actions/checkout@v3
114+
uses: actions/checkout@v4
115115

116116
- name: verify license
117117
run: make check-license
@@ -128,10 +128,10 @@ jobs:
128128
strategy:
129129
fail-fast: true
130130
matrix:
131-
kubernetes: [v1.27.3]
131+
kubernetes: [v1.21.14]
132132
steps:
133133
- name: Checkout
134-
uses: actions/checkout@v3
134+
uses: actions/checkout@v4
135135

136136
- name: Setup Minikube-Kubernetes
137137
uses: medyagh/setup-minikube@latest
@@ -160,9 +160,10 @@ jobs:
160160
fail-fast: true
161161
matrix:
162162
engine: [cstor, jiva]
163+
kubernetes: [v1.27.3]
163164
steps:
164165
- name: Checkout
165-
uses: actions/checkout@v3
166+
uses: actions/checkout@v4
166167

167168
- name: Setup Minikube-Kubernetes
168169
uses: medyagh/setup-minikube@latest

.github/workflows/release.yml

+3-4
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- name: Checkout
28-
uses: actions/checkout@v3
28+
uses: actions/checkout@v4
2929

3030
- name: Set Image Org
3131
# sets the default IMAGE_ORG to openebs
@@ -54,8 +54,7 @@ jobs:
5454
quay.io/${{ env.IMAGE_ORG }}/upgrade
5555
ghcr.io/${{ env.IMAGE_ORG }}/upgrade
5656
tags: |
57-
type=raw,value=latest,enable=true
58-
type=raw,value={{version}}
57+
type=semver,pattern={{version}}
5958
6059
- name: Print Tag info
6160
run: |
@@ -112,7 +111,7 @@ jobs:
112111
runs-on: ubuntu-latest
113112
steps:
114113
- name: Checkout
115-
uses: actions/checkout@v3
114+
uses: actions/checkout@v4
116115

117116
- name: Set Image Org
118117
# sets the default IMAGE_ORG to openebs

ci/migrate/migrationCRD.yaml

+93-104
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ apiVersion: apiextensions.k8s.io/v1
1717
kind: CustomResourceDefinition
1818
metadata:
1919
annotations:
20-
controller-gen.kubebuilder.io/version: v0.4.0
21-
creationTimestamp: null
20+
controller-gen.kubebuilder.io/version: v0.11.4
2221
name: migrationtasks.openebs.io
2322
spec:
2423
group: openebs.io
@@ -27,117 +26,107 @@ spec:
2726
listKind: MigrationTaskList
2827
plural: migrationtasks
2928
shortNames:
30-
- mtask
29+
- mtask
3130
singular: migrationtask
3231
scope: Namespaced
3332
versions:
34-
- name: v1alpha1
35-
schema:
36-
openAPIV3Schema:
37-
description: MigrationTask represents an migration task
38-
properties:
39-
apiVersion:
40-
description: 'APIVersion defines the versioned schema of this representation
33+
- name: v1alpha1
34+
schema:
35+
openAPIV3Schema:
36+
description: MigrationTask represents an migration task
37+
properties:
38+
apiVersion:
39+
description: 'APIVersion defines the versioned schema of this representation
4140
of an object. Servers should convert recognized schemas to the latest
4241
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
43-
type: string
44-
kind:
45-
description: 'Kind is a string value representing the REST resource this
42+
type: string
43+
kind:
44+
description: 'Kind is a string value representing the REST resource this
4645
object represents. Servers may infer this from the endpoint the client
4746
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
48-
type: string
49-
metadata:
50-
type: object
51-
spec:
52-
description: Spec i.e. specifications of the MigrationTask
53-
properties:
54-
cstorPool:
55-
description: MigrateCStorPool contains the details of the cstor pool
56-
to be migrated
57-
properties:
58-
rename:
59-
description: If a CSPC with the same name as SPC already exists
60-
then we can rename SPC during migration using Rename
61-
type: string
62-
spcName:
63-
description: SPCName contains the name of the storage pool claim
64-
to be migrated
65-
type: string
66-
type: object
67-
cstorVolume:
68-
description: MigrateCStorVolume contains the details of the cstor
69-
volume to be migrated
70-
properties:
71-
pvName:
72-
description: PVName contains the name of the pv associated with
73-
the cstor volume to be migrated
74-
type: string
75-
type: object
76-
type: object
77-
status:
78-
description: Status of MigrationTask
79-
properties:
80-
completedTime:
81-
description: CompletedTime of Migrate
82-
format: date-time
83-
nullable: true
84-
type: string
85-
migrationDetailedStatuses:
86-
description: MigrationDetailedStatuses contains the list of statuses
87-
of each step
88-
items:
89-
description: MigrationDetailedStatuses represents the latest available
90-
observations of a MigrationTask current state.
47+
type: string
48+
metadata:
49+
type: object
50+
spec:
51+
description: Spec i.e. specifications of the MigrationTask
52+
properties:
53+
cstorPool:
54+
description: MigrateCStorPool contains the details of the cstor pool
55+
to be migrated
9156
properties:
92-
lastUpdatedAt:
93-
description: LastUpdatedTime of a MigrateStep
94-
format: date-time
95-
nullable: true
57+
rename:
58+
description: If a CSPC with the same name as SPC already exists
59+
then we can rename SPC during migration using Rename
9660
type: string
97-
message:
98-
description: A human-readable message indicating details about
99-
why the migrationStep is in this state
61+
spcName:
62+
description: SPCName contains the name of the storage pool claim
63+
to be migrated
10064
type: string
101-
phase:
102-
description: Phase indicates if the MigrateStep is waiting,
103-
errored or completed.
104-
type: string
105-
reason:
106-
description: Reason is a brief CamelCase string that describes
107-
any failure and is meant for machine parsing and tidy display
108-
in the CLI
109-
type: string
110-
startTime:
111-
description: StartTime of a MigrateStep
112-
format: date-time
113-
nullable: true
114-
type: string
115-
step:
65+
type: object
66+
cstorVolume:
67+
description: MigrateCStorVolume contains the details of the cstor
68+
volume to be migrated
69+
properties:
70+
pvName:
71+
description: PVName contains the name of the pv associated with
72+
the cstor volume to be migrated
11673
type: string
11774
type: object
118-
type: array
119-
phase:
120-
description: Phase indicates if a migrationTask is started, success
121-
or errored
122-
type: string
123-
retries:
124-
description: Retries is the number of times the job attempted to migration
125-
the resource
126-
type: integer
127-
startTime:
128-
description: StartTime of Migrate
129-
format: date-time
130-
nullable: true
131-
type: string
132-
type: object
133-
required:
134-
- spec
135-
type: object
136-
served: true
137-
storage: true
138-
status:
139-
acceptedNames:
140-
kind: ""
141-
plural: ""
142-
conditions: []
143-
storedVersions: []
75+
type: object
76+
status:
77+
description: Status of MigrationTask
78+
properties:
79+
completedTime:
80+
description: CompletedTime of Migrate
81+
format: date-time
82+
type: string
83+
migrationDetailedStatuses:
84+
description: MigrationDetailedStatuses contains the list of statuses
85+
of each step
86+
items:
87+
description: MigrationDetailedStatuses represents the latest available
88+
observations of a MigrationTask current state.
89+
properties:
90+
lastUpdatedAt:
91+
description: LastUpdatedTime of a MigrateStep
92+
format: date-time
93+
type: string
94+
message:
95+
description: A human-readable message indicating details about
96+
why the migrationStep is in this state
97+
type: string
98+
phase:
99+
description: Phase indicates if the MigrateStep is waiting,
100+
errored or completed.
101+
type: string
102+
reason:
103+
description: Reason is a brief CamelCase string that describes
104+
any failure and is meant for machine parsing and tidy display
105+
in the CLI
106+
type: string
107+
startTime:
108+
description: StartTime of a MigrateStep
109+
format: date-time
110+
type: string
111+
step:
112+
type: string
113+
type: object
114+
type: array
115+
phase:
116+
description: Phase indicates if a migrationTask is started, success
117+
or errored
118+
type: string
119+
retries:
120+
description: Retries is the number of times the job attempted to migration
121+
the resource
122+
type: integer
123+
startTime:
124+
description: StartTime of Migrate
125+
format: date-time
126+
type: string
127+
type: object
128+
required:
129+
- spec
130+
type: object
131+
served: true
132+
storage: true

0 commit comments

Comments
 (0)