File tree Expand file tree Collapse file tree 5 files changed +24
-4
lines changed Expand file tree Collapse file tree 5 files changed +24
-4
lines changed Original file line number Diff line number Diff line change @@ -116,8 +116,7 @@ spec:
116
116
{{- end }}
117
117
volumes :
118
118
- name : gremlin-cert
119
- secret :
120
- secretName : {{ include "gremlin.secretName" . }}
119
+ {{ .Values.gremlin.secret.certVolume | toYaml | indent 8}}
121
120
{{- if .Values.ssl.certFile }}
122
121
- name : ssl-cert-file
123
122
secret :
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ kind: ServiceAccount
4
4
metadata :
5
5
name : chao
6
6
namespace : {{ .Release.Namespace }}
7
+ {{ if .Values.chao.serviceAccount.annotations -}}
8
+ annotations :
9
+ {{ .Values.chao.serviceAccount.annotations | toYaml }}
10
+ {{- end }}
7
11
---
8
12
apiVersion : rbac.authorization.k8s.io/v1
9
13
kind : ClusterRole
Original file line number Diff line number Diff line change @@ -174,8 +174,7 @@ spec:
174
174
path : /proc/sysrq-trigger
175
175
{{- if (eq (include "gremlin.secretType" .) "certificate") }}
176
176
- name : gremlin-cert
177
- secret :
178
- secretName : {{ include "gremlin.secretName" . }}
177
+ {{ .Values.gremlin.secret.certVolume | toYaml | indent 10}}
179
178
{{- end }}
180
179
{{- if and .Values.gremlin.podSecurity.seccomp.enabled (eq "localhost/gremlin" .Values.gremlin.podSecurity.seccomp.profile) }}
181
180
- name : seccomp-root
Original file line number Diff line number Diff line change @@ -5,6 +5,10 @@ kind: ServiceAccount
5
5
metadata :
6
6
name : gremlin
7
7
namespace : {{ .Release.Namespace }}
8
+ {{ if .Values.gremlin.serviceAccount.annotations -}}
9
+ annotations :
10
+ {{ .Values.gremlin.serviceAccount.annotations | toYaml }}
11
+ {{- end }}
8
12
{{ if .Values.gremlin.podSecurity.podSecurityPolicy.create }}
9
13
---
10
14
apiVersion : rbac.authorization.k8s.io/v1
Original file line number Diff line number Diff line change @@ -110,6 +110,7 @@ gremlin:
110
110
# Gremlin's requirements (see gremlin.podSecurity.podSecurityPolicy and
111
111
# gremlin.podSecurity.securityContextConstraints)
112
112
create : true
113
+ annotations : {}
113
114
114
115
podSecurity :
115
116
@@ -250,6 +251,16 @@ gremlin:
250
251
# team private key (e.g. -----BEGIN EC PRIVATE KEY-----...-----END EC PRIVATE KEY-----)
251
252
key :
252
253
254
+ # Used to define the value of the gremlin-cert volume except the name
255
+ # This volume should always contain two files named
256
+ # - gremlin.cert
257
+ # - gremlin.key
258
+ # containing the team certificate and private key used to auth the agents
259
+ # to the gremlin API
260
+ certVolume :
261
+ secret :
262
+ secretName : gremlin-cert
263
+
253
264
# # Secret auth requires: `teamSecret`
254
265
# team secret (e.g. 00000000-0000-0000-0000-000000000000)
255
266
teamSecret :
@@ -276,6 +287,9 @@ chao:
276
287
277
288
affinity : {}
278
289
290
+ serviceAccount :
291
+ annotations : {}
292
+
279
293
ssl :
280
294
# ssl.certFile -
281
295
# Add a certificate file to Gremlin's set of certificate authorities. This argument expects a file containing the
You can’t perform that action at this time.
0 commit comments