Skip to content

Commit

Permalink
run hack/update-codegen.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
sanchezl committed Mar 23, 2020
1 parent 03e8c0b commit 0061096
Show file tree
Hide file tree
Showing 6 changed files with 152 additions and 18 deletions.
76 changes: 76 additions & 0 deletions manifests/storage_migration_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,79 @@ spec:
- 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
60 changes: 60 additions & 0 deletions manifests/storage_state_crd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,63 @@ spec:
- 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
4 changes: 2 additions & 2 deletions pkg/apis/migration/v1alpha1/zz_generated.deepcopy.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 7 additions & 8 deletions pkg/clients/clientset/clientset.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions pkg/clients/clientset/fake/clientset_generated.go

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.

0 comments on commit 0061096

Please sign in to comment.