1package v1beta1
2
3import "cue.dev/x/k8s.io/apimachinery/pkg/apis/meta/v1"
4
5// StorageVersionMigration represents a migration of stored data
6// to the latest storage version.
7#StorageVersionMigration: {
8 // APIVersion defines the versioned schema of this representation
9 // of an object. Servers should convert recognized schemas to the
10 // latest internal value, and may reject unrecognized values.
11 // More info:
12 // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
13 "apiVersion": "storagemigration.k8s.io/v1beta1"
14
15 // Kind is a string value representing the REST resource this
16 // object represents. Servers may infer this from the endpoint
17 // the client submits requests to. Cannot be updated. In
18 // CamelCase. More info:
19 // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
20 "kind": "StorageVersionMigration"
21
22 // Standard object metadata. More info:
23 // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
24 "metadata"?: v1.#ObjectMeta
25
26 // Specification of the migration.
27 "spec"?: #StorageVersionMigrationSpec
28
29 // Status of the migration.
30 "status"?: #StorageVersionMigrationStatus
31}
32
33// StorageVersionMigrationList is a collection of storage version
34// migrations.
35#StorageVersionMigrationList: {
36 // APIVersion defines the versioned schema of this representation
37 // of an object. Servers should convert recognized schemas to the
38 // latest internal value, and may reject unrecognized values.
39 // More info:
40 // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources
41 "apiVersion": "storagemigration.k8s.io/v1beta1"
42
43 // Items is the list of StorageVersionMigration
44 "items"!: [...#StorageVersionMigration]
45
46 // Kind is a string value representing the REST resource this
47 // object represents. Servers may infer this from the endpoint
48 // the client submits requests to. Cannot be updated. In
49 // CamelCase. More info:
50 // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
51 "kind": "StorageVersionMigrationList"
52
53 // Standard list metadata More info:
54 // https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
55 "metadata"?: v1.#ListMeta
56}
57
58// Spec of the storage version migration.
59#StorageVersionMigrationSpec: {
60 // The resource that is being migrated. The migrator sends
61 // requests to the endpoint serving the resource. Immutable.
62 "resource"!: v1.#GroupResource
63}
64
65// Status of the storage version migration.
66#StorageVersionMigrationStatus: {
67 // The latest available observations of the migration's current
68 // state.
69 "conditions"?: [...v1.#Condition]
70
71 // ResourceVersion to compare with the GC cache for performing the
72 // migration. This is the current resource version of given
73 // group, version and resource when kube-controller-manager first
74 // observes this StorageVersionMigration resource.
75 "resourceVersion"?: string
76}