warnings: PodDisruptionBudget is deprecated

Open
#64 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
48/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Stale
Tech stack
helm, kubernetes

Research direction

Start with Rocketchat/templatespoddisruptionbudget.yaml and inspect how the chart currently selects the PodDisruptionBudget API version. Check the Helm capability condition against the Kubernetes versions named in the issue, then verify that the rendered chart uses policy/v1 where available and the fallback remains valid for older clusters.

Written by the indexing model from the issue text.

Description

policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget

Possible solution:
in Rocketchat\templatespoddisruptionbudget.yaml file modify:

`{{- if .Capabilities.APIVersions.Has "policy/v1/PodDisruptionBudget" }}
apiVersion: policy/v1

{{- else }}
apiVersion: policy/v1beta1
{{- end }}`

Dominant language
Shell
Stars
48
Forks
83
Avg merge
2m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from RocketChat/helm-charts

All issues in RocketChat/helm-charts

Similar issues

More Shell/Bash issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.