Skip to content

Commit 8c39083

Browse files
Merge pull request #123 from shaardie/appProtocol
Add appProtocol to Service Ports
2 parents ebf1254 + 6a0fbfd commit 8c39083

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

helm/oauth2-proxy/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: oauth2-proxy
2-
version: 6.6.1
2+
version: 6.6.2
33
apiVersion: v2
44
appVersion: 7.4.0
55
home: https://oauth2-proxy.github.io/oauth2-proxy/

helm/oauth2-proxy/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ Parameter | Description | Default
155155
`replicaCount` | desired number of pods | `1`
156156
`resources` | pod resource requests & limits | `{}`
157157
`service.portNumber` | port number for the service | `80`
158+
`service.appProtocol` | application protocol on the port of the service | `http`
158159
`service.type` | type of service | `ClusterIP`
159160
`service.clusterIP` | cluster ip address | `nil`
160161
`service.loadBalancerIP` | ip of load balancer | `nil`
@@ -185,6 +186,7 @@ Parameter | Description | Default
185186
`metrics.enabled` | Enable Prometheus metrics endpoint | `true`
186187
`metrics.port` | Serve Prometheus metrics on this port | `44180`
187188
`metrics.nodePort` | External port for the metrics when service.type is `NodePort` | `nil`
189+
`metrics.service.appProtocol` | application protocol of the metrics port in the service | `http`
188190
`metrics.servicemonitor.enabled` | Enable Prometheus Operator ServiceMonitor | `false`
189191
`metrics.servicemonitor.namespace` | Define the namespace where to deploy the ServiceMonitor resource | `""`
190192
`metrics.servicemonitor.prometheusInstance` | Prometheus Instance definition | `default`

helm/oauth2-proxy/templates/service.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,16 @@ spec:
3434
nodePort: {{ .Values.service.nodePort }}
3535
{{- end }}
3636
protocol: TCP
37+
{{- with .Values.service.appProtocol }}
38+
appProtocol: {{ . }}
39+
{{- end }}
3740
name: {{ .Values.httpScheme }}
3841
{{- if and .Values.metrics.enabled .Values.metrics.port }}
3942
- port: {{ .Values.metrics.port }}
4043
protocol: TCP
44+
{{- with .Values.metrics.service.appProtocol }}
45+
appProtocol: {{ . }}
46+
{{- end }}
4147
targetPort: metrics
4248
{{- if (and (eq .Values.service.type "NodePort") (not (empty .Values.metrics.nodePort))) }}
4349
nodePort: {{ .Values.metrics.nodePort }}

helm/oauth2-proxy/values.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ service:
108108
# when service.type is NodePort ...
109109
# nodePort: 80
110110
portNumber: 80
111+
# Protocol set on the service
112+
appProtocol: http
111113
annotations: {}
112114
# foo.io/bar: "true"
113115

@@ -297,6 +299,9 @@ metrics:
297299
port: 44180
298300
# when service.type is NodePort ...
299301
# nodePort: 44180
302+
# Protocol set on the service for the metrics port
303+
service:
304+
appProtocol: http
300305
servicemonitor:
301306
# Enable Prometheus Operator ServiceMonitor
302307
enabled: false

0 commit comments

Comments
 (0)