From a31e2af28164fac183d7ce4b9ff9d6f0565eeb55 Mon Sep 17 00:00:00 2001 From: Michael Kriese Date: Mon, 6 May 2024 13:36:51 +0000 Subject: [PATCH] fix: restore default ssh port values (#461) Reviewed-on: https://codeberg.org/forgejo-contrib/forgejo-helm/pulls/461 Co-authored-by: Michael Kriese Co-committed-by: Michael Kriese --- unittests/deployment/svc-configuration.yaml | 10 ++++++++++ values.yaml | 6 ++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/unittests/deployment/svc-configuration.yaml b/unittests/deployment/svc-configuration.yaml index 2e10094..0ddccad 100644 --- a/unittests/deployment/svc-configuration.yaml +++ b/unittests/deployment/svc-configuration.yaml @@ -49,3 +49,13 @@ tests: asserts: - exists: path: metadata.labels["app"] + + - it: uses default ports to ssh-svc + template: templates/gitea/ssh-svc.yaml + asserts: + - equal: + path: spec.ports[0].port + value: 22 + - equal: + path: spec.ports[0].targetPort + value: 2222 diff --git a/values.yaml b/values.yaml index 66198ff..b93216e 100644 --- a/values.yaml +++ b/values.yaml @@ -440,8 +440,10 @@ gitea: ## @param gitea.config.markdown Markdown parser settings markdown: {} - ## @param gitea.config.server General server settings - server: {} + ## @param gitea.config.server [object] General server settings + server: + SSH_PORT: 22 # rootful image + SSH_LISTEN_PORT: 2222 # rootless image ## @param gitea.config.database Database configuration (only necessary with an [externally managed DB](https://codeberg.org/forgejo-contrib/forgejo-helm#external-database)). database: {}