Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

proxy: Make exposed proxy port conditional for auth broker #109

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading