Skip to content

Commit

Permalink
fix: Add OnDelete to allowed strategy values (#3519)
Browse files Browse the repository at this point in the history
Add OnDelete to allowed strategy values
  • Loading branch information
ciarams87 authored Feb 7, 2023
1 parent 2efa8d4 commit b5d400a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion deployments/helm-chart/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ Parameter | Description | Default
`controller.autoscaling.maxReplicas` | Maximum number of replicas for the HPA. | 3
`controller.autoscaling.targetCPUUtilizationPercentage` | The target CPU utilization percentage. | 50
`controller.autoscaling.targetMemoryUtilizationPercentage` | The target memory utilization percentage. | 50
`controller.strategy` | Specifies the strategy used to replace old Pods by new ones. [docs](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy) | {}
`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) | {}
`controller.disableIPV6` | Disable IPV6 listeners explicitly for nodes that do not support the IPV6 stack. | false
`rbac.create` | Configures RBAC. | true
`prometheus.create` | Expose NGINX or NGINX Plus metrics in the Prometheus format. | true
Expand Down
3 changes: 2 additions & 1 deletion deployments/helm-chart/values.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,8 @@
"type": "string",
"enum": [
"Recreate",
"RollingUpdate"
"RollingUpdate",
"OnDelete"
]
}
}
Expand Down
2 changes: 1 addition & 1 deletion deployments/helm-chart/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ controller:
## 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.
minReadySeconds: 0

## Strategy used to replace old Pods by new ones. .spec.strategy.type can be "Recreate" or "RollingUpdate". "RollingUpdate" is the default value.
## 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.
strategy: {}

## Extra containers for the Ingress Controller pods.
Expand Down
2 changes: 1 addition & 1 deletion docs/content/installation/installation-with-helm.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ The following tables lists the configurable parameters of the NGINX Ingress Cont
|``controller.autoscaling.maxReplicas`` | Maximum number of replicas for the HPA. | 3 |
|``controller.autoscaling.targetCPUUtilizationPercentage`` | The target CPU utilization percentage. | 50 |
|``controller.autoscaling.targetMemoryUtilizationPercentage`` | The target memory utilization percentage. | 50 |
|``controller.strategy`` | Specifies the strategy used to replace old Pods with new ones. [docs](https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy) | {} |
|``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). | {} |
| `controller.disableIPV6` | Disable IPV6 listeners explicitly for nodes that do not support the IPV6 stack. | false |
|``rbac.create`` | Configures RBAC. | true |
|``prometheus.create`` | Expose NGINX or NGINX Plus metrics in the Prometheus format. | false |
Expand Down

0 comments on commit b5d400a

Please sign in to comment.