2017-08-07 17:07:38 -05:00
|
|
|
{{/*
|
|
|
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
you may not use this file except in compliance with the License.
|
|
|
|
You may obtain a copy of the License at
|
|
|
|
|
|
|
|
http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
|
|
|
|
Unless required by applicable law or agreed to in writing, software
|
|
|
|
distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
See the License for the specific language governing permissions and
|
|
|
|
limitations under the License.
|
|
|
|
*/}}
|
2017-07-05 02:34:12 -05:00
|
|
|
|
2017-08-28 10:35:53 -05:00
|
|
|
{{- if .Values.manifests.pdb_api }}
|
2017-07-01 12:00:56 -05:00
|
|
|
{{- $envAll := . }}
|
|
|
|
---
|
2022-05-05 11:48:24 -04:00
|
|
|
apiVersion: policy/v1
|
2017-05-18 17:03:03 +00:00
|
|
|
kind: PodDisruptionBudget
|
|
|
|
metadata:
|
|
|
|
name: magnum-api
|
|
|
|
spec:
|
2017-07-11 13:02:23 -05:00
|
|
|
minAvailable: {{ .Values.pod.lifecycle.disruption_budget.api.min_available }}
|
2017-05-18 17:03:03 +00:00
|
|
|
selector:
|
|
|
|
matchLabels:
|
2017-07-01 12:00:56 -05:00
|
|
|
{{ tuple $envAll "magnum" "api" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 6 }}
|
2017-08-07 11:37:42 -05:00
|
|
|
{{- end }}
|