cue.dev/x/k8s.io@v0.12.0

api/storagemigration/v1beta1/schema.cue raw

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