1
0
Fork 0

fix gitea replacement

This commit is contained in:
Massaki Archambault 2023-02-20 21:26:50 -05:00
parent c0b61a2eb4
commit 19ce7eac7c
2 changed files with 10 additions and 4 deletions

View File

@ -20,6 +20,8 @@ spec:
- name: gitea - name: gitea
image: gitea/gitea image: gitea/gitea
env: env:
- name: GITEA__SERVER__SSH_DOMAIN
value: ${GITEA_EXTERNAL_HOST}
- name: GITEA__SERVER__ROOT_URL - name: GITEA__SERVER__ROOT_URL
value: https://${GITEA_EXTERNAL_HOST} value: https://${GITEA_EXTERNAL_HOST}
- name: GITEA__WEBHOOK_ALLOWED_HOST_LIST - name: GITEA__WEBHOOK_ALLOWED_HOST_LIST
@ -28,8 +30,6 @@ spec:
value: Badjware's code stash value: Badjware's code stash
- name: GITEA__SERVICE__DISABLE_REGISTRATION - name: GITEA__SERVICE__DISABLE_REGISTRATION
value: "yes" value: "yes"
- name: GITEA__SERVER__SSH_DOMAIN
value: ${GITEA_EXTERNAL_HOST}
- name: GITEA__SERVER__SSH_PORT - name: GITEA__SERVER__SSH_PORT
value: "30022" value: "30022"
- name: GITEA__METRICS__ENABLED - name: GITEA__METRICS__ENABLED

View File

@ -116,6 +116,12 @@ replacements:
namespace: default namespace: default
fieldPath: data.GITEA_EXTERNAL_HOST fieldPath: data.GITEA_EXTERNAL_HOST
targets: targets:
- select:
kind: Deployment
name: gitea
namespace: gitea
fieldPaths:
- spec.template.spec.containers.0.env.0.value
- select: - select:
kind: Ingress kind: Ingress
name: gitea name: gitea
@ -133,7 +139,7 @@ replacements:
name: gitea name: gitea
namespace: gitea namespace: gitea
fieldPaths: fieldPaths:
- spec.template.spec.containers.0.env.0.value - spec.template.spec.containers.0.env.1.value
- select: - select:
kind: Deployment kind: Deployment
name: drone-server name: drone-server
@ -193,7 +199,7 @@ replacements:
name: gitea name: gitea
namespace: gitea namespace: gitea
fieldPaths: fieldPaths:
- spec.template.spec.containers.0.env.1.value - spec.template.spec.containers.0.env.2.value
- select: - select:
kind: Deployment kind: Deployment
name: drone-server name: drone-server