Skip to content

Commit 7b14f63

Browse files
committed
Commit for pre release
1 parent 2b31df0 commit 7b14f63

3 files changed

Lines changed: 39 additions & 7 deletions

File tree

charts/dsao/Chart.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ apiVersion: v2
22
name: ds-agent
33
description: A Helm chart for Deep Security Agent in OpenShift
44
type: application
5-
version: 0.1.0
6-
appVersion: "20.0.0-4689"
5+
version: 0.1.1
6+
appVersion: "20.0.0-5064"

charts/dsao/templates/daemonsets.yaml

Lines changed: 36 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ spec:
1616
- name: ds-agent
1717
image: >-
1818
{{ .Values.image }}
19+
resources:
20+
requests:
21+
memory: "512Mi"
22+
limits:
23+
memory: "2Gi"
1924
securityContext:
2025
privileged: true
2126
runAsUser: 0
@@ -29,6 +34,9 @@ spec:
2934
- mountPath: /var/lib/crio/version
3035
name: crioversion
3136
readOnly: true
37+
- mountPath: /host/etc/os-release
38+
name: osrelease
39+
readOnly: true
3240
lifecycle:
3341
postStart:
3442
exec:
@@ -40,27 +48,48 @@ spec:
4048
ln -s /var/lib/crio/crio.sock /var/run/crio/crio.sock
4149
sleep 30s
4250
/opt/ds_agent/dsa_control -t 15 -r
43-
/opt/ds_agent/dsa_control -t 15 -a {{ .Values.dsmUrl }}
51+
{{ if .Values.dsmProxy }}
52+
/opt/ds_agent/dsa_control -x {{ .Values.dsmProxy }}
53+
{{ end }}
54+
{{ if .Values.proxyCredential }}
55+
/opt/ds_agent/dsa_control -u {{ .Values.proxyCredential }}
56+
{{ end }}
57+
{{ if .Values.relayProxy }}
58+
/opt/ds_agent/dsa_control -y {{ .Values.relayProxy }}
59+
{{ end }}
60+
{{ if .Values.relayProxyCredential }}
61+
/opt/ds_agent/dsa_control -w {{ .Values.relayProxyCredential }}
62+
{{ end }}
63+
/opt/ds_agent/dsa_control -t 15 -a {{ .Values.dsmUrl }} "hostname:$TM_DS_DSAO_HN"
4464
preStop:
4565
exec:
4666
command:
4767
- /bin/bash
4868
- -c
4969
- systemctl stop ds_agent
50-
readinessProbe:
70+
startupProbe:
5171
exec:
5272
command:
5373
- /opt/ds_agent/dsa_query
5474
- -c
5575
- GetAgentStatus
76+
periodSeconds: 60
77+
timeoutSeconds: 60
5678
livenessProbe:
5779
exec:
5880
command:
5981
- /opt/ds_agent/dsa_query
6082
- -c
6183
- GetAgentStatus
62-
initialDelaySeconds: 600
63-
periodSeconds: 300
84+
periodSeconds: 3600
85+
timeoutSeconds: 60
86+
successThreshold: 1
87+
failureThreshold: 24
88+
env:
89+
- name: TM_DS_DSAO_HN
90+
valueFrom:
91+
fieldRef:
92+
fieldPath: spec.nodeName
6493
volumes:
6594
- name: sys
6695
hostPath:
@@ -71,6 +100,9 @@ spec:
71100
- name: crioversion
72101
hostPath:
73102
path: /var/lib/crio/version
103+
- name: osrelease
104+
hostPath:
105+
path: /etc/os-release
74106
serviceAccount: dsa-service-account
75107
tolerations:
76108
- operator: Exists

charts/dsao/values.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
image: public.ecr.aws/trendmicro/dsao:20.0.0-4689
1+
image: public.ecr.aws/trendmicro/dsao:20.0.0-5064

0 commit comments

Comments
 (0)