Skip to content

Commit

Permalink
[chore] upgrade nsqd-pdb to policy/v1
Browse files Browse the repository at this point in the history
Signed-off-by: Kingdon Barrett <kingdon@weave.works>
  • Loading branch information
Kingdon Barrett committed Sep 27, 2023
1 parent de81548 commit 3b0231f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions charts/nsqd/templates/_helpers.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,10 @@ extensions/v1beta1
apps/v1
{{- end -}}
{{- end -}}
{{- define "policyAPIVersion" -}}
{{- if .Capabilities.APIVersions.Has "policy/v1beta1" -}}
policy/v1beta1
{{- else -}}
policy/v1
{{- end -}}
{{- end -}}
2 changes: 1 addition & 1 deletion charts/nsqd/templates/nsqd-pdb.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: policy/v1beta1
apiVersion: {{ template "policyAPIVersion" . }}
kind: PodDisruptionBudget
metadata:
name: deis-nsqd
Expand Down

0 comments on commit 3b0231f

Please sign in to comment.