generated.proto 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556
  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. // observedGeneration is the generation observed by the deployment controller.
  145. // +optional
  146. optional int64 observedGeneration = 1;
  147. // replicas is the total number of non-terminated pods targeted by this deployment (their labels match the selector).
  148. // +optional
  149. optional int32 replicas = 2;
  150. // updatedReplicas is the total number of non-terminated pods targeted by this deployment that have the desired template spec.
  151. // +optional
  152. optional int32 updatedReplicas = 3;
  153. // readyReplicas is the number of pods targeted by this Deployment controller with a Ready Condition.
  154. // +optional
  155. optional int32 readyReplicas = 7;
  156. // Total number of available pods (ready for at least minReadySeconds) targeted by this deployment.
  157. // +optional
  158. optional int32 availableReplicas = 4;
  159. // unavailableReplicas is the 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. // Conditions represent the latest available observations of a deployment's current state.
  165. // +patchMergeKey=type
  166. // +patchStrategy=merge
  167. repeated DeploymentCondition conditions = 6;
  168. // collisionCount is the count of hash collisions for the Deployment. The Deployment controller uses this
  169. // field as a collision avoidance mechanism when it needs to create the name for the
  170. // newest ReplicaSet.
  171. // +optional
  172. optional int32 collisionCount = 8;
  173. }
  174. // DeploymentStrategy describes how to replace existing pods with new ones.
  175. message DeploymentStrategy {
  176. // Type of deployment. Can be "Recreate" or "RollingUpdate". Default is RollingUpdate.
  177. // +optional
  178. optional string type = 1;
  179. // Rolling update config params. Present only if DeploymentStrategyType =
  180. // RollingUpdate.
  181. // ---
  182. // TODO: Update this to follow our convention for oneOf, whatever we decide it
  183. // to be.
  184. // +optional
  185. optional RollingUpdateDeployment rollingUpdate = 2;
  186. }
  187. // DEPRECATED.
  188. message RollbackConfig {
  189. // The revision to rollback to. If set to 0, rollback to the last revision.
  190. // +optional
  191. optional int64 revision = 1;
  192. }
  193. // Spec to control the desired behavior of rolling update.
  194. message RollingUpdateDeployment {
  195. // The maximum number of pods that can be unavailable during the update.
  196. // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
  197. // Absolute number is calculated from percentage by rounding down.
  198. // This can not be 0 if MaxSurge is 0.
  199. // Defaults to 25%.
  200. // Example: when this is set to 30%, the old ReplicaSet can be scaled down to 70% of desired pods
  201. // immediately when the rolling update starts. Once new pods are ready, old ReplicaSet
  202. // can be scaled down further, followed by scaling up the new ReplicaSet, ensuring
  203. // that the total number of pods available at all times during the update is at
  204. // least 70% of desired pods.
  205. // +optional
  206. optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 1;
  207. // The maximum number of pods that can be scheduled above the desired number of
  208. // pods.
  209. // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
  210. // This can not be 0 if MaxUnavailable is 0.
  211. // Absolute number is calculated from percentage by rounding up.
  212. // Defaults to 25%.
  213. // Example: when this is set to 30%, the new ReplicaSet can be scaled up immediately when
  214. // the rolling update starts, such that the total number of old and new pods do not exceed
  215. // 130% of desired pods. Once old pods have been killed,
  216. // new ReplicaSet can be scaled up further, ensuring that total number of pods running
  217. // at any time during the update is at most 130% of desired pods.
  218. // +optional
  219. optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxSurge = 2;
  220. }
  221. // RollingUpdateStatefulSetStrategy is used to communicate parameter for RollingUpdateStatefulSetStrategyType.
  222. message RollingUpdateStatefulSetStrategy {
  223. // Partition indicates the ordinal at which the StatefulSet should be partitioned
  224. // for updates. During a rolling update, all pods from ordinal Replicas-1 to
  225. // Partition are updated. All pods from ordinal Partition-1 to 0 remain untouched.
  226. // This is helpful in being able to do a canary based deployment. The default value is 0.
  227. optional int32 partition = 1;
  228. // maxUnavailable is the maximum number of pods that can be unavailable during the update.
  229. // Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%).
  230. // Absolute number is calculated from percentage by rounding up. This can not be 0.
  231. // Defaults to 1. This field is alpha-level and is only honored by servers that enable the
  232. // MaxUnavailableStatefulSet feature. The field applies to all pods in the range 0 to
  233. // Replicas-1. That means if there is any unavailable pod in the range 0 to Replicas-1, it
  234. // will be counted towards MaxUnavailable.
  235. // +optional
  236. optional k8s.io.apimachinery.pkg.util.intstr.IntOrString maxUnavailable = 2;
  237. }
  238. // Scale represents a scaling request for a resource.
  239. message Scale {
  240. // Standard object metadata; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata.
  241. // +optional
  242. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  243. // spec defines the behavior of the scale. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#spec-and-status.
  244. // +optional
  245. optional ScaleSpec spec = 2;
  246. // 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.
  247. // +optional
  248. optional ScaleStatus status = 3;
  249. }
  250. // ScaleSpec describes the attributes of a scale subresource
  251. message ScaleSpec {
  252. // replicas is the number of observed instances of the scaled object.
  253. // +optional
  254. optional int32 replicas = 1;
  255. }
  256. // ScaleStatus represents the current status of a scale subresource.
  257. message ScaleStatus {
  258. // replias is the actual number of observed instances of the scaled object.
  259. optional int32 replicas = 1;
  260. // 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/
  261. // +optional
  262. map<string, string> selector = 2;
  263. // targetSelector is the label selector for pods that should match the replicas count. This is a serializated
  264. // version of both map-based and more expressive set-based selectors. This is done to
  265. // avoid introspection in the clients. The string will be in the same format as the
  266. // query-param syntax. If the target type only supports map-based selectors, both this
  267. // field and map-based selector field are populated.
  268. // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
  269. // +optional
  270. optional string targetSelector = 3;
  271. }
  272. // DEPRECATED - This group version of StatefulSet is deprecated by apps/v1beta2/StatefulSet. See the release notes for
  273. // more information.
  274. // StatefulSet represents a set of pods with consistent identities.
  275. // Identities are defined as:
  276. // - Network: A single stable DNS and hostname.
  277. // - Storage: As many VolumeClaims as requested.
  278. //
  279. // The StatefulSet guarantees that a given network identity will always
  280. // map to the same storage identity.
  281. message StatefulSet {
  282. // +optional
  283. optional k8s.io.apimachinery.pkg.apis.meta.v1.ObjectMeta metadata = 1;
  284. // Spec defines the desired identities of pods in this set.
  285. // +optional
  286. optional StatefulSetSpec spec = 2;
  287. // Status is the current status of Pods in this StatefulSet. This data
  288. // may be out of date by some window of time.
  289. // +optional
  290. optional StatefulSetStatus status = 3;
  291. }
  292. // StatefulSetCondition describes the state of a statefulset at a certain point.
  293. message StatefulSetCondition {
  294. // Type of statefulset condition.
  295. optional string type = 1;
  296. // Status of the condition, one of True, False, Unknown.
  297. optional string status = 2;
  298. // Last time the condition transitioned from one status to another.
  299. // +optional
  300. optional k8s.io.apimachinery.pkg.apis.meta.v1.Time lastTransitionTime = 3;
  301. // The reason for the condition's last transition.
  302. // +optional
  303. optional string reason = 4;
  304. // A human readable message indicating details about the transition.
  305. // +optional
  306. optional string message = 5;
  307. }
  308. // StatefulSetList is a collection of StatefulSets.
  309. message StatefulSetList {
  310. // +optional
  311. optional k8s.io.apimachinery.pkg.apis.meta.v1.ListMeta metadata = 1;
  312. repeated StatefulSet items = 2;
  313. }
  314. // StatefulSetOrdinals describes the policy used for replica ordinal assignment
  315. // in this StatefulSet.
  316. message StatefulSetOrdinals {
  317. // start is the number representing the first replica's index. It may be used
  318. // to number replicas from an alternate index (eg: 1-indexed) over the default
  319. // 0-indexed names, or to orchestrate progressive movement of replicas from
  320. // one StatefulSet to another.
  321. // If set, replica indices will be in the range:
  322. // [.spec.ordinals.start, .spec.ordinals.start + .spec.replicas).
  323. // If unset, defaults to 0. Replica indices will be in the range:
  324. // [0, .spec.replicas).
  325. // +optional
  326. optional int32 start = 1;
  327. }
  328. // StatefulSetPersistentVolumeClaimRetentionPolicy describes the policy used for PVCs
  329. // created from the StatefulSet VolumeClaimTemplates.
  330. message StatefulSetPersistentVolumeClaimRetentionPolicy {
  331. // whenDeleted specifies what happens to PVCs created from StatefulSet
  332. // VolumeClaimTemplates when the StatefulSet is deleted. The default policy
  333. // of `Retain` causes PVCs to not be affected by StatefulSet deletion. The
  334. // `Delete` policy causes those PVCs to be deleted.
  335. optional string whenDeleted = 1;
  336. // whenScaled specifies what happens to PVCs created from StatefulSet
  337. // VolumeClaimTemplates when the StatefulSet is scaled down. The default
  338. // policy of `Retain` causes PVCs to not be affected by a scaledown. The
  339. // `Delete` policy causes the associated PVCs for any excess pods above
  340. // the replica count to be deleted.
  341. optional string whenScaled = 2;
  342. }
  343. // A StatefulSetSpec is the specification of a StatefulSet.
  344. message StatefulSetSpec {
  345. // replicas is the desired number of replicas of the given Template.
  346. // These are replicas in the sense that they are instantiations of the
  347. // same Template, but individual replicas also have a consistent identity.
  348. // If unspecified, defaults to 1.
  349. // TODO: Consider a rename of this field.
  350. // +optional
  351. optional int32 replicas = 1;
  352. // selector is a label query over pods that should match the replica count.
  353. // If empty, defaulted to labels on the pod template.
  354. // More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#label-selectors
  355. // +optional
  356. optional k8s.io.apimachinery.pkg.apis.meta.v1.LabelSelector selector = 2;
  357. // template is the object that describes the pod that will be created if
  358. // insufficient replicas are detected. Each pod stamped out by the StatefulSet
  359. // will fulfill this Template, but have a unique identity from the rest
  360. // of the StatefulSet. Each pod will be named with the format
  361. // <statefulsetname>-<podindex>. For example, a pod in a StatefulSet named
  362. // "web" with index number "3" would be named "web-3".
  363. optional k8s.io.api.core.v1.PodTemplateSpec template = 3;
  364. // volumeClaimTemplates is a list of claims that pods are allowed to reference.
  365. // The StatefulSet controller is responsible for mapping network identities to
  366. // claims in a way that maintains the identity of a pod. Every claim in
  367. // this list must have at least one matching (by name) volumeMount in one
  368. // container in the template. A claim in this list takes precedence over
  369. // any volumes in the template, with the same name.
  370. // TODO: Define the behavior if a claim already exists with the same name.
  371. // +optional
  372. repeated k8s.io.api.core.v1.PersistentVolumeClaim volumeClaimTemplates = 4;
  373. // serviceName is the name of the service that governs this StatefulSet.
  374. // This service must exist before the StatefulSet, and is responsible for
  375. // the network identity of the set. Pods get DNS/hostnames that follow the
  376. // pattern: pod-specific-string.serviceName.default.svc.cluster.local
  377. // where "pod-specific-string" is managed by the StatefulSet controller.
  378. optional string serviceName = 5;
  379. // podManagementPolicy controls how pods are created during initial scale up,
  380. // when replacing pods on nodes, or when scaling down. The default policy is
  381. // `OrderedReady`, where pods are created in increasing order (pod-0, then
  382. // pod-1, etc) and the controller will wait until each pod is ready before
  383. // continuing. When scaling down, the pods are removed in the opposite order.
  384. // The alternative policy is `Parallel` which will create pods in parallel
  385. // to match the desired scale without waiting, and on scale down will delete
  386. // all pods at once.
  387. // +optional
  388. optional string podManagementPolicy = 6;
  389. // updateStrategy indicates the StatefulSetUpdateStrategy that will be
  390. // employed to update Pods in the StatefulSet when a revision is made to
  391. // Template.
  392. optional StatefulSetUpdateStrategy updateStrategy = 7;
  393. // revisionHistoryLimit is the maximum number of revisions that will
  394. // be maintained in the StatefulSet's revision history. The revision history
  395. // consists of all revisions not represented by a currently applied
  396. // StatefulSetSpec version. The default value is 10.
  397. optional int32 revisionHistoryLimit = 8;
  398. // minReadySeconds is the minimum number of seconds for which a newly created pod should be ready
  399. // without any of its container crashing for it to be considered available.
  400. // Defaults to 0 (pod will be considered available as soon as it is ready)
  401. // +optional
  402. optional int32 minReadySeconds = 9;
  403. // PersistentVolumeClaimRetentionPolicy describes the policy used for PVCs created from
  404. // the StatefulSet VolumeClaimTemplates. This requires the
  405. // StatefulSetAutoDeletePVC feature gate to be enabled, which is alpha.
  406. // +optional
  407. optional StatefulSetPersistentVolumeClaimRetentionPolicy persistentVolumeClaimRetentionPolicy = 10;
  408. // ordinals controls the numbering of replica indices in a StatefulSet. The
  409. // default ordinals behavior assigns a "0" index to the first replica and
  410. // increments the index by one for each additional replica requested. Using
  411. // the ordinals field requires the StatefulSetStartOrdinal feature gate to be
  412. // enabled, which is beta.
  413. // +optional
  414. optional StatefulSetOrdinals ordinals = 11;
  415. }
  416. // StatefulSetStatus represents the current state of a StatefulSet.
  417. message StatefulSetStatus {
  418. // observedGeneration is the most recent generation observed for this StatefulSet. It corresponds to the
  419. // StatefulSet's generation, which is updated on mutation by the API Server.
  420. // +optional
  421. optional int64 observedGeneration = 1;
  422. // replicas is the number of Pods created by the StatefulSet controller.
  423. optional int32 replicas = 2;
  424. // readyReplicas is the number of pods created by this StatefulSet controller with a Ready Condition.
  425. optional int32 readyReplicas = 3;
  426. // currentReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version
  427. // indicated by currentRevision.
  428. optional int32 currentReplicas = 4;
  429. // updatedReplicas is the number of Pods created by the StatefulSet controller from the StatefulSet version
  430. // indicated by updateRevision.
  431. optional int32 updatedReplicas = 5;
  432. // currentRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the
  433. // sequence [0,currentReplicas).
  434. optional string currentRevision = 6;
  435. // updateRevision, if not empty, indicates the version of the StatefulSet used to generate Pods in the sequence
  436. // [replicas-updatedReplicas,replicas)
  437. optional string updateRevision = 7;
  438. // collisionCount is the count of hash collisions for the StatefulSet. The StatefulSet controller
  439. // uses this field as a collision avoidance mechanism when it needs to create the name for the
  440. // newest ControllerRevision.
  441. // +optional
  442. optional int32 collisionCount = 9;
  443. // conditions represent the latest available observations of a statefulset's current state.
  444. // +optional
  445. // +patchMergeKey=type
  446. // +patchStrategy=merge
  447. repeated StatefulSetCondition conditions = 10;
  448. // availableReplicas is the total number of available pods (ready for at least minReadySeconds) targeted by this StatefulSet.
  449. // +optional
  450. optional int32 availableReplicas = 11;
  451. }
  452. // StatefulSetUpdateStrategy indicates the strategy that the StatefulSet
  453. // controller will use to perform updates. It includes any additional parameters
  454. // necessary to perform the update for the indicated strategy.
  455. message StatefulSetUpdateStrategy {
  456. // Type indicates the type of the StatefulSetUpdateStrategy.
  457. optional string type = 1;
  458. // RollingUpdate is used to communicate parameters when Type is RollingUpdateStatefulSetStrategyType.
  459. optional RollingUpdateStatefulSetStrategy rollingUpdate = 2;
  460. }