Skip to content

Commit

Permalink
proxy: add http pool flag (#46)
Browse files Browse the repository at this point in the history
* add http pool flag

* update

* patch boolean handling

* use k3d cluster instead of kind

---------

Co-authored-by: Andrey Taranik <[email protected]>
  • Loading branch information
conradludgate and cicdteam authored Dec 4, 2023
1 parent 3301287 commit 39a4cfe
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 4 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,11 @@ jobs:
- name: Run chart-testing (lint)
run: ct lint --config ct.yaml

- name: Create k8s Kind cluster
uses: helm/[email protected]
- name: Create k3d cluster
uses: nolar/setup-k3d-k3s@v1
with:
version: v1.25
github-token: ${{ secrets.GITHUB_TOKEN }}

- name: Run chart-testing (install)
run: ct install --config ct.yaml
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.7.3
version: 1.7.4
appVersion: "0.1.0"
kubeVersion: "^1.18.x-x"
home: https://neon.tech
Expand Down
3 changes: 2 additions & 1 deletion charts/neon-proxy/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# neon-proxy

![Version: 1.7.3](https://img.shields.io/badge/Version-1.7.3-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.7.4](https://img.shields.io/badge/Version-1.7.4-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 @@ -66,6 +66,7 @@ Kubernetes: `^1.18.x-x`
| settings.controlplane_token | string | `""` | (string) JWT token to pass to control plane management API |
| settings.domain | string | `""` | domain used in TLS cert for client postgres connections |
| settings.extraDomains | list | `[]` | domains used in extra TLS certs for client postgres connections |
| settings.httpPoolOptIn | bool | `true` | (bool) Sets the SQL over HTTP Pool to opt-in-only mode if true. Set false to enable it always |
| settings.metricCollectionEndpoint | string | `""` | (url) endpoint used to send metrics to. If null, metrics will not be sent. |
| settings.metricCollectionInterval | string | `""` | (string) how often metrics should be sent. |
| settings.otelExporterOtlpEndpoint | string | `""` | OpenTelemetry collector URL (will be converted into `OTEL_EXPORTER_OTLP_ENDPOINT` environment variable) |
Expand Down
7 changes: 7 additions & 0 deletions charts/neon-proxy/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ spec:
- {{ . }}
{{- end }}
{{- end }}
{{- if .Values.settings.httpPoolOptIn }}
- --sql-over-http-pool-opt-in
- "true"
{{- else}}
- --sql-over-http-pool-opt-in
- "false"
{{- end }}
{{- if .Values.settings.domain }}
- --tls-key
- /certs/tls.key
Expand Down
2 changes: 2 additions & 0 deletions charts/neon-proxy/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ settings:
controlplane_token: ""
# settings.wakeComputeLock -- (string) Configures the locking of wake_compute per endpoint
wakeComputeLock: "permits=0"
# settings.httpPoolOptIn -- (bool) Sets the SQL over HTTP Pool to opt-in-only mode if true. Set false to enable it always
httpPoolOptIn: true

serviceAccount:
# serviceAccount.create - Specifies whether a service account should be created
Expand Down

0 comments on commit 39a4cfe

Please sign in to comment.