Skip to content

Commit

Permalink
SMAR-2842-added-pdb-for-object-detector
Browse files Browse the repository at this point in the history
  • Loading branch information
egid-fertal-inno committed Aug 26, 2024
1 parent ff3fa8e commit 11037e4
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions templates/object-detector-pbd.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{{- if .Values.objectDetector.enabled }}
{{- if .Values.objectDetector.pdb.create }}
apiVersion: policy/v1
kind: PodDisruptionBudget
metadata:
name: {{ include "smartface.objectDetector.name" . | quote }}
labels:
{{- include "smartface.objectDetector.labels" . | nindent 4 }}
spec:
{{- if .Values.objectDetector.pdb.minAvailable }}
minAvailable: {{ .Values.objectDetector.pdb.minAvailable }}
{{- end }}
{{- if .Values.objectDetector.pdb.maxUnavailable }}
maxUnavailable: {{ .Values.objectDetector.pdb.maxUnavailable }}
{{- end }}
selector:
matchLabels:
{{- include "smartface.objectDetector.selectorLabels" . | nindent 6 }}
{{- end }}

0 comments on commit 11037e4

Please sign in to comment.