Re-install woodpecker

This commit is contained in:
Nikolai Rodionov 2023-12-08 14:10:32 +01:00
parent 30b59f6daa
commit a616f03d71
No known key found for this signature in database
GPG Key ID: 19DB54039EBF8F10
5 changed files with 44 additions and 4 deletions

19
;wq Normal file
View File

@ -0,0 +1,19 @@
---
ext-database:
templates:
- |
---
apiVersion: kinda.rocks/v1beta1
kind: Database
metadata:
name: "{{ .Values.name }}"
spec:
secretName: "{{ .Values.name }}-creds"
instance: "{{ .Values.instance }}"
deletionProtected: false
backup:
enable: false
cron: 0 0 * * *
{{ if .Values.templates }}
check: check
{{- end }}

View File

@ -104,7 +104,7 @@ releases:
- <<: *woodpecker-ci - <<: *woodpecker-ci
installed: true installed: true
namespace: woodpecker namespace: woodpecker-ci
createNamespace: true createNamespace: true
bases: bases:

View File

@ -11,24 +11,35 @@ istio:
hostname: ci.badhouseplants.net hostname: ci.badhouseplants.net
service: woodpecker-ci-server service: woodpecker-ci-server
port: 80 port: 80
ext-database:
enabled: true
name: woodpecker-postgres16
instance: postgres16
credentials:
WOODPECKER_DATABASE_DATASOURCE: "postgres://{{ .Username }}:{{ .Password }}@{{ .Hostname }}:{{ .Port }}/{{ .Database }}?sslmode=disable"
server: server:
enabled: true enabled: true
env: env:
WOODPECKER_GITEA: true WOODPECKER_GITEA: true
WOODPECKER_GITEA_URL: https://git.badhouseplants.net WOODPECKER_GITEA_URL: https://git.badhouseplants.net
WOODPECKER_DATABASE_DRIVER: postgres
WOODPECKER_GITEA_CLIENT: ab5e4687-a476-4668-9fbc-288d54095634 WOODPECKER_GITEA_CLIENT: ab5e4687-a476-4668-9fbc-288d54095634
WOODPECKER_OPEN: true WOODPECKER_OPEN: true
WOODPECKER_ADMIN: "woodpecker,allanger" WOODPECKER_ADMIN: "woodpecker,allanger"
WOODPECKER_HOST: "https://ci.badhouseplants.net" WOODPECKER_HOST: "https://ci.badhouseplants.net"
WOODPECKER_ESCALATE: true WOODPECKER_ESCALATE: true
extraSecretNamesForEnvFrom: [] WOODPECKER_BACKEND_K8S_NAMESPACE: woodpecker-ci
WOODPECKER_BACKEND_K8S_STORAGE_CLASS: microk8s-hostpath
extraSecretNamesForEnvFrom:
- woodpecker-postgres16-creds
agent: agent:
enabled: true enabled: true
extraSecretNamesForEnvFrom: [] extraSecretNamesForEnvFrom: []
env: env:
WOODPECKER_SERVER: woodpecker-ci-server:9000 WOODPECKER_SERVER: woodpecker-ci-server:9000
WOODPECKER_BACKEND_K8S_VOLUME_SIZE: 1Gi WOODPECKER_BACKEND_K8S_VOLUME_SIZE: 3Gi
WOODPECKER_BACKEND_K8S_STORAGE_CLASS: WOODPECKER_BACKEND_K8S_NAMESPACE: woodpecker-ci
WOODPECKER_BACKEND_K8S_STORAGE_CLASS: microk8s-hostpath
serviceAccount: serviceAccount:
create: true create: true
rbac: rbac:

View File

@ -14,3 +14,12 @@ ext-database:
backup: backup:
enable: false enable: false
cron: 0 0 * * * cron: 0 0 * * *
{{- if .Values.credentials }}
credentials:
templates:
{{- range $key, $value := .Values.credentials }}
- name: {{ $key }}
template: {{ $value }}
secret: true
{{- end }}
{{- end }}

View File

@ -235,6 +235,7 @@ templates:
chart: woodpecker/woodpecker chart: woodpecker/woodpecker
version: 1.0.1 version: 1.0.1
inherit: inherit:
- template: ext-database
- template: default-env-values - template: default-env-values
- template: default-env-secrets - template: default-env-secrets
- template: ext-istio-resource - template: ext-istio-resource