generated.proto 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. /*
  2. Copyright The Kubernetes Authors.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. // This file was autogenerated by go-to-protobuf. Do not edit it manually!
  14. syntax = "proto2";
  15. package k8s.io.api.storagemigration.v1beta1;
  16. import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
  17. import "k8s.io/apimachinery/pkg/runtime/generated.proto";
  18. import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
  19. // Package-wide variables from generator "generated".
  20. option go_package = "k8s.io/api/storagemigration/v1beta1";
  21. // StorageVersionMigration represents a migration of stored data to the latest
  22. // storage version.
  23. message StorageVersionMigration {
  24. // Standard object metadata.
  25. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  26. // +optional
  27. optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  28. // Specification of the migration.
  29. // +optional
  30. optional StorageVersionMigrationSpec spec = 2;
  31. // Status of the migration.
  32. // +optional
  33. optional StorageVersionMigrationStatus status = 3;
  34. }
  35. // StorageVersionMigrationList is a collection of storage version migrations.
  36. message StorageVersionMigrationList {
  37. // Standard list metadata
  38. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  39. // +optional
  40. optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  41. // Items is the list of StorageVersionMigration
  42. repeated StorageVersionMigration items = 2;
  43. }
  44. // Spec of the storage version migration.
  45. message StorageVersionMigrationSpec {
  46. // The resource that is being migrated. The migrator sends requests to
  47. // the endpoint serving the resource.
  48. // Immutable.
  49. optional .k8s.io.apimachinery.pkg.apis.meta.v1.GroupResource resource = 1;
  50. }
  51. // Status of the storage version migration.
  52. message StorageVersionMigrationStatus {
  53. // The latest available observations of the migration's current state.
  54. // +patchMergeKey=type
  55. // +patchStrategy=merge
  56. // +listType=map
  57. // +listMapKey=type
  58. // +optional
  59. repeated .k8s.io.apimachinery.pkg.apis.meta.v1.Condition conditions = 1;
  60. // ResourceVersion to compare with the GC cache for performing the migration.
  61. // This is the current resource version of given group, version and resource when
  62. // kube-controller-manager first observes this StorageVersionMigration resource.
  63. optional string resourceVersion = 2;
  64. }