Skip to content

Commit 886dbf0

Browse files
Add opencost.ui.useIPv6 feature flag (#272)
* Add opencost.ui.useIPv6 feature flag * Update Chart.yaml patch version instead of minor Signed-off-by: tintii <attard.nicky@gmail.com> --------- Signed-off-by: tintii <attard.nicky@gmail.com> Co-authored-by: nicholas.attard <nicholas.attard@gamesys.co.uk>
1 parent 0bff686 commit 886dbf0

File tree

4 files changed

+6
-1
lines changed

4 files changed

+6
-1
lines changed

charts/opencost/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ keywords:
99
- finops
1010
- monitoring
1111
- opencost
12-
version: 2.0.1
12+
version: 2.0.2
1313
maintainers:
1414
- name: jessegoodier
1515
- name: toscott

charts/opencost/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ $ helm install opencost opencost/opencost
176176
| opencost.ui.resources.requests | object | `{"cpu":"10m","memory":"55Mi"}` | CPU/Memory resource requests |
177177
| opencost.ui.securityContext | object | `{}` | The security options the container should be run with |
178178
| opencost.ui.uiPort | int | `9090` | |
179+
| opencost.ui.useIPv6 | bool | `true` | |
179180
| opencost.ui.useDefaultFqdn | bool | false | To use `<service>.<namespace>.svc.cluster.local` or `<service>.<namespace>` |
180181
| opencost.ui.modelFqdn | string | `nil` | Set the model fqdn to use for the upstream |
181182
| plugins.configs | string | `nil` | |

charts/opencost/templates/configmap-frontend.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,9 @@ data:
7272
7373
add_header ETag "1.96.0";
7474
listen {{ .Values.opencost.ui.uiPort }};
75+
{{- if .Values.opencost.ui.useIPv6 | default true }}
7576
listen [::]:{{ .Values.opencost.ui.uiPort }};
77+
{{- end }}
7678
resolver 127.0.0.1 valid=5s;
7779
location /healthz {
7880
access_log /dev/null;

charts/opencost/values.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,8 @@ opencost:
394394
# used in the default.nginx.conf if you want to switch for using with Docker
395395
# apiServer: 0.0.0.0
396396
uiPort: 9090
397+
# Set to true to use IPv6
398+
useIPv6: true
397399
# Liveness probe configuration
398400
livenessProbe:
399401
# -- Whether probe is enabled

0 commit comments

Comments
 (0)