Skip to content

Commit c45a647

Browse files
author
Steve Salas
committed
Merge branch 'feature/setup' into develop
2 parents d77c193 + ba11e1c commit c45a647

27 files changed

+873
-253
lines changed

codedx-tool-orchestration/Chart.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v2
22
name: codedx-tool-orchestration
3-
version: 1.0.1
4-
appVersion: "1.0.0"
3+
version: 1.0.2
4+
appVersion: "1.0.1"
55
description: A Helm chart for Code Dx Tool Orchestration
66
icon: https://codedx.com/wp-content/uploads/2017/03/CodeDx-logo.png
77
home: https://github.com/codedx/codedx-kubernetes
@@ -12,10 +12,10 @@ keywords:
1212
sources:
1313
dependencies:
1414
- name: argo
15-
version: 0.6.8
15+
version: 0.6.9
1616
repository: https://codedx.github.io/codedx-kubernetes
1717
- name: minio
18-
version: 3.1.4
18+
version: 3.1.5
1919
repository: https://codedx.github.io/codedx-kubernetes
2020
maintainers:
2121
- name: tylercamp

codedx-tool-orchestration/README.md

Lines changed: 3 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -274,34 +274,11 @@ toolServiceTls:
274274

275275
### Grant Access to a Private Docker Registry
276276

277-
The Tool Orchestration service may require access to a private Docker registry, something that's necessary when using the Burp Suite automation as an example. Create a Kubernetes secret containing your Docker registry credentials using one of the two following options.
278-
279-
#### Create Registry Credential - Command Line Option
280-
281-
You can create a Kubernetes secret with your Docker registry credential from the command line by running the following command, replacing #server#, #username#, #password#, and #email# with your own values:
282-
283-
```
284-
kubectl -n cdx-svc create secret docker-registry my-docker-registry --docker-server=#server# --docker-username=#username# --docker-password=#password# --docker-email=#email#
285-
```
286-
287-
#### Create Registry Credential - YAML File Option
288-
289-
Alternatively, you can create a Kubernetes secret containing your Docker registry credentials from a YAML file. Your file will look similar to what follows, but you must specify your own content for #value# - refer to [Pull an Image from a Private Registry](https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/) for more details.
290-
291-
```
292-
apiVersion: v1
293-
metadata:
294-
name: my-docker-registry
295-
data:
296-
.dockerconfigjson: #value#
297-
kind: Secret
298-
type: kubernetes.io/dockerconfigjson
299-
```
300-
301-
Save your YAML in a file named my-docker-registry.yaml and create your Kubernetes secret with the following command.
277+
The Tool Orchestration service may require access to a private Docker registry, something that's necessary when using the Burp Suite automation as an example.
278+
You can create a Kubernetes secret with your Docker registry credential from the command line by running the following command, replacing #server#, #username#, and #password# with your own values:
302279

303280
```
304-
kubectl create -n cdx-svc -f my-docker-registry.yaml
281+
kubectl -n cdx-svc create secret docker-registry my-docker-registry --docker-server=#server# --docker-username=#username# --docker-password=#password#
305282
```
306283

307284
#### Registry Credential Config

codedx-tool-orchestration/templates/_helpers.tpl

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,14 @@ If release name contains chart name it will be used as a full name.
9090
{{- include "sanitize" (printf "%s-pre-delete-job" (include "codedx-tool-orchestration.fullname" .)) -}}
9191
{{- end -}}
9292

93+
{{- define "codedx-tool-orchestration.workflow.priorityClassName" -}}
94+
{{- include "sanitize" (printf "%s-wf-pc" (include "codedx-tool-orchestration.fullname" .)) -}}
95+
{{- end -}}
96+
97+
{{- define "codedx-tool-orchestration.service.priorityClassName" -}}
98+
{{- include "sanitize" (printf "%s-svc-pc" (include "codedx-tool-orchestration.fullname" .)) -}}
99+
{{- end -}}
100+
93101
{{/*
94102
Duplicates of a Minio template helper so we can reference Minio's service name
95103
*/}}

