mirror of
https://github.com/bitnami/charts.git
synced 2026-03-10 15:07:49 +08:00
* [bitnami/scdf] General improvements * Add TLS section * Update bitnami/spring-cloud-dataflow/README.md Co-authored-by: Juan Ariza Toledano <juanariza@vmware.com> * Apply suggestions Co-authored-by: Juan Ariza Toledano <juanariza@vmware.com>
26 lines
991 B
YAML
26 lines
991 B
YAML
{{- if .Values.server.pdb.create }}
|
|
apiVersion: policy/v1beta1
|
|
kind: PodDisruptionBudget
|
|
metadata:
|
|
name: {{ include "scdf.fullname" . }}-server
|
|
labels: {{- include "common.labels.standard" . | nindent 4 }}
|
|
app.kubernetes.io/component: server
|
|
{{- if .Values.commonLabels }}
|
|
{{- include "common.tplvalues.render" ( dict "value" .Values.commonLabels "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
namespace: {{ .Release.Namespace }}
|
|
{{- if .Values.commonAnnotations }}
|
|
annotations: {{- include "common.tplvalues.render" ( dict "value" .Values.commonAnnotations "context" $ ) | nindent 4 }}
|
|
{{- end }}
|
|
spec:
|
|
{{- if .Values.server.pdb.minAvailable }}
|
|
minAvailable: {{ .Values.server.pdb.minAvailable }}
|
|
{{- end }}
|
|
{{- if .Values.server.pdb.maxUnavailable }}
|
|
maxUnavailable: {{ .Values.server.pdb.maxUnavailable }}
|
|
{{- end }}
|
|
selector:
|
|
matchLabels: {{ include "common.labels.matchLabels" . | nindent 6 }}
|
|
app.kubernetes.io/component: server
|
|
{{- end }}
|