mirror of https://git.rancher.io/charts
27 lines
856 B
YAML
27 lines
856 B
YAML
|
{{- if .Capabilities.APIVersions.Has "policy/v1/PodDisruptionBudget" }}
|
||
|
apiVersion: policy/v1
|
||
|
{{ else }}
|
||
|
apiVersion: policy/v1beta1
|
||
|
{{ end -}}
|
||
|
kind: PodDisruptionBudget
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: '{{ template "gatekeeper.name" . }}'
|
||
|
chart: '{{ template "gatekeeper.name" . }}'
|
||
|
gatekeeper.sh/system: "yes"
|
||
|
heritage: '{{ .Release.Service }}'
|
||
|
release: '{{ .Release.Name }}'
|
||
|
name: gatekeeper-controller-manager
|
||
|
namespace: '{{ .Release.Namespace }}'
|
||
|
spec:
|
||
|
minAvailable: {{ .Values.pdb.controllerManager.minAvailable }}
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: '{{ template "gatekeeper.name" . }}'
|
||
|
chart: '{{ template "gatekeeper.name" . }}'
|
||
|
control-plane: controller-manager
|
||
|
gatekeeper.sh/operation: webhook
|
||
|
gatekeeper.sh/system: "yes"
|
||
|
heritage: '{{ .Release.Service }}'
|
||
|
release: '{{ .Release.Name }}'
|