mirror of
https://github.com/coder/coder.git
synced 2026-10-16 14:48:56 +08:00
closes #28797 adds support for specifying a custom value for `coder.strategy` which gets applied to the `Deployment` object. tests included. pre: ``` ➜ helm-deployment-pzxt git:(helm-deployment-pzxt) helm template coder coder-v2/coder --set coder.image.tag=v2.37.2 | grep -A5 strategy ➜ helm-deployment-pzxt git:(helm-deployment-pzxt) ➜ helm-deployment-pzxt git:(helm-deployment-pzxt) helm template coder helm/coder --set coder.image.tag=v2.37.2 | grep -A5 strategy ➜ helm-deployment-pzxt git:(helm-deployment-pzxt) ``` post: ``` ➜ helm-deployment-pzxt git:(helm-deployment-pzxt) helm template coder helm/coder --set coder.image.tag=v2.37.2 --set coder.strategy.type=RollingUpdate,coder.strategy.rollingUpdate.maxSurge=50%,coder.strategy.rollingUpdate.maxUnavailable=3 | grep -A5 strategy strategy: rollingUpdate: maxSurge: 50% maxUnavailable: 3 type: RollingUpdate template: ```