Skip to content

Commit

Permalink
Support certificate stores
Browse files Browse the repository at this point in the history
  • Loading branch information
boney9 committed Jan 19, 2024
1 parent e42a108 commit 41af51c
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
24 changes: 24 additions & 0 deletions charts/orkes-conductor/templates/deployment.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{{- $securityEnabled := eq (toString .Values.security.enabled) "true" -}}
{{- $clusterMode := eq (toString .Values.redis.clusterMode) "true" -}}
{{- $enableCustomTrustStore := eq (toString .Values.enableCustomTrustStore) "true" -}}
{{- if $securityEnabled -}}
{{- $validation := .Values.security.defaultUserEmail | required "security.defaultUserEmail is required." -}}
{{- $validation := .Values.security.defaultUserName | required "security.defaultUserName is required." -}}
Expand Down Expand Up @@ -330,6 +331,14 @@ spec:
value: localhost
- name: conductor.worker.http.block.ips
value: {{ .Values.workers.blockIps | quote }}
{{- if $enableCustomTrustStore }}
- name: conductor.worker.http.customcerts.enabled
value: "true"
- name: conductor.worker.http.customcerts.path
value: {{ printf "/app/certificates/%s" .Values.jksFileName | quote }}
- name: conductor.worker.http.customcerts.password
value: {{ .Values.jksFilePassword | quote }}
{{- end }}
- name: conductor.server.url
value: http://{{ include "orkes-conductor.fullname" . }}.{{ .Release.Namespace }}.svc.cluster.local:5000/api/
{{- if $securityEnabled }}
Expand All @@ -344,6 +353,12 @@ spec:
fieldPath: status.podIP
image: "{{ .Values.workerImage.repository }}:{{ .Values.workerImage.tag | default .Chart.AppVersion }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
{{- if $enableCustomTrustStore }}
volumeMounts:
- name: custom-truststore-vol
mountPath: {{ printf "/app/certificates/%s" .Values.jksFileName | quote }}
subPath: {{ .Values.jksFileName | quote }}
{{- end }}
name: {{ include "orkes-conductor-workers.fullname" . }}-workers
resources:
limits:
Expand All @@ -355,6 +370,15 @@ spec:
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
{{- if $enableCustomTrustStore }}
volumes:
- name: custom-truststore-vol
configMap:
name: "custom-truststore-cm"
items:
- key: {{ .Values.jksFileName | quote }}
path: {{ .Values.jksFileName | quote }}
{{- end }}
imagePullSecrets:
- name: orkesregistry
restartPolicy: Always
Expand Down
5 changes: 5 additions & 0 deletions charts/orkes-conductor/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ imageCredentials:
email: [email protected]
password:

enableCustomTrustStore: false
# If you are using a custom trust store, provide the following variables
#jksFileName:

Check failure on line 98 in charts/orkes-conductor/values.yaml

View workflow job for this annotation

GitHub Actions / lint-test

98:2 [comments] missing starting space in comment
#jksFilePassword:

Check failure on line 99 in charts/orkes-conductor/values.yaml

View workflow job for this annotation

GitHub Actions / lint-test

99:2 [comments] missing starting space in comment

security:
allowedOrigins: "*"
enabled: false
Expand Down

0 comments on commit 41af51c

Please sign in to comment.