mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-12-28 08:59:34 -05:00
21 lines
662 B
YAML
21 lines
662 B
YAML
{{- if and (or .Values.externalWorkloads.enabled .Values.clustermesh.useAPIServer) .Values.clustermesh.apiserver.podDisruptionBudget.enabled }}
|
|
{{- $component := .Values.clustermesh.apiserver.podDisruptionBudget }}
|
|
apiVersion: {{ include "podDisruptionBudget.apiVersion" . }}
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
name: clustermesh-apiserver
|
|
namespace: {{ .Release.Namespace }}
|
|
labels:
|
|
k8s-app: clustermesh-apiserver
|
|
spec:
|
|
{{- with $component.maxUnavailable }}
|
|
maxUnavailable: {{ . }}
|
|
{{- end }}
|
|
{{- with $component.minAvailable }}
|
|
minAvailable: {{ . }}
|
|
{{- end }}
|
|
selector:
|
|
matchLabels:
|
|
k8s-app: clustermesh-apiserver
|
|
{{- end }}
|