mirror of
https://github.com/openappsec/openappsec.git
synced 2025-06-28 16:41:02 +03:00
adding advanced model loading capabilities
This commit is contained in:
parent
b74ce2ad8e
commit
a8de95a313
@ -112,8 +112,10 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
resources:
|
resources:
|
||||||
{{ toYaml .Values.resources | nindent 12 }}
|
{{ toYaml .Values.resources | nindent 12 }}
|
||||||
{{- if .Values.appsec.persistence.enabled }}
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
- name: advanced-model
|
||||||
|
mountPath: /advanced-model
|
||||||
|
{{- if .Values.appsec.persistence.enabled }}
|
||||||
- name: appsec-conf
|
- name: appsec-conf
|
||||||
mountPath: /etc/cp/conf
|
mountPath: /etc/cp/conf
|
||||||
- name: appsec-data
|
- name: appsec-data
|
||||||
@ -247,6 +249,10 @@ spec:
|
|||||||
terminationGracePeriodSeconds: {{ .Values.controller.terminationGracePeriodSeconds }}
|
terminationGracePeriodSeconds: {{ .Values.controller.terminationGracePeriodSeconds }}
|
||||||
{{- if (or .Values.controller.customTemplate.configMapName .Values.controller.extraVolumeMounts .Values.controller.admissionWebhooks.enabled .Values.controller.extraVolumes .Values.controller.extraModules) }}
|
{{- if (or .Values.controller.customTemplate.configMapName .Values.controller.extraVolumeMounts .Values.controller.admissionWebhooks.enabled .Values.controller.extraVolumes .Values.controller.extraModules) }}
|
||||||
volumes:
|
volumes:
|
||||||
|
- name: advanced-model
|
||||||
|
configMap:
|
||||||
|
name: advanced-model-config
|
||||||
|
optional: true
|
||||||
{{- if .Values.controller.extraModules }}
|
{{- if .Values.controller.extraModules }}
|
||||||
- name: modules
|
- name: modules
|
||||||
emptyDir: {}
|
emptyDir: {}
|
||||||
|
@ -56,6 +56,12 @@ fi
|
|||||||
/nano-service-installers/$ATTACHMENT_REGISTRATION_SERVICE --install
|
/nano-service-installers/$ATTACHMENT_REGISTRATION_SERVICE --install
|
||||||
/nano-service-installers/$HTTP_TRANSACTION_HANDLER_SERVICE --install
|
/nano-service-installers/$HTTP_TRANSACTION_HANDLER_SERVICE --install
|
||||||
|
|
||||||
|
# use advanced model if exist as data for agent
|
||||||
|
FILE=/advanced-model/open-appsec-advanced-model.tgz
|
||||||
|
if [ -f "$FILE" ]; then
|
||||||
|
tar -xzvf $FILE -C /etc/cp/conf/waap
|
||||||
|
fi
|
||||||
|
|
||||||
touch /etc/cp/watchdog/wd.startup
|
touch /etc/cp/watchdog/wd.startup
|
||||||
while true; do
|
while true; do
|
||||||
if [ -z "$init" ]; then
|
if [ -z "$init" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user