Skip to content

Commit 15261ac

Browse files
committed
fix: Add OnDelete to allowed strategy values (#3519)
Add OnDelete to allowed strategy values
1 parent 50d963c commit 15261ac

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

deployments/helm-chart/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ Parameter | Description | Default
255255
`controller.autoscaling.maxReplicas` | Maximum number of replicas for the HPA. | 3
256256
`controller.autoscaling.targetCPUUtilizationPercentage` | The target CPU utilization percentage. | 50
257257
`controller.autoscaling.targetMemoryUtilizationPercentage` | The target memory utilization percentage. | 50
258-
`controller.strategy` | Specifies the strategy used to replace old Pods by new ones. [docs](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy) | {}
258+
`controller.strategy` | Specifies the strategy used to replace old Pods with new ones. Docs for [Deployment update strategy](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy) and [Daemonset update strategy](https://kubernetes.io/docs/tasks/manage-daemon/update-daemon-set/#daemonset-update-strategy) | {}
259259
`controller.disableIPV6` | Disable IPV6 listeners explicitly for nodes that do not support the IPV6 stack. | false
260260
`rbac.create` | Configures RBAC. | true
261261
`prometheus.create` | Expose NGINX or NGINX Plus metrics in the Prometheus format. | false

deployments/helm-chart/values.schema.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,8 @@
507507
"type": "string",
508508
"enum": [
509509
"Recreate",
510-
"RollingUpdate"
510+
"RollingUpdate",
511+
"OnDelete"
511512
]
512513
}
513514
}

deployments/helm-chart/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ controller:
174174
## The minimum number of seconds for which a newly created Pod should be ready without any of its containers crashing, for it to be considered available.
175175
minReadySeconds: 0
176176

177-
## Strategy used to replace old Pods by new ones. .spec.strategy.type can be "Recreate" or "RollingUpdate". "RollingUpdate" is the default value.
177+
## Strategy used to replace old Pods by new ones. .spec.strategy.type can be "Recreate" or "RollingUpdate" for Deployments, and "OnDelete" or "RollingUpdate" for Daemonsets. "RollingUpdate" is the default value.
178178
strategy: {}
179179

180180
## Extra containers for the Ingress Controller pods.

docs/content/installation/installation-with-helm.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ The following tables lists the configurable parameters of the NGINX Ingress Cont
243243
|``controller.autoscaling.maxReplicas`` | Maximum number of replicas for the HPA. | 3 |
244244
|``controller.autoscaling.targetCPUUtilizationPercentage`` | The target CPU utilization percentage. | 50 |
245245
|``controller.autoscaling.targetMemoryUtilizationPercentage`` | The target memory utilization percentage. | 50 |
246-
|``controller.strategy`` | Specifies the strategy used to replace old Pods with new ones. [docs](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy) | {} |
246+
|``controller.strategy`` | Specifies the strategy used to replace old Pods with new ones. Docs for [Deployment update strategy](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy) and [Daemonset update strategy](https://kubernetes.io/docs/tasks/manage-daemon/update-daemon-set/#daemonset-update-strategy). | {} |
247247
| `controller.disableIPV6` | Disable IPV6 listeners explicitly for nodes that do not support the IPV6 stack. | false |
248248
|``rbac.create`` | Configures RBAC. | true |
249249
|``prometheus.create`` | Expose NGINX or NGINX Plus metrics in the Prometheus format. | false |

0 commit comments

Comments
 (0)