launchdarkly / ld-relay-helm

A helm chart to ease deployment of the LaunchDarkly Relay Proxy
Other
6 stars 12 forks source link

feat: Add support for PodDistriputionBudget #46

Closed pjaak closed 1 year ago

pjaak commented 1 year ago

Requirements

Related issues https://github.com/launchdarkly/ld-relay-helm/issues/42

Describe the solution you've provided

Added an option to enable a PodDistruptionBudget for the relay deployment. In the values file you can specify a maxUnavailable or a minAvailable, but can't specify both. If both are specified the maxUnavailable takes precedence. If you enabled the PDB but don't specify any max or min values then minAvailable will be set with a value of 0. Tests have been added to cover these cases

Additional context

I had to update some of the go packages and dependencies to support the policy/v1 for the PDB. Can confirm all tests pass successfully. Also had to update some of the tests in the deployment.