Skip to content

Commit

Permalink
proxy: Make exposed proxy port conditional for auth broker (#109)
Browse files Browse the repository at this point in the history
  • Loading branch information
cloneable authored Oct 24, 2024
1 parent a4e1135 commit 018fdd0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charts/neon-proxy/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v2
name: neon-proxy
description: Neon Proxy
type: application
version: 1.9.0
version: 1.10.0
appVersion: "0.1.0"
kubeVersion: "^1.18.x-x"
home: https://neon.tech
Expand Down
4 changes: 2 additions & 2 deletions charts/neon-proxy/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# neon-proxy

![Version: 1.9.0](https://img.shields.io/badge/Version-1.9.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) [![Lint and Test Charts](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml/badge.svg)](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml)
![Version: 1.10.0](https://img.shields.io/badge/Version-1.10.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) [![Lint and Test Charts](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml/badge.svg)](https://github.com/neondatabase/helm-charts/actions/workflows/lint-test.yaml)

Neon Proxy

Expand Down Expand Up @@ -33,7 +33,7 @@ Kubernetes: `^1.18.x-x`
| exposedService.annotations | object | `{}` | Annotations to add to the exposed service |
| exposedService.externalTrafficPolicy | string | `"Cluster"` | externalTrafficPolicy (Cluster, Internal) |
| exposedService.httpsPort | int | `nil` | Exposed Service https port. If null, https server will not be exposed. |
| exposedService.port | int | `5432` | Exposed Service proxy port |
| exposedService.port | int | `5432` | Exposed Service proxy port. If null, proxy port will not be exposed. Useful for auth-broker. |
| exposedService.type | string | `"LoadBalancer"` | Exposed service type |
| extraManifests | list | `[]` | Additional manifests that are created with the chart |
| fullnameOverride | string | `""` | String to fully override neon-proxy.fullname template |
Expand Down
4 changes: 3 additions & 1 deletion charts/neon-proxy/templates/service.exposed.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ spec:
type: {{ .Values.exposedService.type }}
externalTrafficPolicy: {{ .Values.exposedService.externalTrafficPolicy }}
ports:
- port: {{ .Values.exposedService.port }}
{{- with .Values.exposedService.port }}
- port: {{ . }}
targetPort: proxy
protocol: TCP
name: proxy
{{- end }}
{{- with .Values.exposedService.httpsPort }}
- port: {{ . }}
targetPort: https
Expand Down
3 changes: 2 additions & 1 deletion charts/neon-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ exposedService:
type: LoadBalancer
# exposedService.externalTrafficPolicy -- externalTrafficPolicy (Cluster, Internal)
externalTrafficPolicy: Cluster
# exposedService.port -- Exposed Service proxy port
# exposedService.port -- Exposed Service proxy port.
# If null, proxy port will not be exposed. Useful for auth-broker.
port: 5432
# exposedService.httpsPort -- (int) Exposed Service https port. If null, https server will not be exposed.
httpsPort: null
Expand Down

0 comments on commit 018fdd0

Please sign in to comment.