v1alpha1

package
v1.30.0-kw1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const GroupName = "storagemigration.k8s.io"

GroupName is the group name use in this package

Variables

View Source
var SchemeGroupVersion = schema.GroupVersion{Group: GroupName, Version: "v1alpha1"}

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 `json:"group,omitempty"`

	// The name of the resource.
	Resource string `json:"resource,omitempty"`

	// The name of the version.
	Version string `json:"version,omitempty"`
}

GroupVersionResource The names of the group, the version, and the resource.

swagger:model GroupVersionResource

type MigrationCondition

type MigrationCondition struct {

	// The last time this condition was updated.
	LastUpdateTime *apimachinery_pkg_apis_meta_v1.Time `json:"lastUpdateTime,omitempty"`

	// A human readable message indicating details about the transition.
	Message string `json:"message,omitempty"`

	// The reason for the condition's last transition.
	Reason string `json:"reason,omitempty"`

	// Status of the condition, one of True, False, Unknown.
	// Required: true
	Status *string `json:"status"`

	// Type of the condition.
	// Required: true
	Type *string `json:"type"`
}

MigrationCondition Describes the state of a migration at a certain point.

swagger:model MigrationCondition

type StorageVersionMigration

type StorageVersionMigration struct {

	// 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
	APIVersion string `json:"apiVersion,omitempty"`

	// 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
	Kind string `json:"kind,omitempty"`

	// Standard object metadata. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata *apimachinery_pkg_apis_meta_v1.ObjectMeta `json:"metadata,omitempty"`

	// Specification of the migration.
	Spec *StorageVersionMigrationSpec `json:"spec,omitempty"`

	// Status of the migration.
	Status *StorageVersionMigrationStatus `json:"status,omitempty"`
}

StorageVersionMigration StorageVersionMigration represents a migration of stored data to the latest storage version.

swagger:model StorageVersionMigration

func (*StorageVersionMigration) GroupVersionKind

func (v *StorageVersionMigration) GroupVersionKind() schema.GroupVersionKind

type StorageVersionMigrationList

type StorageVersionMigrationList struct {

	// 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
	APIVersion string `json:"apiVersion,omitempty"`

	// Items is the list of StorageVersionMigration
	// Required: true
	Items []*StorageVersionMigration `json:"items"`

	// 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
	Kind string `json:"kind,omitempty"`

	// Standard list metadata More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	Metadata *apimachinery_pkg_apis_meta_v1.ListMeta `json:"metadata,omitempty"`
}

StorageVersionMigrationList StorageVersionMigrationList is a collection of storage version migrations.

swagger:model StorageVersionMigrationList

func (*StorageVersionMigrationList) GroupVersionKind

func (v *StorageVersionMigrationList) GroupVersionKind() schema.GroupVersionKind

type StorageVersionMigrationSpec

type StorageVersionMigrationSpec struct {

	// 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.
	ContinueToken string `json:"continueToken,omitempty"`

	// The resource that is being migrated. The migrator sends requests to the endpoint serving the resource. Immutable.
	// Required: true
	Resource *GroupVersionResource `json:"resource"`
}

StorageVersionMigrationSpec Spec of the storage version migration.

swagger:model StorageVersionMigrationSpec

type StorageVersionMigrationStatus

type StorageVersionMigrationStatus struct {

	// The latest available observations of the migration's current state.
	Conditions []*MigrationCondition `json:"conditions,omitempty"`

	// 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 `json:"resourceVersion,omitempty"`
}

StorageVersionMigrationStatus Status of the storage version migration.

swagger:model StorageVersionMigrationStatus

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL