generated.proto 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575
  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.apps.v1beta1;
  16. import "k8s.io/api/core/v1/generated.proto";
  17. import "k8s.io/apimachinery/pkg/apis/meta/v1/generated.proto";
  18. import "k8s.io/apimachinery/pkg/runtime/generated.proto";
  19. import "k8s.io/apimachinery/pkg/runtime/schema/generated.proto";
  20. import "k8s.io/apimachinery/pkg/util/intstr/generated.proto";
  21. // Package-wide variables from generator "generated".
  22. option go_package = "k8s.io/api/apps/v1beta1";
  23. // DEPRECATED - This group version of ControllerRevision is deprecated by apps/v1beta2/ControllerRevision. See the
  24. // release notes for more information.
  25. // ControllerRevision implements an immutable snapshot of state data. Clients
  26. // are responsible for serializing and deserializing the objects that contain
  27. // their internal state.
  28. // Once a ControllerRevision has been successfully created, it can not be updated.
  29. // The API Server will fail validation of all requests that attempt to mutate
  30. // the Data field. ControllerRevisions may, however, be deleted. Note that, due to its use by both
  31. // the DaemonSet and StatefulSet controllers for update and rollback, this object is beta. However,
  32. // it may be subject to name and representation changes in future releases, and clients should not
  33. // depend on its stability. It is primarily for internal use by controllers.
  34. message ControllerRevision {
  35. // Standard object's metadata.
  36. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  37. // +optional
  38. optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  39. // data is the serialized representation of the state.
  40. optional .k8s.io.apimachinery.pkg.runtime.RawExtension data = 2;
  41. // revision indicates the revision of the state represented by Data.
  42. optional int64 revision = 3;
  43. }
  44. // ControllerRevisionList is a resource containing a list of ControllerRevision objects.
  45. message ControllerRevisionList {
  46. // More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
  47. // +optional
  48. optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  49. // Items is the list of ControllerRevisions
  50. repeated ControllerRevision items = 2;
  51. }
  52. // DEPRECATED - This group version of Deployment is deprecated by apps/v1beta2/Deployment. See the release notes for
  53. // more information.
  54. // Deployment enables declarative updates for Pods and ReplicaSets.
  55. message Deployment {
  56. // Standard object metadata.
  57. // +optional
  58. optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  59. // Specification of the desired behavior of the Deployment.
  60. // +optional
  61. optional DeploymentSpec spec = 2;
  62. // Most recently observed status of the Deployment.
  63. // +optional
  64. optional DeploymentStatus status = 3;
  65. }
  66. // DeploymentCondition describes the state of a deployment at a certain point.
  67. message DeploymentCondition {
  68. // Type of deployment condition.
  69. optional string type = 1;
  70. // Status of the condition, one of True, False, Unknown.
  71. optional string status = 2;
  72. // The last time this condition was updated.
  73. optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastUpdateTime = 6;
  74. // Last time the condition transitioned from one status to another.
  75. optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 7;
  76. // The reason for the condition's last transition.
  77. optional string reason = 4;
  78. // A human readable message indicating details about the transition.
  79. optional string message = 5;
  80. }
  81. // DeploymentList is a list of Deployments.
  82. message DeploymentList {
  83. // Standard list metadata.
  84. // +optional
  85. optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  86. // Items is the list of Deployments.
  87. repeated Deployment items = 2;
  88. }
  89. // DEPRECATED.
  90. // DeploymentRollback stores the information required to rollback a deployment.
  91. message DeploymentRollback {
  92. // Required: This must match the Name of a deployment.
  93. optional string name = 1;
  94. // The annotations to be updated to a deployment
  95. // +optional
  96. map<string, string> updatedAnnotations = 2;
  97. // The config of this deployment rollback.
  98. optional RollbackConfig rollbackTo = 3;
  99. }
  100. // DeploymentSpec is the specification of the desired behavior of the Deployment.
  101. message DeploymentSpec {
  102. // replicas is the number of desired pods. This is a pointer to distinguish between explicit
  103. // zero and not specified. Defaults to 1.
  104. // +optional
  105. optional int32 replicas = 1;
  106. // selector is the label selector for pods. Existing ReplicaSets whose pods are
  107. // selected by this will be the ones affected by this deployment.
  108. // +optional
  109. optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
  110. // Template describes the pods that will be created.
  111. // The only allowed template.spec.restartPolicy value is "Always".
  112. optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
  113. // The deployment strategy to use to replace existing pods with new ones.
  114. // +optional
  115. // +patchStrategy=retainKeys
  116. optional DeploymentStrategy strategy = 4;
  117. // minReadySeconds is the minimum number of seconds for which a newly created pod should be ready
  118. // without any of its container crashing, for it to be considered available.
  119. // Defaults to 0 (pod will be considered available as soon as it is ready)
  120. // +optional
  121. optional int32 minReadySeconds = 5;
  122. // revisionHistoryLimit is the number of old ReplicaSets to retain to allow rollback.
  123. // This is a pointer to distinguish between explicit zero and not specified.
  124. // Defaults to 2.
  125. // +optional
  126. optional int32 revisionHistoryLimit = 6;
  127. // paused indicates that the deployment is paused.
  128. // +optional
  129. optional bool paused = 7;
  130. // DEPRECATED.
  131. // rollbackTo is the config this deployment is rolling back to. Will be cleared after rollback is done.
  132. // +optional
  133. optional RollbackConfig rollbackTo = 8;
  134. // progressDeadlineSeconds is the maximum time in seconds for a deployment to make progress before it
  135. // is considered to be failed. The deployment controller will continue to
  136. // process failed deployments and a condition with a ProgressDeadlineExceeded
  137. // reason will be surfaced in the deployment status. Note that progress will
  138. // not be estimated during the time a deployment is paused. Defaults to 600s.
  139. // +optional
  140. optional int32 progressDeadlineSeconds = 9;
  141. }
  142. // DeploymentStatus is the most recently observed status of the Deployment.
  143. message DeploymentStatus {
  144. // The generation observed by the deployment controller.
  145. // +optional
  146. optional int64 observedGeneration = 1;
  147. // Total number of non-terminating pods targeted by this deployment (their labels match the selector).
  148. // +optional
  149. optional int32 replicas = 2;
  150. // Total number of non-terminating pods targeted by this deployment that have the desired template spec.
  151. // +optional
  152. optional int32 updatedReplicas = 3;
  153. // Total number of non-terminating pods targeted by this Deployment with a Ready Condition.
  154. // +optional
  155. optional int32 readyReplicas = 7;
  156. // Total number of available non-terminating pods (ready for at least minReadySeconds) targeted by this deployment.
  157. // +optional
  158. optional int32 availableReplicas = 4;
  159. // Total number of unavailable pods targeted by this deployment. This is the total number of
  160. // pods that are still required for the deployment to have 100% available capacity. They may
  161. // either be pods that are running but not yet available or pods that still have not been created.
  162. // +optional
  163. optional int32 unavailableReplicas = 5;
  164. // Total number of terminating pods targeted by this deployment. Terminating pods have a non-null
  165. // .metadata.deletionTimestamp and have not yet reached the Failed or Succeeded .status.phase.
  166. //
  167. // This is a beta field and requires enabling DeploymentReplicaSetTerminatingReplicas feature (enabled by default).
  168. // +optional
  169. optional int32 terminatingReplicas = 9;
  170. // Represents the latest available observations of a deployment's current state.
  171. // +patchMergeKey=type
  172. // +patchStrategy=merge
  173. // +listType=map
  174. // +listMapKey=type
  175. repeated DeploymentCondition conditions = 6;
  176. // collisionCount is the count of hash collisions for the Deployment. The Deployment controller uses this
  177. // field as a collision avoidance mechanism when it needs to create the name for the
  178. // newest ReplicaSet.
  179. // +optional
  180. optional int32 collisionCount = 8;
  181. }
  182. // DeploymentStrategy describes how to replace existing pods with new ones.
  183. message DeploymentStrategy {
  184. // Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate.
  185. // +optional
  186. optional string type = 1;
  187. // Rolling update config params. Present only if DeploymentStrategyType =
  188. // RollingUpdate.
  189. // ---
  190. // TODO: Update this to follow our convention for oneOf, whatever we decide it
  191. // to be.
  192. // +optional
  193. optional RollingUpdateDeployment rollingUpdate = 2;
  194. }
  195. // DEPRECATED.
  196. message RollbackConfig {
  197. // The revision to rollback to. If set to 0, rollback to the last revision.
  198. // +optional
  199. optional int64 revision = 1;
  200. }
  201. // Spec to control the desired behavior of rolling update.
  202. message RollingUpdateDeployment {
  203. // The maximum number of pods that can be unavailable during the update.
  204. // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
  205. // Absolute number is calculated from percentage by rounding down.
  206. // This can not be 0 if MaxSurge is 0.
  207. // Defaults to 25%.
  208. // Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods
  209. // immediately when the rolling update starts. Once new pods are ready, old ReplicaSet
  210. // can be scaled down further, followed by scaling up the new ReplicaSet, ensuring
  211. // that the total number of pods available at all times during the update is at
  212. // least 70% of desired pods.
  213. // +optional
  214. optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1;
  215. // The maximum number of pods that can be scheduled above the desired number of
  216. // pods.
  217. // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
  218. // This can not be 0 if MaxUnavailable is 0.
  219. // Absolute number is calculated from percentage by rounding up.
  220. // Defaults to 25%.
  221. // Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when
  222. // the rolling update starts, such that the total number of old and new pods do not exceed
  223. // 130% of desired pods. Once old pods have been killed,
  224. // new ReplicaSet can be scaled up further, ensuring that total number of pods running
  225. // at any time during the update is at most 130% of desired pods.
  226. // +optional
  227. optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2;
  228. }
  229. // RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
  230. message RollingUpdateStatefulSetStrategy {
  231. // Partition indicates the ordinal at which the StatefulSet should be partitioned
  232. // for updates. During a rolling update, all pods from ordinal Replicas-1 to
  233. // Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched.
  234. // This is helpful in being able to do a canary based deployment. The default value is 0.
  235. optional int32 partition = 1;
  236. // maxUnavailable is the maximum number of pods that can be unavailable during the update.
  237. // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
  238. // Absolute number is calculated from percentage by rounding up. This can not be 0.
  239. // Defaults to 1. This field is beta-level and is enabled by default. The field applies to all pods in the range 0 to
  240. // Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it
  241. // will be counted towards MaxUnavailable.
  242. // This setting might not be effective for the OrderedReady podManagementPolicy. That policy ensures pods are created and become ready one at a time.
  243. //
  244. // +featureGate=MaxUnavailableStatefulSet
  245. // +optional
  246. optional .k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 2;
  247. }
  248. // Scale represents a scaling request for a resource.
  249. message Scale {
  250. // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
  251. // +optional
  252. optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  253. // spec defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
  254. // +optional
  255. optional ScaleSpec spec = 2;
  256. // status defines current status of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status. Read-only.
  257. // +optional
  258. optional ScaleStatus status = 3;
  259. }
  260. // ScaleSpec describes the attributes of a scale subresource
  261. message ScaleSpec {
  262. // replicas is the number of observed instances of the scaled object.
  263. // +optional
  264. // +k8s:optional
  265. // +default=0
  266. // +k8s:minimum=0
  267. optional int32 replicas = 1;
  268. }
  269. // ScaleStatus represents the current status of a scale subresource.
  270. message ScaleStatus {
  271. // replias is the actual number of observed instances of the scaled object.
  272. optional int32 replicas = 1;
  273. // selector is a label query over pods that should match the replicas count. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
  274. // +optional
  275. map<string, string> selector = 2;
  276. // targetSelector is the label selector for pods that should match the replicas count. This is a serializated
  277. // version of both map-based and more expressive set-based selectors. This is done to
  278. // avoid introspection in the clients. The string will be in the same format as the
  279. // query-param syntax. If the target type only supports map-based selectors, both this
  280. // field and map-based selector field are populated.
  281. // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
  282. // +optional
  283. optional string targetSelector = 3;
  284. }
  285. // DEPRECATED - This group version of StatefulSet is deprecated by apps/v1beta2/StatefulSet. See the release notes for
  286. // more information.
  287. // StatefulSet represents a set of pods with consistent identities.
  288. // Identities are defined as:
  289. // - Network: A single stable DNS and hostname.
  290. // - Storage: As many VolumeClaims as requested.
  291. //
  292. // The StatefulSet guarantees that a given network identity will always
  293. // map to the same storage identity.
  294. message StatefulSet {
  295. // +optional
  296. optional .k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  297. // Spec defines the desired identities of pods in this set.
  298. // +optional
  299. optional StatefulSetSpec spec = 2;
  300. // Status is the current status of Pods in this StatefulSet. This data
  301. // may be out of date by some window of time.
  302. // +optional
  303. optional StatefulSetStatus status = 3;
  304. }
  305. // StatefulSetCondition describes the state of a statefulset at a certain point.
  306. message StatefulSetCondition {
  307. // Type of statefulset condition.
  308. optional string type = 1;
  309. // Status of the condition, one of True, False, Unknown.
  310. optional string status = 2;
  311. // Last time the condition transitioned from one status to another.
  312. // +optional
  313. optional .k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3;
  314. // The reason for the condition's last transition.
  315. // +optional
  316. optional string reason = 4;
  317. // A human readable message indicating details about the transition.
  318. // +optional
  319. optional string message = 5;
  320. }
  321. // StatefulSetList is a collection of StatefulSets.
  322. message StatefulSetList {
  323. // +optional
  324. optional .k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  325. repeated StatefulSet items = 2;
  326. }
  327. // StatefulSetOrdinals describes the policy used for replica ordinal assignment
  328. // in this StatefulSet.
  329. message StatefulSetOrdinals {
  330. // start is the number representing the first replica's index. It may be used
  331. // to number replicas from an alternate index (eg: 1-indexed) over the default
  332. // 0-indexed names, or to orchestrate progressive movement of replicas from
  333. // one StatefulSet to another.
  334. // If set, replica indices will be in the range:
  335. // [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).
  336. // If unset, defaults to 0. Replica indices will be in the range:
  337. // [0, .spec.replicas).
  338. // +optional
  339. optional int32 start = 1;
  340. }
  341. // StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs
  342. // created from the StatefulSet VolumeClaimTemplates.
  343. message StatefulSetPersistentVolumeClaimRetentionPolicy {
  344. // whenDeleted specifies what happens to PVCs created from StatefulSet
  345. // VolumeClaimTemplates when the StatefulSet is deleted. The default policy
  346. // of `Retain` causes PVCs to not be affected by StatefulSet deletion. The
  347. // `Delete` policy causes those PVCs to be deleted.
  348. optional string whenDeleted = 1;
  349. // whenScaled specifies what happens to PVCs created from StatefulSet
  350. // VolumeClaimTemplates when the StatefulSet is scaled down. The default
  351. // policy of `Retain` causes PVCs to not be affected by a scaledown. The
  352. // `Delete` policy causes the associated PVCs for any excess pods above
  353. // the replica count to be deleted.
  354. optional string whenScaled = 2;
  355. }
  356. // A StatefulSetSpec is the specification of a StatefulSet.
  357. message StatefulSetSpec {
  358. // replicas is the desired number of replicas of the given Template.
  359. // These are replicas in the sense that they are instantiations of the
  360. // same Template, but individual replicas also have a consistent identity.
  361. // If unspecified, defaults to 1.
  362. // TODO: Consider a rename of this field.
  363. // +optional
  364. optional int32 replicas = 1;
  365. // selector is a label query over pods that should match the replica count.
  366. // If empty, defaulted to labels on the pod template.
  367. // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
  368. // +optional
  369. optional .k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
  370. // template is the object that describes the pod that will be created if
  371. // insufficient replicas are detected. Each pod stamped out by the StatefulSet
  372. // will fulfill this Template, but have a unique identity from the rest
  373. // of the StatefulSet. Each pod will be named with the format
  374. // <statefulsetname>-<podindex>. For example, a pod in a StatefulSet named
  375. // "web" with index number "3" would be named "web-3".
  376. optional .k8s.io.api.core.v1.PodTemplateSpec template = 3;
  377. // volumeClaimTemplates is a list of claims that pods are allowed to reference.
  378. // The StatefulSet controller is responsible for mapping network identities to
  379. // claims in a way that maintains the identity of a pod. Every claim in
  380. // this list must have at least one matching (by name) volumeMount in one
  381. // container in the template. A claim in this list takes precedence over
  382. // any volumes in the template, with the same name.
  383. // TODO: Define the behavior if a claim already exists with the same name.
  384. // +optional
  385. // +listType=atomic
  386. repeated .k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
  387. // serviceName is the name of the service that governs this StatefulSet.
  388. // This service must exist before the StatefulSet, and is responsible for
  389. // the network identity of the set. Pods get DNS/hostnames that follow the
  390. // pattern: pod-specific-string.serviceName.default.svc.cluster.local
  391. // where "pod-specific-string" is managed by the StatefulSet controller.
  392. // +optional
  393. optional string serviceName = 5;
  394. // podManagementPolicy controls how pods are created during initial scale up,
  395. // when replacing pods on nodes, or when scaling down. The default policy is
  396. // `OrderedReady`, where pods are created in increasing order (pod-0, then
  397. // pod-1, etc) and the controller will wait until each pod is ready before
  398. // continuing. When scaling down, the pods are removed in the opposite order.
  399. // The alternative policy is `Parallel` which will create pods in parallel
  400. // to match the desired scale without waiting, and on scale down will delete
  401. // all pods at once.
  402. // +optional
  403. optional string podManagementPolicy = 6;
  404. // updateStrategy indicates the StatefulSetUpdateStrategy that will be
  405. // employed to update Pods in the StatefulSet when a revision is made to
  406. // Template.
  407. optional StatefulSetUpdateStrategy updateStrategy = 7;
  408. // revisionHistoryLimit is the maximum number of revisions that will
  409. // be maintained in the StatefulSet's revision history. The revision history
  410. // consists of all revisions not represented by a currently applied
  411. // StatefulSetSpec version. The default value is 10.
  412. optional int32 revisionHistoryLimit = 8;
  413. // minReadySeconds is the minimum number of seconds for which a newly created pod should be ready
  414. // without any of its container crashing for it to be considered available.
  415. // Defaults to 0 (pod will be considered available as soon as it is ready)
  416. // +optional
  417. optional int32 minReadySeconds = 9;
  418. // persistentVolumeClaimRetentionPolicy describes the lifecycle of persistent
  419. // volume claims created from volumeClaimTemplates. By default, all persistent
  420. // volume claims are created as needed and retained until manually deleted. This
  421. // policy allows the lifecycle to be altered, for example by deleting persistent
  422. // volume claims when their stateful set is deleted, or when their pod is scaled
  423. // down.
  424. // +optional
  425. optional StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy = 10;
  426. // ordinals controls the numbering of replica indices in a StatefulSet. The
  427. // default ordinals behavior assigns a "0" index to the first replica and
  428. // increments the index by one for each additional replica requested.
  429. // +optional
  430. optional StatefulSetOrdinals ordinals = 11;
  431. }
  432. // StatefulSetStatus represents the current state of a StatefulSet.
  433. message StatefulSetStatus {
  434. // observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the
  435. // StatefulSet's generation, which is updated on mutation by the API Server.
  436. // +optional
  437. optional int64 observedGeneration = 1;
  438. // replicas is the number of Pods created by the StatefulSet controller.
  439. optional int32 replicas = 2;
  440. // readyReplicas is the number of pods created by this StatefulSet controller with a Ready Condition.
  441. optional int32 readyReplicas = 3;
  442. // currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version
  443. // indicated by currentRevision.
  444. optional int32 currentReplicas = 4;
  445. // updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version
  446. // indicated by updateRevision.
  447. optional int32 updatedReplicas = 5;
  448. // currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the
  449. // sequence [0,currentReplicas).
  450. optional string currentRevision = 6;
  451. // updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence
  452. // [replicas-updatedReplicas,replicas)
  453. optional string updateRevision = 7;
  454. // collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller
  455. // uses this field as a collision avoidance mechanism when it needs to create the name for the
  456. // newest ControllerRevision.
  457. // +optional
  458. optional int32 collisionCount = 9;
  459. // conditions represent the latest available observations of a statefulset's current state.
  460. // +optional
  461. // +patchMergeKey=type
  462. // +patchStrategy=merge
  463. // +listType=map
  464. // +listMapKey=type
  465. repeated StatefulSetCondition conditions = 10;
  466. // availableReplicas is the total number of available pods (ready for at least minReadySeconds) targeted by this StatefulSet.
  467. // +optional
  468. optional int32 availableReplicas = 11;
  469. }
  470. // StatefulSetUpdateStrategy indicates the strategy that the StatefulSet
  471. // controller will use to perform updates. It includes any additional parameters
  472. // necessary to perform the update for the indicated strategy.
  473. message StatefulSetUpdateStrategy {
  474. // Type indicates the type of the StatefulSetUpdateStrategy.
  475. optional string type = 1;
  476. // RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.
  477. optional RollingUpdateStatefulSetStrategy rollingUpdate = 2;
  478. }