Skip to content

Commit

Permalink
Upgrade GatewayD to v0.9.8 and Refactor Configuration Management (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinadarbouy authored Sep 30, 2024
1 parent 8fe69a3 commit 0cd89bc
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 24 deletions.
2 changes: 1 addition & 1 deletion Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: gatewayd
description: Cloud-native database gateway and framework for building data-driven applications, Like API gateways, for databases.
type: application
version: 0.1.0
appVersion: v0.9.7
appVersion: v0.9.8
home: https://www.gatewayd.io
icon: https://github.com/gatewayd-io/docs/blob/main/assets/gatewayd-logotype-light.png
sources:
Expand Down
2 changes: 1 addition & 1 deletion files/gatewayd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
loggers:
default:
output: ["console"] # "stdout", "stderr", "syslog", "rsyslog" and "file"
level: "debug" # panic, fatal, error, warn, info (default), debug, trace
level: "info" # panic, fatal, error, warn, info (default), debug, trace
noColor: False
timeFormat: "unix" # unixms, unixmicro and unixnano
consoleTimeFormat: "RFC3339" # Go time format string
Expand Down
9 changes: 0 additions & 9 deletions templates/configmap.yaml

This file was deleted.

10 changes: 7 additions & 3 deletions templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,13 @@ spec:
- name: http
containerPort: {{ .Values.service.port }}
protocol: TCP
envFrom:
- configMapRef:
name: {{ include "gatewayd.fullname" . }}
{{- if .Values.extraEnvVars}}
env:
{{- range $key, $value := .Values.extraEnvVars }}
- name: "{{ $key }}"
value: "{{ $value }}"
{{- end }}
{{- end}}
readinessProbe:
httpGet:
path: /healthz
Expand Down
2 changes: 1 addition & 1 deletion templates/serviceaccount.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ metadata:
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
automountServiceAccountToken: {{ .Values.serviceAccount.automount }}
automountServiceAccountToken: {{ .Values.serviceAccount.automount }}
{{- end }}
19 changes: 10 additions & 9 deletions values.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
gatewayd:
clients:
default:
writes:
address: "psql-postgresql:5432"
loggers:
default:
# For production, use info
level: debug
replicaCount: 1

image:
Expand Down Expand Up @@ -96,8 +87,18 @@ podDisruptionBudget:
minAvailable: 1
# maxUnavailable: 1

# If gatewaydPluginsConfig is disabled, GatewayD will use the default plugin configuration.
# The default config can be found here: https://github.com/gatewayd-io/gatewayd/blob/main/gatewayd_plugins.yaml
gatewaydPluginsConfig:
enabled: true

# If gatewaydConfig is disabled, GatewayD will use the default configuration.
# The default config can be found here: https://github.com/gatewayd-io/gatewayd/blob/main/gatewayd.yaml
gatewaydConfig:
enabled: true

# Configuration can be overridden using environment variables.
# For more details, visit: https://docs.gatewayd.io/using-gatewayd/configuration/#environment-variables
# extraEnvVars:
# GATEWAYD_CLIENTS_DEFAULT_WRITES_ADDRESS: psql-postgresql:5432
# GATEWAYD_LOGGERS_DEFAULT_LEVEL: debug # For production, use info

0 comments on commit 0cd89bc

Please sign in to comment.