generated.proto 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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.apiserverinternal.v1alpha1;
  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/apiserverinternal/v1alpha1";
  21. // An API server instance reports the version it can decode and the version it
  22. // encodes objects to when persisting objects in the backend.
  23. message ServerStorageVersion {
  24. // The ID of the reporting API server.
  25. optional string apiServerID = 1;
  26. // The API server encodes the object to this version when persisting it in
  27. // the backend (e.g., etcd).
  28. optional string encodingVersion = 2;
  29. // The API server can decode objects encoded in these versions.
  30. // The encodingVersion must be included in the decodableVersions.
  31. // +listType=set
  32. repeated string decodableVersions = 3;
  33. // The API server can serve these versions.
  34. // DecodableVersions must include all ServedVersions.
  35. // +listType=set
  36. repeated string servedVersions = 4;
  37. }
  38. // Storage version of a specific resource.
  39. message StorageVersion {
  40. // The name is <group>.<resource>.
  41. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  42. // Spec is an empty spec. It is here to comply with Kubernetes API style.
  43. optional StorageVersionSpec spec = 2;
  44. // API server instances report the version they can decode and the version they
  45. // encode objects to when persisting objects in the backend.
  46. optional StorageVersionStatus status = 3;
  47. }
  48. // Describes the state of the storageVersion at a certain point.
  49. message StorageVersionCondition {
  50. // Type of the condition.
  51. // +required
  52. optional string type = 1;
  53. // Status of the condition, one of True, False, Unknown.
  54. // +required
  55. optional string status = 2;
  56. // If set, this represents the .metadata.generation that the condition was set based upon.
  57. // +optional
  58. optional int64 observedGeneration = 3;
  59. // Last time the condition transitioned from one status to another.
  60. // +required
  61. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 4;
  62. // The reason for the condition's last transition.
  63. // +required
  64. optional string reason = 5;
  65. // A human readable message indicating details about the transition.
  66. // +required
  67. optional string message = 6;
  68. }
  69. // A list of StorageVersions.
  70. message StorageVersionList {
  71. // Standard list metadata.
  72. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  73. // +optional
  74. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  75. // Items holds a list of StorageVersion
  76. repeated StorageVersion items = 2;
  77. }
  78. // StorageVersionSpec is an empty spec.
  79. message StorageVersionSpec {
  80. }
  81. // API server instances report the versions they can decode and the version they
  82. // encode objects to when persisting objects in the backend.
  83. message StorageVersionStatus {
  84. // The reported versions per API server instance.
  85. // +optional
  86. // +listType=map
  87. // +listMapKey=apiServerID
  88. repeated ServerStorageVersion storageVersions = 1;
  89. // If all API server instances agree on the same encoding storage version,
  90. // then this field is set to that version. Otherwise this field is left empty.
  91. // API servers should finish updating its storageVersionStatus entry before
  92. // serving write operations, so that this field will be in sync with the reality.
  93. // +optional
  94. optional string commonEncodingVersion = 2;
  95. // The latest available observations of the storageVersion's state.
  96. // +optional
  97. // +listType=map
  98. // +listMapKey=type
  99. repeated StorageVersionCondition conditions = 3;
  100. }