-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add support for pdb resource for gateway component
- Loading branch information
Showing
5 changed files
with
48 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{{- if and .Values.gateway.minAvailable .Values.gateway.maxUnavailable }} | ||
{{- print "If gateway.minAvailable and gateway.maxUnavailable are set at the same time, minAvailable takes precedence." }} | ||
{{- end }} | ||
{{- if or .Values.gateway.minAvailable .Values.gateway.maxUnavailable }} | ||
apiVersion: policy/v1 | ||
kind: PodDisruptionBudget | ||
metadata: | ||
name: gateway-{{ include "tyk-gateway.fullname" . }} | ||
labels: | ||
app: gateway-{{ include "tyk-gateway.fullname" . }} | ||
chart: {{ include "tyk-gateway.chart" . }} | ||
release: {{ .Release.Name }} | ||
heritage: {{ .Release.Service }} | ||
spec: | ||
{{- if .Values.gateway.minAvailable }} | ||
minAvailable: {{ .Values.gateway.minAvailable }} | ||
{{- else if .Values.gateway.maxUnavailable }} | ||
maxUnavailable: {{ .Values.gateway.maxUnavailable }} | ||
{{- end }} | ||
selector: | ||
matchLabels: | ||
app: gateway-{{ include "tyk-gateway.fullname" . }} | ||
release: {{ .Release.Name }} | ||
{{- 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
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