Skip to content

Commit 1dbb8b5

Browse files
handle custom CAs
1 parent 27eafca commit 1dbb8b5

File tree

2 files changed

+36
-9
lines changed

2 files changed

+36
-9
lines changed

helm/templates/scheduler.yaml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,26 +23,34 @@ spec:
2323
spec:
2424
automountServiceAccountToken: false
2525
volumes:
26+
{{- with .Values.cxone.deployment }}
27+
2628
- name: scheduler-secret-tenant-volume
2729
secret:
28-
secretName: {{ .Values.cxone.secrets_name }}
30+
secretName: {{ .secrets_name }}
2931
items:
3032
- key: cxone_tenant
3133
path: cxone_tenant
3234

3335
- name: scheduler-secret-oauth-client-id-volume
3436
secret:
35-
secretName: {{ .Values.cxone.secrets_name }}
37+
secretName: {{ .secrets_name }}
3638
items:
3739
- key: cxone_oauth_client_id
3840
path: cxone_oauth_client_id
3941

4042
- name: scheduler-secret-oauth-client-secret-volume
4143
secret:
42-
secretName: {{ .Values.cxone.secrets_name }}
44+
secretName: {{ .secrets_name }}
4345
items:
4446
- key: cxone_oauth_client_secret
4547
path: cxone_oauth_client_secret
48+
{{- if not (empty .ca_certs_configmap_name) }}
49+
- name: scheduler-custom-ca-certs
50+
configMap:
51+
name: {{ .ca_certs_configmap_name }}
52+
{{- end -}}
53+
{{- end}}
4654

4755
containers:
4856
- name: cxone-scan-scheduler
@@ -72,6 +80,12 @@ spec:
7280
- name: scheduler-secret-oauth-client-secret-volume
7381
mountPath: "/run/secrets/cxone_oauth_client_secret"
7482
subPath: cxone_oauth_client_secret
83+
{{- with .Values.cxone.deployment }}
84+
{{- if not (empty .ca_certs_configmap_name) }}
85+
- name: scheduler-custom-ca-certs
86+
mountPath: "/usr/local/share/ca-certificates"
87+
{{- end -}}
88+
{{- end}}
7589
env:
7690
{{- with .Values.cxone.connection }}
7791
{{- with .multitenant }}

helm/values.yaml

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88
# Most other options can be left blank or configured to tune
99
# how the scheduler operates.
1010
cxone:
11-
# Provide the name of the generic secret containing the key/value pairs
12-
# with these keys:
13-
# cxone_tenant
14-
# cxone_oauth_client_id
15-
# cxone_oauth_client_secret
16-
secrets_name: cxone-scan-scheduler-secrets
11+
deployment:
12+
# Provide the name of the generic secret containing the key/value pairs
13+
# with these keys:
14+
# cxone_tenant
15+
# cxone_oauth_client_id
16+
# cxone_oauth_client_secret
17+
secrets_name: cxone-scan-scheduler-secrets
18+
ca_certs_configmap_name:
1719
connection:
1820
# Use only one: multitenant or singletenant
1921
# If both are used, the single-tenant configuration is ignored.
@@ -60,3 +62,14 @@ cxone:
6062
# scan to skip.
6163
recent_scan_hours:
6264
groups:
65+
# Key values are the group moniker entry. Leave blank if not using group schedules.
66+
# Each key has the following key/value pairs:
67+
# * path - the group path
68+
# * policy - the name of the schedule policy to apply to the group
69+
# Example:
70+
# mygroup1:
71+
# path: /dev/regions/US
72+
# policy: weekly
73+
# mygroup2:
74+
# path: /dev/regions/UK
75+
# policy: monthly

0 commit comments

Comments
 (0)