// // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is // regenerated. // namespace k8s.Models { using Newtonsoft.Json; using System.Linq; /// /// Spec to control the desired behavior of daemon set rolling update. /// public partial class V1RollingUpdateDaemonSet { /// /// Initializes a new instance of the V1RollingUpdateDaemonSet class. /// public V1RollingUpdateDaemonSet() { CustomInit(); } /// /// Initializes a new instance of the V1RollingUpdateDaemonSet class. /// /// The maximum number of DaemonSet pods /// that can be unavailable during the update. Value can be an absolute /// number (ex: 5) or a percentage of total number of DaemonSet pods at /// the start of the update (ex: 10%). Absolute number is calculated /// from percentage by rounding up. This cannot be 0. Default value is /// 1. Example: when this is set to 30%, at most 30% of the total /// number of nodes that should be running the daemon pod (i.e. /// status.desiredNumberScheduled) can have their pods stopped for an /// update at any given time. The update starts by stopping at most 30% /// of those DaemonSet pods and then brings up new DaemonSet pods in /// their place. Once the new pods are available, it then proceeds onto /// other DaemonSet pods, thus ensuring that at least 70% of original /// number of DaemonSet pods are available at all times during the /// update. public V1RollingUpdateDaemonSet(IntstrIntOrString maxUnavailable = default(IntstrIntOrString)) { MaxUnavailable = maxUnavailable; CustomInit(); } /// /// An initialization method that performs custom operations like setting defaults /// partial void CustomInit(); /// /// Gets or sets the maximum number of DaemonSet pods that can be /// unavailable during the update. Value can be an absolute number (ex: /// 5) or a percentage of total number of DaemonSet pods at the start /// of the update (ex: 10%). Absolute number is calculated from /// percentage by rounding up. This cannot be 0. Default value is 1. /// Example: when this is set to 30%, at most 30% of the total number /// of nodes that should be running the daemon pod (i.e. /// status.desiredNumberScheduled) can have their pods stopped for an /// update at any given time. The update starts by stopping at most 30% /// of those DaemonSet pods and then brings up new DaemonSet pods in /// their place. Once the new pods are available, it then proceeds onto /// other DaemonSet pods, thus ensuring that at least 70% of original /// number of DaemonSet pods are available at all times during the /// update. /// [JsonProperty(PropertyName = "maxUnavailable")] public IntstrIntOrString MaxUnavailable { get; set; } } }