File tree Expand file tree Collapse file tree 7 files changed +80
-6
lines changed Expand file tree Collapse file tree 7 files changed +80
-6
lines changed Original file line number Diff line number Diff line change 13
13
14
14
# ignore local dev
15
15
values-dev.yaml
16
- dry-run.yaml
16
+ dry-run.yaml
17
+ values-test.yaml
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ apiVersion: v2
2
2
appVersion : 0.1.44
3
3
description : A Helm chart for Codefresh gitops runtime
4
4
name : gitops-runtime
5
- version : 0.5.2
5
+ version : 0.6.0
6
6
home : https://github.com/codefresh-io/gitops-runtime-helm
7
7
icon : https://avatars1.githubusercontent.com/u/11412079?v=3
8
8
keywords :
@@ -14,10 +14,8 @@ maintainers:
14
14
annotations :
15
15
artifacthub.io/alternativeName : " codefresh-gitops-runtime"
16
16
artifacthub.io/changes : |
17
- - kind: changed
18
- description: "update codefresh-gitops-operator chart to 1.0.9 to handle promotions"
19
- - kind: changed
20
- description: "update cap-app-proxy to 1.2727.0 (exopse gitLog endpoint)"
17
+ - kind: added
18
+ description: "Add PDB templates for internal-router and app-proxy"
21
19
dependencies :
22
20
- name : argo-cd
23
21
repository : https://codefresh-io.github.io/argo-helm
Original file line number Diff line number Diff line change
1
+ {{- define "cap-app-proxy.resources.pdb" }}
2
+ apiVersion : policy/v1
3
+ kind : PodDisruptionBudget
4
+ metadata :
5
+ name : {{ include "cap-app-proxy.fullname" . }}
6
+ labels :
7
+ {{- include "cap-app-proxy.labels" . | nindent 4 }}
8
+ spec :
9
+ {{- if or .Values.pdb.minAvailable .Values.pdb.maxUnavailable }}
10
+ {{- with .Values.pdb.minAvailable }}
11
+ minAvailable : {{ . }}
12
+ {{- end }}
13
+ {{- with .Values.pdb.maxUnavailable }}
14
+ maxUnavailable : {{ . }}
15
+ {{- end }}
16
+ {{- else }}
17
+ {{- fail (printf "ERROR: pdb.minAvailable or pdb.maxUnavailable is required!" ) }}
18
+ {{- end }}
19
+ selector :
20
+ {{- include "cap-app-proxy.selectorLabels" . | nindent 4 }}
21
+ {{- end }}
Original file line number Diff line number Diff line change
1
+ {{- define "internal-router.resources.pdb" }}
2
+ apiVersion : policy/v1
3
+ kind : PodDisruptionBudget
4
+ metadata :
5
+ name : {{ include "internal-router.fullname" . }}
6
+ labels :
7
+ {{- include "internal-router.labels" . | nindent 4 }}
8
+ spec :
9
+ {{- if or .Values.pdb.minAvailable .Values.pdb.maxUnavailable }}
10
+ {{- with .Values.pdb.minAvailable }}
11
+ minAvailable : {{ . }}
12
+ {{- end }}
13
+ {{- with .Values.pdb.maxUnavailable }}
14
+ maxUnavailable : {{ . }}
15
+ {{- end }}
16
+ {{- else }}
17
+ {{- fail (printf "ERROR: pdb.minAvailable or pdb.maxUnavailable is required!" ) }}
18
+ {{- end }}
19
+ selector :
20
+ {{- include "internal-router.selectorLabels" . | nindent 4 }}
21
+ {{- end }}
Original file line number Diff line number Diff line change
1
+ {{- $appProxyContext := deepCopy . }}
2
+ {{- $_ := set $appProxyContext "Values" (get .Values "app-proxy") }}
3
+ {{- $_ := set $appProxyContext.Values "global" (get .Values "global") }}
4
+
5
+ {{- if $appProxyContext.pdb.enabled }}
6
+ {{- include "cap-app-proxy.resources.pdb" $appProxyContext }}
7
+ {{- end }}
Original file line number Diff line number Diff line change
1
+ {{- $internalRouterContext := deepCopy . }}
2
+ {{- $_ := set $internalRouterContext "Values" (get .Values "internal-router") }}
3
+ {{- $_ := set $internalRouterContext.Values "global" (get .Values "global") }}
4
+
5
+ {{- if $internalRouterContext.pdb.enabled }}
6
+ {{- include "internal-router.resources.pdb" $internalRouterContext }}
7
+ {{- end }}
Original file line number Diff line number Diff line change @@ -420,6 +420,16 @@ internal-router:
420
420
dnsService : kube-dns
421
421
dnsNamespace : kube-system
422
422
clusterDomain : cluster.local
423
+
424
+ # # Internal-Router Pod Disruption Budget
425
+ pdb :
426
+ # -- Enable PDB
427
+ enabled : false
428
+ # -- Set number of pods that are available after eviction as number of percentage
429
+ minAvailable : " "
430
+ # -- Set number of pods that are unavailable after eviction as number of percentage
431
+ maxUnavailable : " "
432
+
423
433
# -----------------------------------------------------------------------------------------------------------------------
424
434
# tunnel client
425
435
# -----------------------------------------------------------------------------------------------------------------------
@@ -588,6 +598,15 @@ app-proxy:
588
598
# -- extra volumes
589
599
extraVolumes : []
590
600
601
+ # # App-Proxy Pod Disruption Budget
602
+ pdb :
603
+ # -- Enable PDB
604
+ enabled : false
605
+ # -- Set number of pods that are available after eviction as number of percentage
606
+ minAvailable : " "
607
+ # -- Set number of pods that are unavailable after eviction as number of percentage
608
+ maxUnavailable : " "
609
+
591
610
# -----------------------------------------------------------------------------------------------------------------------
592
611
# gitops-operator
593
612
# -----------------------------------------------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments