storagemigration_v1alpha1
GroupVersionResource
class
lightkube.models.storagemigration_v1alpha1.GroupVersionResource(group=None, resource=None, version=None)The names of the group, the version, and the resource.
parameters
- group
Optional[str]- The name of the group. - resource
Optional[str]- The name of the resource. - version
Optional[str]- The name of the version.
MigrationCondition
class
lightkube.models.storagemigration_v1alpha1.MigrationCondition(status, type, lastUpdateTime=None, message=None, reason=None)Describes the state of a migration at a certain point.
parameters
- status
str- Status of the condition, one of True, False, Unknown. - type
str- Type of the condition. - lastUpdateTime
Optional[meta_v1.Time]- The last time this condition was updated. - message
Optional[str]- A human readable message indicating details about the transition. - reason
Optional[str]- The reason for the condition's last transition.
StorageVersionMigration
class
lightkube.models.storagemigration_v1alpha1.StorageVersionMigration(apiVersion=None, kind=None, metadata=None, spec=None, status=None)StorageVersionMigration represents a migration of stored data to the latest storage version.
parameters
- apiVersion
Optional[str]- 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 - kind
Optional[str]- 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 - metadata
Optional[meta_v1.ObjectMeta]- Standard object metadata. More info - spec
Optional[StorageVersionMigrationSpec]- Specification of the migration. - status
Optional[StorageVersionMigrationStatus]- Status of the migration.
StorageVersionMigrationList
class
lightkube.models.storagemigration_v1alpha1.StorageVersionMigrationList(items, apiVersion=None, kind=None, metadata=None)StorageVersionMigrationList is a collection of storage version migrations.
parameters
- items
List[StorageVersionMigration]- Items is the list of StorageVersionMigration - apiVersion
Optional[str]- 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 - kind
Optional[str]- 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 - metadata
Optional[meta_v1.ListMeta]- Standard list metadata More info
StorageVersionMigrationSpec
class
lightkube.models.storagemigration_v1alpha1.StorageVersionMigrationSpec(resource, continueToken=None)Spec of the storage version migration.
parameters
- resource
GroupVersionResource- The resource that is being migrated. The migrator sends requests to the endpoint serving the resource. Immutable. - continueToken
Optional[str]- The token used in the list options to get the next chunk of objects to migrate. When the .status.conditions indicates the migration is "Running", users can use this token to check the progress of the migration.
StorageVersionMigrationStatus
class
lightkube.models.storagemigration_v1alpha1.StorageVersionMigrationStatus(conditions=None, resourceVersion=None)Status of the storage version migration.
parameters
- conditions
Optional[List[MigrationCondition]]- The latest available observations of the migration's current state. - resourceVersion
Optional[str]- ResourceVersion to compare with the GC cache for performing the migration. This is the current resource version of given group, version and resource when kube-controller-manager first observes this StorageVersionMigration resource.