forked from dragonflydb/dragonfly-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(helm): add PodDisruptionBudget support, fixes ServiceMonitor, re…
…moved deprecated kube-rbac-proxy closes dragonflydb#280, dragonflydb#258 Signed-off-by: Vadim Grek <[email protected]>
- Loading branch information
1 parent
b07f733
commit 86aa118
Showing
4 changed files
with
52 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{{- if .Values.pdb.enabled }} | ||
apiVersion: policy/v1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: {{ include "dragonfly-operator.fullname" . }} | ||
namespace: {{ .Release.Namespace | quote }} | ||
labels: | ||
{{- include "dragonfly-operator.labels" . | nindent 4 }} | ||
{{- with .Values.pdb.annotations }} | ||
annotations: | ||
{{- toYaml . | nindent 4 }} | ||
{{- end }} | ||
spec: | ||
{{- if .Values.pdb.minAvailable }} | ||
minAvailable: {{ .Values.pdb.minAvailable }} | ||
{{- else if .Values.pdb.maxUnavailable }} | ||
maxUnavailable: {{ .Values.pdb.maxUnavailable }} | ||
{{- else }} | ||
minAvailable: 0 | ||
{{- end }} | ||
selector: | ||
matchLabels: | ||
{{- include "dragonfly-operator.selectorLabels" . | nindent 6 }} | ||
control-plane: controller-manager | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters