Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(version): add 3.5.0 to the upgrade matrix #163

Merged
merged 10 commits into from
Dec 11, 2023
17 changes: 9 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Shellcheck
uses: reviewdog/action-shellcheck@v1
Expand All @@ -49,7 +49,7 @@ jobs:
needs: ['lint','upgrade-e2e']
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set Image Org
# sets the default IMAGE_ORG to openebs
Expand Down Expand Up @@ -141,7 +141,7 @@ jobs:
needs: ['lint', 'migration-e2e']
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set Image Org
# sets the default IMAGE_ORG to openebs
Expand Down Expand Up @@ -242,7 +242,7 @@ jobs:
id: go

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

- name: verify license
run: make check-license
Expand All @@ -259,10 +259,10 @@ jobs:
strategy:
fail-fast: true
matrix:
kubernetes: [v1.27.3]
kubernetes: [v1.21.14]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Minikube-Kubernetes
uses: medyagh/setup-minikube@latest
Expand Down Expand Up @@ -295,9 +295,10 @@ jobs:
fail-fast: true
matrix:
engine: [cstor, jiva]
kubernetes: [v1.27.3]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Minikube-Kubernetes
uses: medyagh/setup-minikube@latest
Expand Down Expand Up @@ -349,7 +350,7 @@ jobs:
needs: ['unit-tests']
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set Image Org
# sets the default IMAGE_ORG to openebs
Expand Down
15 changes: 8 additions & 7 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Shellcheck
uses: reviewdog/action-shellcheck@v1
Expand All @@ -48,7 +48,7 @@ jobs:
needs: ['lint']
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down Expand Up @@ -76,7 +76,7 @@ jobs:
needs: ['lint']
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v2
Expand Down Expand Up @@ -111,7 +111,7 @@ jobs:
id: go

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

- name: verify license
run: make check-license
Expand All @@ -128,10 +128,10 @@ jobs:
strategy:
fail-fast: true
matrix:
kubernetes: [v1.27.3]
kubernetes: [v1.21.14]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Minikube-Kubernetes
uses: medyagh/setup-minikube@latest
Expand Down Expand Up @@ -160,9 +160,10 @@ jobs:
fail-fast: true
matrix:
engine: [cstor, jiva]
kubernetes: [v1.27.3]
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Minikube-Kubernetes
uses: medyagh/setup-minikube@latest
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set Image Org
# sets the default IMAGE_ORG to openebs
Expand Down Expand Up @@ -54,8 +54,7 @@ jobs:
quay.io/${{ env.IMAGE_ORG }}/upgrade
ghcr.io/${{ env.IMAGE_ORG }}/upgrade
tags: |
type=raw,value=latest,enable=true
type=raw,value={{version}}
type=semver,pattern={{version}}

- name: Print Tag info
run: |
Expand Down Expand Up @@ -112,7 +111,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Set Image Org
# sets the default IMAGE_ORG to openebs
Expand Down
197 changes: 93 additions & 104 deletions ci/migrate/migrationCRD.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,7 @@ apiVersion: apiextensions.k8s.io/v1
kind: CustomResourceDefinition
metadata:
annotations:
controller-gen.kubebuilder.io/version: v0.4.0
creationTimestamp: null
controller-gen.kubebuilder.io/version: v0.11.4
name: migrationtasks.openebs.io
spec:
group: openebs.io
Expand All @@ -27,117 +26,107 @@ spec:
listKind: MigrationTaskList
plural: migrationtasks
shortNames:
- mtask
- mtask
singular: migrationtask
scope: Namespaced
versions:
- name: v1alpha1
schema:
openAPIV3Schema:
description: MigrationTask represents an migration task
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
- name: v1alpha1
schema:
openAPIV3Schema:
description: MigrationTask represents an migration task
properties:
apiVersion:
description: 'APIVersion defines the versioned schema of this representation
of an object. Servers should convert recognized schemas to the latest
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
type: string
kind:
description: 'Kind is a string value representing the REST resource this
type: string
kind:
description: 'Kind is a string value representing the REST resource this
object represents. Servers may infer this from the endpoint the client
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
type: string
metadata:
type: object
spec:
description: Spec i.e. specifications of the MigrationTask
properties:
cstorPool:
description: MigrateCStorPool contains the details of the cstor pool
to be migrated
properties:
rename:
description: If a CSPC with the same name as SPC already exists
then we can rename SPC during migration using Rename
type: string
spcName:
description: SPCName contains the name of the storage pool claim
to be migrated
type: string
type: object
cstorVolume:
description: MigrateCStorVolume contains the details of the cstor
volume to be migrated
properties:
pvName:
description: PVName contains the name of the pv associated with
the cstor volume to be migrated
type: string
type: object
type: object
status:
description: Status of MigrationTask
properties:
completedTime:
description: CompletedTime of Migrate
format: date-time
nullable: true
type: string
migrationDetailedStatuses:
description: MigrationDetailedStatuses contains the list of statuses
of each step
items:
description: MigrationDetailedStatuses represents the latest available
observations of a MigrationTask current state.
type: string
metadata:
type: object
spec:
description: Spec i.e. specifications of the MigrationTask
properties:
cstorPool:
description: MigrateCStorPool contains the details of the cstor pool
to be migrated
properties:
lastUpdatedAt:
description: LastUpdatedTime of a MigrateStep
format: date-time
nullable: true
rename:
description: If a CSPC with the same name as SPC already exists
then we can rename SPC during migration using Rename
type: string
message:
description: A human-readable message indicating details about
why the migrationStep is in this state
spcName:
description: SPCName contains the name of the storage pool claim
to be migrated
type: string
phase:
description: Phase indicates if the MigrateStep is waiting,
errored or completed.
type: string
reason:
description: Reason is a brief CamelCase string that describes
any failure and is meant for machine parsing and tidy display
in the CLI
type: string
startTime:
description: StartTime of a MigrateStep
format: date-time
nullable: true
type: string
step:
type: object
cstorVolume:
description: MigrateCStorVolume contains the details of the cstor
volume to be migrated
properties:
pvName:
description: PVName contains the name of the pv associated with
the cstor volume to be migrated
type: string
type: object
type: array
phase:
description: Phase indicates if a migrationTask is started, success
or errored
type: string
retries:
description: Retries is the number of times the job attempted to migration
the resource
type: integer
startTime:
description: StartTime of Migrate
format: date-time
nullable: true
type: string
type: object
required:
- spec
type: object
served: true
storage: true
status:
acceptedNames:
kind: ""
plural: ""
conditions: []
storedVersions: []
type: object
status:
description: Status of MigrationTask
properties:
completedTime:
description: CompletedTime of Migrate
format: date-time
type: string
migrationDetailedStatuses:
description: MigrationDetailedStatuses contains the list of statuses
of each step
items:
description: MigrationDetailedStatuses represents the latest available
observations of a MigrationTask current state.
properties:
lastUpdatedAt:
description: LastUpdatedTime of a MigrateStep
format: date-time
type: string
message:
description: A human-readable message indicating details about
why the migrationStep is in this state
type: string
phase:
description: Phase indicates if the MigrateStep is waiting,
errored or completed.
type: string
reason:
description: Reason is a brief CamelCase string that describes
any failure and is meant for machine parsing and tidy display
in the CLI
type: string
startTime:
description: StartTime of a MigrateStep
format: date-time
type: string
step:
type: string
type: object
type: array
phase:
description: Phase indicates if a migrationTask is started, success
or errored
type: string
retries:
description: Retries is the number of times the job attempted to migration
the resource
type: integer
startTime:
description: StartTime of Migrate
format: date-time
type: string
type: object
required:
- spec
type: object
served: true
storage: true
Loading
Loading