gitea: allow specifying different external ssh port (#2613)

* gitea: allow specifying different external ssh port

* desc

* lint

* bump

* single quotes
This commit is contained in:
Stavros Kois
2024-06-25 18:41:58 +03:00
committed by GitHub
parent 69af37811c
commit ea167e8f50
6 changed files with 20 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ description: Gitea - Git with a cup of tea
annotations:
title: Gitea
type: application
version: 1.1.20
version: 1.1.21
apiVersion: v2
appVersion: 1.22.0
kubeVersion: '>=1.16.0-0'

View File

@@ -13,3 +13,4 @@ giteaStorage:
giteaNetwork:
rootURL: http://localhost:30000
externalSshPort: 22

View File

@@ -21,7 +21,6 @@ portals:
path: "$kubernetes-resource_configmap_portal_path"
questions:
- variable: giteaConfig
label: ""
group: Gitea Configuration
@@ -105,6 +104,17 @@ questions:
min: 9000
max: 65535
required: true
- variable: externalSshPort
label: External SSH Port
description: |
The ssh port that Gitea will be available at externally.</br>
Leave empty to use the same port as the ssh port.
schema:
type: int
"null": true
default: null
min: 9000
max: 65535
- variable: hostNetwork
label: Host Network
description: |

View File

@@ -45,7 +45,7 @@ configmap:
data:
{{ $protocol := "http" }}
GITEA__server__HTTP_PORT: {{ .Values.giteaNetwork.webPort | quote }}
GITEA__server__SSH_PORT: {{ .Values.giteaNetwork.sshPort | quote }}
GITEA__server__SSH_PORT: {{ .Values.giteaNetwork.externalSshPort | default .Values.giteaNetwork.sshPort | quote }}
GITEA__server__SSH_LISTEN_PORT: {{ .Values.giteaNetwork.sshPort | quote }}
GITEA__server__ROOT_URL: {{ .Values.giteaNetwork.rootURL | quote }}
{{ if .Values.giteaNetwork.certificateID }}

View File

@@ -3,7 +3,7 @@ description: Tdarr is a Distributed Transcoding System
annotations:
title: Tdarr
type: application
version: 1.2.5
version: 1.2.6
apiVersion: v2
appVersion: 2.17.01
kubeVersion: '>=1.16.0-0'

View File

@@ -14,7 +14,11 @@ STRIP_TEXT = '_ffmpeg5'
def newer_mapping(image_tags):
key = list(image_tags.keys())[0]
tags = {RE_CLEAN_VERSION.sub("\\1", t.strip(STRIP_TEXT)): t for t in image_tags[key] if RE_STABLE_VERSION.fullmatch(t)}
tags = {
RE_CLEAN_VERSION.sub('\\1', t.strip(STRIP_TEXT)): t
for t in image_tags[key]
if RE_STABLE_VERSION.fullmatch(t)
}
version = semantic_versioning(list(tags))
if not version:
return {}