Documentation
¶
Index ¶
- Constants
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type GroupVersionResource
- type MigrationCondition
- type MigrationConditionType
- type StorageVersionMigration
- type StorageVersionMigrationList
- type StorageVersionMigrationSpec
- type StorageVersionMigrationStatus
Constants ¶
const GroupName = "storagemigration.k8s.io"
GroupName is the group name use in this package
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: runtime.APIVersionInternal}
SchemeGroupVersion is group version used to register these objects
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource
Types ¶
type GroupVersionResource ¶
type GroupVersionResource struct {
// The name of the group.
Group string
// The name of the version.
Version string
// The name of the resource.
Resource string
}
The names of the group, the version, and the resource.
func (*GroupVersionResource) DeepCopy ¶
func (in *GroupVersionResource) DeepCopy() *GroupVersionResource
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new GroupVersionResource.
func (*GroupVersionResource) DeepCopyInto ¶
func (in *GroupVersionResource) DeepCopyInto(out *GroupVersionResource)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MigrationCondition ¶
type MigrationCondition struct {
// Type of the condition.
Type MigrationConditionType
// Status of the condition, one of True, False, Unknown.
Status corev1.ConditionStatus
// The last time this condition was updated.
// +optional
LastUpdateTime metav1.Time
// The reason for the condition's last transition.
// +optional
Reason string
// A human readable message indicating details about the transition.
// +optional
Message string
}
Describes the state of a migration at a certain point.
func (*MigrationCondition) DeepCopy ¶
func (in *MigrationCondition) DeepCopy() *MigrationCondition
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MigrationCondition.
func (*MigrationCondition) DeepCopyInto ¶
func (in *MigrationCondition) DeepCopyInto(out *MigrationCondition)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MigrationConditionType ¶
type MigrationConditionType string
const ( // Indicates that the migration is running. MigrationRunning MigrationConditionType = "Running" // Indicates that the migration has completed successfully. MigrationSucceeded MigrationConditionType = "Succeeded" // Indicates that the migration has failed. MigrationFailed MigrationConditionType = "Failed" )
type StorageVersionMigration ¶
type StorageVersionMigration struct {
metav1.TypeMeta
// Standard object metadata.
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
metav1.ObjectMeta
// Specification of the migration.
// +optional
Spec StorageVersionMigrationSpec
// Status of the migration.
// +optional
Status StorageVersionMigrationStatus
}
StorageVersionMigration represents a migration of stored data to the latest storage version.
func (*StorageVersionMigration) DeepCopy ¶
func (in *StorageVersionMigration) DeepCopy() *StorageVersionMigration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageVersionMigration.
func (*StorageVersionMigration) DeepCopyInto ¶
func (in *StorageVersionMigration) DeepCopyInto(out *StorageVersionMigration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StorageVersionMigration) DeepCopyObject ¶
func (in *StorageVersionMigration) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StorageVersionMigrationList ¶
type StorageVersionMigrationList struct {
metav1.TypeMeta
// Standard list metadata
// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
// +optional
metav1.ListMeta
// Items is the list of StorageVersionMigration
// +patchMergeKey=type
// +patchStrategy=merge
// +listType=map
// +listMapKey=type
Items []StorageVersionMigration
}
StorageVersionMigrationList is a collection of storage version migrations.
func (*StorageVersionMigrationList) DeepCopy ¶
func (in *StorageVersionMigrationList) DeepCopy() *StorageVersionMigrationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageVersionMigrationList.
func (*StorageVersionMigrationList) DeepCopyInto ¶
func (in *StorageVersionMigrationList) DeepCopyInto(out *StorageVersionMigrationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*StorageVersionMigrationList) DeepCopyObject ¶
func (in *StorageVersionMigrationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type StorageVersionMigrationSpec ¶
type StorageVersionMigrationSpec struct {
// The resource that is being migrated. The migrator sends requests to
// the endpoint serving the resource.
// Immutable.
Resource GroupVersionResource
// 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.
// +optional
ContinueToken string
}
Spec of the storage version migration.
func (*StorageVersionMigrationSpec) DeepCopy ¶
func (in *StorageVersionMigrationSpec) DeepCopy() *StorageVersionMigrationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageVersionMigrationSpec.
func (*StorageVersionMigrationSpec) DeepCopyInto ¶
func (in *StorageVersionMigrationSpec) DeepCopyInto(out *StorageVersionMigrationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type StorageVersionMigrationStatus ¶
type StorageVersionMigrationStatus struct {
// The latest available observations of the migration's current state.
// +patchMergeKey=type
// +patchStrategy=merge
// +listType=map
// +listMapKey=type
// +optional
Conditions []MigrationCondition
// 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.
ResourceVersion string
}
Status of the storage version migration.
func (*StorageVersionMigrationStatus) DeepCopy ¶
func (in *StorageVersionMigrationStatus) DeepCopy() *StorageVersionMigrationStatus
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StorageVersionMigrationStatus.
func (*StorageVersionMigrationStatus) DeepCopyInto ¶
func (in *StorageVersionMigrationStatus) DeepCopyInto(out *StorageVersionMigrationStatus)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.