Skip to content
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 .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ env:

jobs:
release:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404
permissions:
contents: read
id-token: write
Expand Down
11 changes: 2 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
test:
runs-on: ubuntu-latest
runs-on: blacksmith-4vcpu-ubuntu-2404

steps:
- name: Checkout repository
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
sudo pip3 install cmake==3.31.6

- name: Build pgdog
run: cargo build --bin pgdog --bin gateway
run: cargo build --bin pgdog
working-directory: pgdog-source

- name: Validate configs
Expand All @@ -91,12 +91,5 @@ jobs:
rm -f /tmp/pgdog.toml
./test/generate-config.sh "$values_file" /tmp/pgdog.toml
./pgdog-source/target/debug/pgdog --config=/tmp/pgdog.toml configcheck

# Check if gateway is enabled and validate gateway config
rm -f /tmp/gateway.toml
if ./test/generate-gateway-config.sh "$values_file" /tmp/gateway.toml 2>/dev/null; then
echo "==> Validating gateway config for $name..."
./pgdog-source/target/debug/gateway --config=/tmp/gateway.toml configcheck
fi
done
echo "==> All configs valid!"
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: v1
name: pgdog
version: v0.39
version: v0.40
appVersion: "0.1.26"
5 changes: 5 additions & 0 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ spec:
valueFrom:
fieldRef:
fieldPath: metadata.name
{{- range .Values.env }}
{{- if ne .name "NODE_ID" }}
- {{- toYaml . | nindent 14 }}
{{- end }}
{{- end }}
ports:
- name: pgdog
containerPort: {{ .Values.port }}
Expand Down
27 changes: 0 additions & 27 deletions test/generate-gateway-config.sh

This file was deleted.

4 changes: 4 additions & 0 deletions test/values-full.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Full configuration test with databases and users
replicas: 3

env:
- name: RUST_LOG
value: trace
queryParserEngine: "pg_query_raw"

memoryNetBuffer: 8192
Expand Down
66 changes: 0 additions & 66 deletions test/values-gateway.yaml

This file was deleted.

13 changes: 13 additions & 0 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,19 @@ statefulSet:
# enabled switches from Deployment to StatefulSet
enabled: false

# env allows setting custom environment variables on the pgdog container
# Note: NODE_ID is automatically generated and cannot be overridden
# Example:
# env:
# - name: MY_VAR
# value: "my-value"
# - name: SECRET_VAR
# valueFrom:
# secretKeyRef:
# name: my-secret
# key: password
env: []

# Extra customization for advanced use cases
# extraInitContainers allows adding custom init containers that run before the main pgdog container
# Init containers are useful for setup tasks like downloading certificates, waiting for dependencies, etc.
Expand Down
Loading