From 0fef04b07a3e6891f663e169a0fef0452750c55e Mon Sep 17 00:00:00 2001 From: bitfade Date: Wed, 3 Jul 2024 10:32:18 +0200 Subject: [PATCH] feat: added swagger ips and increased proxy-read-timeout Some webhooks can take up to 5m to trigger and a lower value causes tests to fail with a 504 gateway timeout error. --- charts/ds-server/Chart.yaml | 2 +- charts/ds-server/templates/ingress.yml | 1 + charts/ds-server/templates/secrets.yml | 1 + charts/ds-server/values.yaml | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/charts/ds-server/Chart.yaml b/charts/ds-server/Chart.yaml index a43d987..21286cc 100644 --- a/charts/ds-server/Chart.yaml +++ b/charts/ds-server/Chart.yaml @@ -5,4 +5,4 @@ maintainers: - email: dustin@elegantthemes.com name: Elegant Themes name: ds-server -version: 1.0.5 +version: 1.0.6 diff --git a/charts/ds-server/templates/ingress.yml b/charts/ds-server/templates/ingress.yml index 1721730..0d08ae6 100644 --- a/charts/ds-server/templates/ingress.yml +++ b/charts/ds-server/templates/ingress.yml @@ -16,6 +16,7 @@ metadata: nginx.ingress.kubernetes.io/use-regex: "true" nginx.ingress.kubernetes.io/enable-rewrite-log: "false" nginx.ingress.kubernetes.io/ssl-redirect: "false" + nginx.ingress.kubernetes.io/proxy-read-timeout: "300" spec: tls: - hosts: diff --git a/charts/ds-server/templates/secrets.yml b/charts/ds-server/templates/secrets.yml index 4de845b..c446215 100644 --- a/charts/ds-server/templates/secrets.yml +++ b/charts/ds-server/templates/secrets.yml @@ -22,5 +22,6 @@ stringData: PRESSABLE_SHARED_KEY={{ .Values.PRESSABLE_SHARED_KEY | squote }} REDIS_HOSTNAME={{ .Values.REDIS_HOSTNAME | squote }} REDIS_NAME={{ .Values.REDIS_NAME | squote }} + SWAGGER_ALLOWED_IPS={{ .Values.SWAGGER_ALLOWED_IPS | squote }} VIRTUAL_HOST={{ .Values.VIRTUAL_HOST | squote }} diff --git a/charts/ds-server/values.yaml b/charts/ds-server/values.yaml index 8eaa90d..f2224de 100644 --- a/charts/ds-server/values.yaml +++ b/charts/ds-server/values.yaml @@ -19,4 +19,5 @@ PRESSABLE_SHARED_KEY: REDIS_HOSTNAME: REDIS_NAME: REPLICAS: +SWAGGER_ALLOWED_IPS: VIRTUAL_HOST: