Skip to content

Commit 7d543d3

Browse files
Merge pull request #85 from openshift/revert-79-listen-address-port
OCPBUGS-54666: Revert "Detect ipv4/ipv6 socket in pod ip for nginx conf"
2 parents addca71 + 569ede2 commit 7d543d3

2 files changed

Lines changed: 2 additions & 17 deletions

File tree

charts/openshift-console-plugin/templates/configmap.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ data:
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;

charts/openshift-console-plugin/templates/deployment.yaml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,6 @@ spec:
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

0 commit comments

Comments
 (0)