codedx-tool-orchestration/templates/tool-service-deployment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ spec:
7373
"-serviceTlsKeyPath", "/opt/codedx/service/tls/{{ .Values.toolServiceTls.keyFile }}",
7474
{{ end -}}
7575
"-workDir", "/opt/codedx/service/work",
76+
"-workflowPriorityClassName", {{ include "codedx-tool-orchestration.workflow.priorityClassName" . | quote }},
7677
"-workflowRoleNames", {{ include "codedx-tool-orchestration.workflow.role.name" . }}]
7778
readinessProbe:
7879
httpGet:
@@ -113,7 +114,7 @@ spec:
113114
ports:
114115
- containerPort: 3333
115116
name: http
116-
priorityClassName: codedx-tool-service
117+
priorityClassName: {{ include "codedx-tool-orchestration.service.priorityClassName" . | quote }}
117118
volumes:
118119
- name: tool-service-secret-volume
119120
secret:
Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,15 @@
11
apiVersion: scheduling.k8s.io/v1
22
kind: PriorityClass
33
metadata:
4-
name: codedx-workflow
5-
value: 10000
4+
name: {{ include "codedx-tool-orchestration.workflow.priorityClassName" . | quote }}
5+
value: {{ .Values.priorityClass.workflowValue }}
66
globalDefault: false
77
description: "The priority class for Code Dx Tool Orchestration workflows."
88
---
99
apiVersion: scheduling.k8s.io/v1
1010
kind: PriorityClass
1111
metadata:
12-
name: codedx-tool-service
13-
value: 10100
12+
name: {{ include "codedx-tool-orchestration.service.priorityClassName" . | quote }}
13+
value: {{ .Values.priorityClass.serviceValue }}
1414
globalDefault: false
1515
description: "The priority class for the Code Dx Tool Orchestration service."
16-
---
17-
apiVersion: scheduling.k8s.io/v1
18-
kind: PriorityClass
19-
metadata:
20-
name: codedx-workflow-controller
21-
value: 10100
22-
globalDefault: false
23-
description: "The priority class for the Code Dx Argo Workflow controller."
24-
---
25-
apiVersion: scheduling.k8s.io/v1
26-
kind: PriorityClass
27-
metadata:
28-
name: codedx-workflow-storage
29-
value: 10100
30-
globalDefault: false
31-
description: "The priority class for the Code Dx MinIO instance."

codedx-tool-orchestration/values.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,10 @@ podSecurityPolicy:
169169
#
170170
resources: {}
171171

172+
priorityClass:
173+
workflowValue: 10000
174+
serviceValue: 10100
175+
172176
# NOTE: These are setting attributes for the `argo` dependency
173177
argo:
174178
installCRD: false
@@ -178,7 +182,7 @@ argo:
178182
controller: codedx-workflow-controller
179183
tag: v2.4.2
180184
controller:
181-
priorityClassName: 'codedx-workflow-controller'
185+
priorityClassValue: 10100
182186
ui:
183187
enabled: false
184188
minio:
@@ -208,7 +212,7 @@ minio:
208212
persistence:
209213
size: 50Gi
210214
storageClass:
211-
priorityClassName: 'codedx-workflow-storage'
215+
priorityClassValue: 10100
212216

213217
# Options for configuring clients to explicitly trust certificate data for the MinIO TLS configuration. This section
214218
# does not apply when minio.tls.enabled=false.

codedx/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
apiVersion: v2
22
name: codedx
3-
version: 0.8.9
3+
version: 0.8.10
44
appVersion: "5.0.2"
55
description: A Helm chart for Code Dx
66
icon: https://codedx.com/wp-content/uploads/2017/03/CodeDx-logo.png
@@ -17,7 +17,7 @@ sources:
1717
- https://hub.docker.com/r/bitnami/mariadb
1818
dependencies:
1919
- name: mariadb
20-
version: 7.3.12
20+
version: 7.3.13
2121
repository: https://codedx.github.io/codedx-kubernetes
2222
condition: mariadb.enabled
2323
maintainers:

codedx/templates/_helpers.tpl

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,6 +249,11 @@ Determine the name to use to create and/or bind MariaDB's PodSecurityPolicy.
249249
{{- include "sanitize" $fullName -}}
250250
{{- end -}}
251251

252+
{{- define "codedx.cacerts.pwd.secretName" -}}
253+
{{- $fullName := printf "%s-cacerts-pwd-secret" (include "codedx.fullname" .) -}}
254+
{{- include "sanitize" $fullName -}}
255+
{{- end -}}
256+
252257
{{- define "codedx.adminSecretName" -}}
253258
{{- $fullName := printf "%s-admin-secret" (include "codedx.fullname" .) -}}
254259
{{- include "sanitize" $fullName -}}
@@ -259,8 +264,10 @@ Determine the name to use to create and/or bind MariaDB's PodSecurityPolicy.
259264
{{- include "sanitize" $fullName -}}
260265
{{- end -}}
261266

262-
263-
267+
{{- define "codedx.priorityClassName" -}}
268+
{{- $fullName := printf "%s-codedx-pc" (include "codedx.fullname" .) -}}
269+
{{- include "sanitize" $fullName -}}
270+
{{- end -}}
264271

265272
{{/*
266273
Duplicates of MariaDB template helpers so we can reference service/serviceAccount names
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
apiVersion: v1
2+
kind: Secret
3+
metadata:
4+
name: {{ include "codedx.cacerts.pwd.secretName" . | quote }}
5+
labels:
6+
{{- include "codedx.commonLabels" . | nindent 4 }}
7+
type: Opaque
8+
data:
9+
password: {{ .Values.cacertsFilePwd | b64enc | quote }}

codedx/templates/codedx-configmap.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ data:
2424
tomcat.env: |-
2525
CATALINA_OPTS='{{ include "codedx.props.params.combined" . }}'
2626
CATALINA_OPTS="$CATALINA_OPTS {{ default "" .Values.codedxJavaOpts }}"
27+
CATALINA_OPTS="$CATALINA_OPTS -Djavax.net.ssl.keystorepassword=$KEYSTORE_KEY"
2728
2829
{{ if .Values.loggingConfigFile -}}
2930
logback.xml: |-

0 commit comments

Comments
 (0)