Skip to content

Commit 098ed69

Browse files
Pinnow René, B2B-PAP-HLT-DO-ENGPinnow René, B2B-PAP-HLT-DO-ENG
Pinnow René, B2B-PAP-HLT-DO-ENG
authored and
Pinnow René, B2B-PAP-HLT-DO-ENG
committed
feat: add capability to mount a custom ca
1 parent f5da965 commit 098ed69

File tree

5 files changed

+42
-13
lines changed

5 files changed

+42
-13
lines changed

deploy/k8s/chart/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
description: A Helm Chart for cortex-tenant
33
name: cortex-tenant
4-
version: 0.7.0 # This is the chart version
4+
version: 0.8.0 # This is the chart version
55
appVersion: 1.13.0 # version number of the application being deployed.
66
type: application
77
sources:

deploy/k8s/chart/templates/deployment.yaml

+11
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,23 @@ spec:
8989
volumeMounts:
9090
- mountPath: /data/
9191
name: config-file
92+
{{- if .Values.customCA }}
93+
- mountPath: /etc/ssl/certs/ca-bundle.crt
94+
name: ca-bundle
95+
subPath: {{ .Values.customCA.subPath | default "ca.crt" }}
96+
{{- end }}
9297
securityContext:
9398
{{- toYaml .Values.podSecurityContext | nindent 8 }}
9499
volumes:
95100
- configMap:
96101
name: {{ include "cortex-tenant.fullname" . }}-configmap
97102
name: config-file
103+
{{- if .Values.customCA }}
104+
- name: ca-bundle
105+
secret:
106+
defaultMode: 420
107+
secretName: {{ .Values.customCA.secretName | default "ca-bundle" }}
108+
{{- end }}
98109
{{- if .Values.priorityClassName }}
99110
priorityClassName: {{ .Values.priorityClassName }}
100111
{{- end }}

deploy/k8s/chart/values.yaml

+6
Original file line numberDiff line numberDiff line change
@@ -253,3 +253,9 @@ serviceMonitor:
253253
additionalLabels: {}
254254
# namespace:
255255
rules: []
256+
257+
# -- Optionally specify an custom ca if cortex endpoint is running in a private environment with a self signed ca
258+
# customCA: {}
259+
# secretName: ca-bundle
260+
# subPath: ca.crt
261+

docs/cortex-tenant-0.8.0.tgz

11 KB
Binary file not shown.

docs/index.yaml

+24-12
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,19 @@ entries:
33
cortex-tenant:
44
- apiVersion: v2
55
appVersion: 1.13.0
6-
created: "2024-10-18T12:00:21.933807+02:00"
6+
created: "2024-11-04T15:10:04.93614Z"
7+
description: A Helm Chart for cortex-tenant
8+
digest: 9a4589cf0aca3c614d832152d7755fa988aa49f0167557e7648213d4e7823e2d
9+
name: cortex-tenant
10+
sources:
11+
- https://github.com/blind-oracle/cortex-tenant
12+
type: application
13+
urls:
14+
- cortex-tenant-0.8.0.tgz
15+
version: 0.8.0
16+
- apiVersion: v2
17+
appVersion: 1.13.0
18+
created: "2024-11-04T15:10:04.935709Z"
719
description: A Helm Chart for cortex-tenant
820
digest: 5c8329d569b12900b6343443f43b8ffa976e23b0c2175dcaeade51cb11ae881d
921
name: cortex-tenant
@@ -15,7 +27,7 @@ entries:
1527
version: 0.7.0
1628
- apiVersion: v2
1729
appVersion: 1.13.0
18-
created: "2024-10-18T12:00:21.933422+02:00"
30+
created: "2024-11-04T15:10:04.935285Z"
1931
description: A Helm Chart for cortex-tenant
2032
digest: b2025be4ae67a5b460dca8529adc6a7bc5b3dda1864e12cff759283ad6aa5f3d
2133
name: cortex-tenant
@@ -27,7 +39,7 @@ entries:
2739
version: 0.6.0
2840
- apiVersion: v2
2941
appVersion: 1.13.0
30-
created: "2024-10-18T12:00:21.933054+02:00"
42+
created: "2024-11-04T15:10:04.934702Z"
3143
description: A Helm Chart for cortex-tenant
3244
digest: f55d2d0927459b1d30aa55ac280319896daf5aa63b48cc2f4664e7649ac2c76c
3345
name: cortex-tenant
@@ -39,7 +51,7 @@ entries:
3951
version: 0.5.0
4052
- apiVersion: v2
4153
appVersion: 1.13.0
42-
created: "2024-10-18T12:00:21.93254+02:00"
54+
created: "2024-11-04T15:10:04.9341Z"
4355
description: A Helm Chart for cortex-tenant
4456
digest: f2b3499377fd5a34c6893e67ab79854c5c8c835b229a7cc7a67e0666cca9ab29
4557
name: cortex-tenant
@@ -51,7 +63,7 @@ entries:
5163
version: 0.4.2
5264
- apiVersion: v2
5365
appVersion: 1.11.0
54-
created: "2024-10-18T12:00:21.931263+02:00"
66+
created: "2024-11-04T15:10:04.933521Z"
5567
description: A Helm Chart for cortex-tenant
5668
digest: 60131d246dca1ead2fea8a2c188f25a5fe3c4d90368ba091a4bd0e4e8e6dcceb
5769
name: cortex-tenant
@@ -63,7 +75,7 @@ entries:
6375
version: 0.4.0
6476
- apiVersion: v2
6577
appVersion: 1.11.0
66-
created: "2024-10-18T12:00:21.930956+02:00"
78+
created: "2024-11-04T15:10:04.932951Z"
6779
description: A Helm Chart for cortex-tenant
6880
digest: 56abb06ce3f646b94932d36b0d4ed5e5386ec390ebfd7d9110036291086d6f39
6981
name: cortex-tenant
@@ -73,7 +85,7 @@ entries:
7385
version: 0.3.2
7486
- apiVersion: v2
7587
appVersion: 1.11.0
76-
created: "2024-10-18T12:00:21.930723+02:00"
88+
created: "2024-11-04T15:10:04.932502Z"
7789
description: A Helm Chart for cortex-tenant
7890
digest: 834b006e449ae97219799bfa3b7bd274aa386978802dbd49279258f534cc4da5
7991
name: cortex-tenant
@@ -83,7 +95,7 @@ entries:
8395
version: 0.3.1
8496
- apiVersion: v2
8597
appVersion: 1.11.0
86-
created: "2024-10-18T12:00:21.930485+02:00"
98+
created: "2024-11-04T15:10:04.931282Z"
8799
description: A Helm Chart for cortex-tenant
88100
digest: cf12ab22dd0973e94e15d8246f66ae35738dadfc489952f919ed326a1f7eed5a
89101
name: cortex-tenant
@@ -93,7 +105,7 @@ entries:
93105
version: 0.3.0
94106
- apiVersion: v2
95107
appVersion: 1.11.0
96-
created: "2024-10-18T12:00:21.930234+02:00"
108+
created: "2024-11-04T15:10:04.9307Z"
97109
description: A Helm Chart for cortex-tenant
98110
digest: c967d4dea6ff8ae827133876f588d22bfa51d10168e4bca57f161b7ab6097c7c
99111
name: cortex-tenant
@@ -103,7 +115,7 @@ entries:
103115
version: 0.2.1
104116
- apiVersion: v2
105117
appVersion: 1.11.0
106-
created: "2024-10-18T12:00:21.930023+02:00"
118+
created: "2024-11-04T15:10:04.930309Z"
107119
description: A Helm Chart for cortex-tenant
108120
digest: 8b9caea0e1774a6c8f3e627a63386f532498ca5f410927c702380692e5d20b61
109121
name: cortex-tenant
@@ -113,12 +125,12 @@ entries:
113125
version: 0.2.0
114126
- apiVersion: v2
115127
appVersion: 1.10.1
116-
created: "2024-10-18T12:00:21.929794+02:00"
128+
created: "2024-11-04T15:10:04.929865Z"
117129
description: A Helm Chart for cortex-tenant
118130
digest: eabef3ad16e555543e32d9308994f76679e5fa54371cccd3957112f33a28a59e
119131
name: cortex-tenant
120132
type: application
121133
urls:
122134
- cortex-tenant-0.1.0.tgz
123135
version: 0.1.0
124-
generated: "2024-10-18T12:00:21.92949+02:00"
136+
generated: "2024-11-04T15:10:04.929137Z"

0 commit comments

Comments
 (0)