Skip to content

Commit adce26b

Browse files
feat(crd): update migration task and upgrade task crd with the latest generated (#455)
Signed-off-by: Abhinandan Purkait <[email protected]>
1 parent 33d8c66 commit adce26b

File tree

1 file changed

+97
-112
lines changed

1 file changed

+97
-112
lines changed

deploy/crds/all_cstor_crds.yaml

Lines changed: 97 additions & 112 deletions
Original file line numberDiff line numberDiff line change
@@ -3315,8 +3315,7 @@ apiVersion: apiextensions.k8s.io/v1
33153315
kind: CustomResourceDefinition
33163316
metadata:
33173317
annotations:
3318-
controller-gen.kubebuilder.io/version: v0.4.0
3319-
creationTimestamp: null
3318+
controller-gen.kubebuilder.io/version: v0.11.4
33203319
name: upgradetasks.openebs.io
33213320
spec:
33223321
group: openebs.io
@@ -3560,19 +3559,12 @@ spec:
35603559
type: object
35613560
served: true
35623561
storage: true
3563-
status:
3564-
acceptedNames:
3565-
kind: ""
3566-
plural: ""
3567-
conditions: []
3568-
storedVersions: []
35693562
---
3570-
apiVersion: apiextensions.k8s.io/v1beta1
3563+
apiVersion: apiextensions.k8s.io/v1
35713564
kind: CustomResourceDefinition
35723565
metadata:
35733566
annotations:
3574-
controller-gen.kubebuilder.io/version: v0.2.9
3575-
creationTimestamp: null
3567+
controller-gen.kubebuilder.io/version: v0.11.4
35763568
name: migrationtasks.openebs.io
35773569
spec:
35783570
group: openebs.io
@@ -3584,111 +3576,104 @@ spec:
35843576
- mtask
35853577
singular: migrationtask
35863578
scope: Namespaced
3587-
validation:
3588-
openAPIV3Schema:
3589-
description: MigrationTask represents an migration task
3590-
properties:
3591-
apiVersion:
3592-
description: 'APIVersion defines the versioned schema of this representation
3593-
of an object. Servers should convert recognized schemas to the latest
3594-
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
3595-
type: string
3596-
kind:
3597-
description: 'Kind is a string value representing the REST resource this
3598-
object represents. Servers may infer this from the endpoint the client
3599-
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
3600-
type: string
3601-
metadata:
3602-
type: object
3603-
spec:
3604-
description: Spec i.e. specifications of the MigrationTask
3605-
properties:
3606-
cstorPool:
3607-
description: MigrateCStorPool contains the details of the cstor pool
3608-
to be migrated
3609-
properties:
3610-
rename:
3611-
description: If a CSPC with the same name as SPC already exists
3612-
then we can rename SPC during migration using Rename
3613-
type: string
3614-
spcName:
3615-
description: SPCName contains the name of the storage pool claim
3616-
to be migrated
3617-
type: string
3618-
type: object
3619-
cstorVolume:
3620-
description: MigrateCStorVolume contains the details of the cstor volume
3621-
to be migrated
3622-
properties:
3623-
pvName:
3624-
description: PVName contains the name of the pv associated with
3625-
the cstor volume to be migrated
3626-
type: string
3627-
type: object
3628-
type: object
3629-
status:
3630-
description: Status of MigrationTask
3631-
properties:
3632-
completedTime:
3633-
description: CompletedTime of Migrate
3634-
format: date-time
3635-
type: string
3636-
migrationDetailedStatuses:
3637-
description: MigrationDetailedStatuses contains the list of statuses
3638-
of each step
3639-
items:
3640-
description: MigrationDetailedStatuses represents the latest available
3641-
observations of a MigrationTask current state.
3579+
versions:
3580+
- name: v1alpha1
3581+
schema:
3582+
openAPIV3Schema:
3583+
description: MigrationTask represents an migration task
3584+
properties:
3585+
apiVersion:
3586+
description: 'APIVersion defines the versioned schema of this representation
3587+
of an object. Servers should convert recognized schemas to the latest
3588+
internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources'
3589+
type: string
3590+
kind:
3591+
description: 'Kind is a string value representing the REST resource this
3592+
object represents. Servers may infer this from the endpoint the client
3593+
submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds'
3594+
type: string
3595+
metadata:
3596+
type: object
3597+
spec:
3598+
description: Spec i.e. specifications of the MigrationTask
3599+
properties:
3600+
cstorPool:
3601+
description: MigrateCStorPool contains the details of the cstor pool
3602+
to be migrated
36423603
properties:
3643-
lastUpdatedAt:
3644-
description: LastUpdatedTime of a MigrateStep
3645-
format: date-time
3604+
rename:
3605+
description: If a CSPC with the same name as SPC already exists
3606+
then we can rename SPC during migration using Rename
36463607
type: string
3647-
message:
3648-
description: A human-readable message indicating details about
3649-
why the migrationStep is in this state
3650-
type: string
3651-
phase:
3652-
description: Phase indicates if the MigrateStep is waiting, errored
3653-
or completed.
3654-
type: string
3655-
reason:
3656-
description: Reason is a brief CamelCase string that describes
3657-
any failure and is meant for machine parsing and tidy display
3658-
in the CLI
3659-
type: string
3660-
startTime:
3661-
description: StartTime of a MigrateStep
3662-
format: date-time
3608+
spcName:
3609+
description: SPCName contains the name of the storage pool claim
3610+
to be migrated
36633611
type: string
3664-
step:
3612+
type: object
3613+
cstorVolume:
3614+
description: MigrateCStorVolume contains the details of the cstor
3615+
volume to be migrated
3616+
properties:
3617+
pvName:
3618+
description: PVName contains the name of the pv associated with
3619+
the cstor volume to be migrated
36653620
type: string
36663621
type: object
3667-
type: array
3668-
phase:
3669-
description: Phase indicates if a migrationTask is started, success
3670-
or errored
3671-
type: string
3672-
retries:
3673-
description: Retries is the number of times the job attempted to migration
3674-
the resource
3675-
type: integer
3676-
startTime:
3677-
description: StartTime of Migrate
3678-
format: date-time
3679-
type: string
3680-
type: object
3681-
required:
3682-
- spec
3683-
type: object
3684-
version: v1alpha1
3685-
versions:
3686-
- name: v1alpha1
3622+
type: object
3623+
status:
3624+
description: Status of MigrationTask
3625+
properties:
3626+
completedTime:
3627+
description: CompletedTime of Migrate
3628+
format: date-time
3629+
type: string
3630+
migrationDetailedStatuses:
3631+
description: MigrationDetailedStatuses contains the list of statuses
3632+
of each step
3633+
items:
3634+
description: MigrationDetailedStatuses represents the latest available
3635+
observations of a MigrationTask current state.
3636+
properties:
3637+
lastUpdatedAt:
3638+
description: LastUpdatedTime of a MigrateStep
3639+
format: date-time
3640+
type: string
3641+
message:
3642+
description: A human-readable message indicating details about
3643+
why the migrationStep is in this state
3644+
type: string
3645+
phase:
3646+
description: Phase indicates if the MigrateStep is waiting,
3647+
errored or completed.
3648+
type: string
3649+
reason:
3650+
description: Reason is a brief CamelCase string that describes
3651+
any failure and is meant for machine parsing and tidy display
3652+
in the CLI
3653+
type: string
3654+
startTime:
3655+
description: StartTime of a MigrateStep
3656+
format: date-time
3657+
type: string
3658+
step:
3659+
type: string
3660+
type: object
3661+
type: array
3662+
phase:
3663+
description: Phase indicates if a migrationTask is started, success
3664+
or errored
3665+
type: string
3666+
retries:
3667+
description: Retries is the number of times the job attempted to migration
3668+
the resource
3669+
type: integer
3670+
startTime:
3671+
description: StartTime of Migrate
3672+
format: date-time
3673+
type: string
3674+
type: object
3675+
required:
3676+
- spec
3677+
type: object
36873678
served: true
36883679
storage: true
3689-
status:
3690-
acceptedNames:
3691-
kind: ""
3692-
plural: ""
3693-
conditions: []
3694-
storedVersions: []

0 commit comments

Comments
 (0)