File tree Expand file tree Collapse file tree
charts/openshift-console-plugin/templates Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 default_type application/octet-stream;
1616 keepalive_timeout 65;
1717 server {
18- listen LISTEN_ADDRESS_PORT_REPLACED_AT_RUNTIME ssl;
18+ listen {{ .Values.plugin.port }} ssl;
19+ listen [::]:{{ .Values.plugin.port }} ssl;
1920 ssl_certificate /var/cert/tls.crt;
2021 ssl_certificate_key /var/cert/tls.key;
2122 root /usr/share/nginx/html;
Original file line number Diff line number Diff line change 1919 containers :
2020 - name : {{ template "openshift-console-plugin.name" . }}
2121 image : {{ required "Plugin image must be specified!" .Values.plugin.image }}
22- command :
23- - /bin/sh
24- - -c
25- - |
26- if echo "$POD_IP" | grep -qE '^([0-9]{1,3}\.){3}[0-9]{1,3}$'; then
27- LISTEN_ADDRESS_PORT_REPLACED_AT_RUNTIME="{{ .Values.plugin.port }}"
28- else
29- LISTEN_ADDRESS_PORT_REPLACED_AT_RUNTIME="[::]:{{ .Values.plugin.port }}"
30- fi
31- sed "s/LISTEN_ADDRESS_PORT_REPLACED_AT_RUNTIME/$LISTEN_ADDRESS_PORT_REPLACED_AT_RUNTIME/g" /etc/nginx/nginx.conf > /tmp/nginx.conf
32- exec nginx -c /tmp/nginx.conf -g 'daemon off;'
33- env :
34- - name : POD_IP
35- valueFrom :
36- fieldRef :
37- fieldPath : status.podIP
3822 ports :
3923 - containerPort : {{ .Values.plugin.port }}
4024 protocol : TCP
You can’t perform that action at this time.
0 commit comments