Skip to content

Commit

Permalink
Chart: add check if https or http on configuring openvasd_server
Browse files Browse the repository at this point in the history
  • Loading branch information
nichtsfrei committed Apr 9, 2024
1 parent 5c5bb35 commit a9af6d5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions charts/openvasd/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,12 @@ spec:
- name: openvas-config
mountPath: /mnt/ovc
command: ['sh', '-c']
{{- if eq .Values.openvasd.tls.certificates.deploy_server true }}
args: ["sed 's/mqtt_server_uri = .*/openvasd_server = https:\\/\\/localhost:443/' /etc/openvas/openvas.conf > /mnt/ovc/openvas.conf; cp /etc/openvas/openvas_log.conf /mnt/ovc/"]
{{ else }}
args: ["sed 's/mqtt_server_uri = .*/openvasd_server = http:\\/\\/localhost:80/' /etc/openvas/openvas.conf > /mnt/ovc/openvas.conf; cp /etc/openvas/openvas_log.conf /mnt/ovc/"]
{{ end }}

{{ end }}
containers:
- name: redis
Expand Down

0 comments on commit a9af6d5

Please sign in to comment.