mirror of
https://github.com/fluxcd/flagger.git
synced 2026-04-15 06:57:34 +00:00
use PodDisruptionBudget API policy/v1 if available
Signed-off-by: Brian Dols <brian.dols@inky.com>
This commit is contained in:
@@ -1,5 +1,9 @@
|
|||||||
{{- if .Values.podDisruptionBudget.enabled }}
|
{{- if .Values.podDisruptionBudget.enabled }}
|
||||||
|
{{- if .Capabilities.APIVersions.Has "policy/v1" -}}
|
||||||
|
apiVersion: policy/v1
|
||||||
|
{{- else }}
|
||||||
apiVersion: policy/v1beta1
|
apiVersion: policy/v1beta1
|
||||||
|
{{- end }}
|
||||||
kind: PodDisruptionBudget
|
kind: PodDisruptionBudget
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ template "flagger.name" . }}
|
name: {{ template "flagger.name" . }}
|
||||||
|
|||||||
@@ -1,5 +1,9 @@
|
|||||||
{{- if .Values.podDisruptionBudget.enabled }}
|
{{- if .Values.podDisruptionBudget.enabled }}
|
||||||
|
{{- if .Capabilities.APIVersions.Has "policy/v1" -}}
|
||||||
|
apiVersion: policy/v1
|
||||||
|
{{- else }}
|
||||||
apiVersion: policy/v1beta1
|
apiVersion: policy/v1beta1
|
||||||
|
{{- end }}
|
||||||
kind: PodDisruptionBudget
|
kind: PodDisruptionBudget
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "loadtester.fullname" . }}
|
name: {{ include "loadtester.fullname" . }}
|
||||||
|
|||||||
Reference in New Issue
Block a user