Skip to content

Commit

Permalink
updated imgress.yaml to allow https ports and updated service.yaml to…
Browse files Browse the repository at this point in the history
… suport specifying telemetry nodeport

Signed-off-by: RadOctocode <[email protected]>
  • Loading branch information
RadOctocode committed Mar 5, 2024
1 parent 66b8d89 commit e5ef199
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/dex/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "dex.fullname" . -}}
{{- $svcPort := .Values.service.ports.http.port -}}
{{- $svcPort := .Values.https.enabled | ternary .Values.service.ports.http.port .Values.service.port.https.port}}
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
Expand Down
3 changes: 3 additions & 0 deletions charts/dex/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ spec:
{{- end }}
- name: telemetry
port: 5558
{{- if and (or (eq .Values.service.type "NodePort") (eq .Values.service.type "LoadBalancer")) >Values.service.ports.telemetry.nodePort }}
nodePort: {{ .Values.service.ports.telemetry.nodePort }}
{{- end}}
targetPort: telemetry
protocol: TCP
{{- if semverCompare ">=1.20-0" .Capabilities.KubeVersion.GitVersion }}
Expand Down

0 comments on commit e5ef199

Please sign in to comment.