Skip to content

Commit 55b2d89

Browse files
Merge pull request #3658 from grafana/nm/cloudcost-exporter-update-port-name
[cloudcost-exporter] Fix portName
2 parents f937a34 + fdd8408 commit 55b2d89

File tree

5 files changed

+10
-9
lines changed

5 files changed

+10
-9
lines changed

charts/cloudcost-exporter/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ type: application
55

66
# This is the chart version. This version number should be incremented each time you make changes
77
# to the chart and its templates, including the app version.
8-
version: 1.0.1
8+
version: 1.0.2
99

1010
# This is the version of cloudcost-exporter to be deployed, which should be incremented
1111
# with each release.

charts/cloudcost-exporter/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Cloud Cost Exporter exports cloud provider agnostic cost metrics to Prometheus.
44

5-
![Version: 1.0.1](https://img.shields.io/badge/Version-1.0.1-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.7.13](https://img.shields.io/badge/AppVersion-0.7.13-informational?style=flat-square)
5+
![Version: 1.0.2](https://img.shields.io/badge/Version-1.0.2-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 0.7.13](https://img.shields.io/badge/AppVersion-0.7.13-informational?style=flat-square)
66

77
## Installing the Chart
88

@@ -38,6 +38,7 @@ Documentation per CSP will vary (especially when it comes to authentication). Be
3838
| nameOverride | string | `""` | Override the name of the release |
3939
| nodeSelector | object | `{}` | Node selector |
4040
| podAnnotations | object | `{}` | Annotations to add to the pod |
41+
| portName | string | `"http"` | Container port name |
4142
| replicaCount | int | `1` | Number of replicas |
4243
| resources.limits.cpu | string | `"2"` | CPU limit |
4344
| resources.limits.memory | string | `"2Gi"` | Memory limit |
@@ -46,7 +47,6 @@ Documentation per CSP will vary (especially when it comes to authentication). Be
4647
| revisionHistoryLimit | int | `10` | Number of old versions to retain to allow rollback |
4748
| securityContext.fsGroup | int | `10001` | Filesystem group to associate for each pod |
4849
| service.port | int | `8080` | Service port |
49-
| service.portName | string | `"http"` | Service port name |
5050
| service.protocol | string | `"TCP"` | Service protocol |
5151
| service.type | string | `"ClusterIP"` | Service type |
5252
| serviceAccount.annotations | object | `{}` | Annotations to add to the service account |

charts/cloudcost-exporter/templates/deployment.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ spec:
3434
- {{ . }}
3535
{{- end }}
3636
ports:
37-
- name: {{ .Values.service.portName }}
37+
- name: {{ .Values.portName }}
3838
containerPort: {{ .Values.service.port }}
3939
protocol: TCP
4040
livenessProbe:
4141
httpGet:
4242
path: /
43-
port: {{ .Values.service.portName }}
43+
port: {{ .Values.portName }}
4444
readinessProbe:
4545
httpGet:
4646
path: /
47-
port: {{ .Values.service.portName }}
47+
port: {{ .Values.portName }}
4848
resources:
4949
{{- toYaml .Values.resources | nindent 12 }}
5050
volumeMounts:

charts/cloudcost-exporter/templates/service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ spec:
88
type: {{ .Values.service.type }}
99
ports:
1010
- port: {{ .Values.service.port }}
11-
targetPort: http
11+
targetPort: {{ .Values.portName }}
1212
protocol: {{ .Values.service.protocol }}
1313
name: http
1414
selector:

charts/cloudcost-exporter/values.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ imagePullSecrets: []
1919
# -- Override the name of the release
2020
nameOverride: ""
2121

22+
# -- Container port name
23+
portName: http
24+
2225
# -- Override the full name of the chart and release
2326
fullnameOverride: ""
2427

@@ -46,8 +49,6 @@ service:
4649
type: ClusterIP
4750
# -- Service port
4851
port: 8080
49-
# -- Service port name
50-
portName: http
5152
# -- Service protocol
5253
protocol: TCP
5354

0 commit comments

Comments
 (0)