-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #56 from sanchezl/sigs-schema_gen
Add openAPIV3Schema to CRDs
- Loading branch information
Showing
777 changed files
with
162,401 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
pkg/clients/clientset/typed/migration/v1alpha1/migration_client.go
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.