-
Notifications
You must be signed in to change notification settings - Fork 63
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add openAPIV3Schema to CRDs #56
Changes from all commits
d729580
6321194
2043869
c5295bb
03e8c0b
0061096
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: storageversionmigrations.migration.k8s.io | ||
spec: | ||
group: migration.k8s.io | ||
names: | ||
kind: StorageVersionMigration | ||
listKind: StorageVersionMigrationList | ||
plural: storageversionmigrations | ||
singular: storageversionmigration | ||
scope: Cluster | ||
subresources: | ||
status: {} | ||
version: v1alpha1 | ||
versions: | ||
- name: v1alpha1 | ||
served: true | ||
storage: true | ||
"validation": | ||
"openAPIV3Schema": | ||
description: StorageVersionMigration represents a migration of stored data to | ||
the latest storage version. | ||
type: object | ||
properties: | ||
apiVersion: | ||
description: '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' | ||
type: string | ||
kind: | ||
description: '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' | ||
type: string | ||
metadata: | ||
type: object | ||
spec: | ||
description: Specification of the migration. | ||
type: object | ||
required: | ||
- resource | ||
properties: | ||
continueToken: | ||
description: 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. | ||
type: string | ||
resource: | ||
description: The resource that is being migrated. The migrator sends | ||
requests to the endpoint serving the resource. Immutable. | ||
type: object | ||
properties: | ||
group: | ||
description: The name of the group. | ||
type: string | ||
resource: | ||
description: The name of the resource. | ||
type: string | ||
version: | ||
description: The name of the version. | ||
type: string | ||
status: | ||
description: Status of the migration. | ||
type: object | ||
properties: | ||
conditions: | ||
description: The latest available observations of the migration's current | ||
state. | ||
type: array | ||
items: | ||
description: Describes the state of a migration at a certain point. | ||
type: object | ||
required: | ||
- status | ||
- type | ||
properties: | ||
lastUpdateTime: | ||
description: The last time this condition was updated. | ||
type: string | ||
format: date-time | ||
message: | ||
description: A human readable message indicating details about | ||
the transition. | ||
type: string | ||
reason: | ||
description: The reason for the condition's last transition. | ||
type: string | ||
status: | ||
description: Status of the condition, one of True, False, Unknown. | ||
type: string | ||
type: | ||
description: Type of the condition. | ||
type: string |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
apiVersion: apiextensions.k8s.io/v1beta1 | ||
kind: CustomResourceDefinition | ||
metadata: | ||
name: storagestates.migration.k8s.io | ||
spec: | ||
group: migration.k8s.io | ||
names: | ||
kind: StorageState | ||
listKind: StorageStateList | ||
plural: storagestates | ||
singular: storagestate | ||
scope: Cluster | ||
subresources: | ||
status: {} | ||
version: v1alpha1 | ||
versions: | ||
- name: v1alpha1 | ||
served: true | ||
storage: true | ||
"validation": | ||
"openAPIV3Schema": | ||
description: The state of the storage of a specific resource. | ||
type: object | ||
properties: | ||
apiVersion: | ||
description: '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' | ||
type: string | ||
kind: | ||
description: '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' | ||
type: string | ||
metadata: | ||
description: The name must be "<.spec.resource.resouce>.<.spec.resource.group>". | ||
type: object | ||
spec: | ||
description: Specification of the storage state. | ||
type: object | ||
properties: | ||
resource: | ||
description: The resource this storageState is about. | ||
type: object | ||
properties: | ||
group: | ||
description: The name of the group. | ||
type: string | ||
resource: | ||
description: The name of the resource. | ||
type: string | ||
status: | ||
description: Status of the storage state. | ||
type: object | ||
properties: | ||
currentStorageVersionHash: | ||
description: The hash value of the current storage version, as shown | ||
in the discovery document served by the API server. Storage Version | ||
is the version to which objects are converted to before persisted. | ||
type: string | ||
lastHeartbeatTime: | ||
description: LastHeartbeatTime is the last time the storage migration | ||
triggering controller checks the storage version hash of this resource | ||
in the discovery document and updates this field. | ||
type: string | ||
format: date-time | ||
persistedStorageVersionHashes: | ||
description: The hash values of storage versions that persisted instances | ||
of spec.resource might still be encoded in. "Unknown" is a valid value | ||
in the list, and is the default value. It is not safe to upgrade or | ||
downgrade to an apiserver binary that does not support all versions | ||
listed in this field, or if "Unknown" is listed. Once the storage | ||
version migration for this resource has completed, the value of this | ||
field is refined to only contain the currentStorageVersionHash. Once | ||
the apiserver has changed the storage version, the new storage version | ||
is appended to the list. | ||
type: array | ||
items: | ||
type: string |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know why these two lines are quoted?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some encoding issue of the yaml library. We saw that before with controller-gen. Maybe @DirectXMan12 has an idea.