feat: Add Gitea
This commit is contained in:
@@ -2,36 +2,36 @@ bases:
|
|||||||
- ../envs/environments.yaml.gotmpl
|
- ../envs/environments.yaml.gotmpl
|
||||||
|
|
||||||
repositories:
|
repositories:
|
||||||
- name: forgejo
|
- name: gitea
|
||||||
oci: true
|
oci: true
|
||||||
url: code.forgejo.org/forgejo-helm
|
url: docker.gitea.com/charts
|
||||||
|
|
||||||
commonLabels:
|
commonLabels:
|
||||||
tier: system
|
tier: system
|
||||||
|
|
||||||
releases:
|
releases:
|
||||||
- name: forgejo
|
- name: gitea
|
||||||
namespace: forgejo
|
namespace: gitea
|
||||||
chart: forgejo/forgejo
|
chart: gitea/gitea
|
||||||
version: 16.0.1
|
version: 12.4.0
|
||||||
condition: forgejo.enabled
|
condition: gitea.enabled
|
||||||
values:
|
values:
|
||||||
- ../values/forgejo/values/values.yaml
|
- ../values/gitea/values/values.yaml
|
||||||
- ../values/forgejo/values/values-{{ .Environment.Name }}.yaml
|
- ../values/gitea/values/values-{{ .Environment.Name }}.yaml
|
||||||
postRenderer: ../bin/kustomizer
|
postRenderer: ../bin/kustomizer
|
||||||
postRendererArgs:
|
postRendererArgs:
|
||||||
- ../values/forgejo/kustomize/{{ .Environment.Name }}
|
- ../values/gitea/kustomize/{{ .Environment.Name }}
|
||||||
missingFileHandler: Info
|
missingFileHandler: Info
|
||||||
- name: manifests
|
- name: manifests
|
||||||
namespace: forgejo
|
namespace: gitea
|
||||||
chart: manifests
|
chart: manifests
|
||||||
condition: forgejo.enabled
|
condition: gitea.enabled
|
||||||
missingFileHandler: Info
|
missingFileHandler: Info
|
||||||
values:
|
values:
|
||||||
- ../values/env.yaml
|
- ../values/env.yaml
|
||||||
- ../values/env-{{ requiredEnv "ARGOCD_ENV_CLUSTER_NAME" }}.yaml
|
- ../values/env-{{ requiredEnv "ARGOCD_ENV_CLUSTER_NAME" }}.yaml
|
||||||
- ../values/forgejo/env.yaml.gotmpl
|
- ../values/gitea/env.yaml.gotmpl
|
||||||
- ../values/forgejo/env-{{ requiredEnv "ARGOCD_ENV_CLUSTER_NAME" }}.yaml.gotmpl
|
- ../values/gitea/env-{{ requiredEnv "ARGOCD_ENV_CLUSTER_NAME" }}.yaml.gotmpl
|
||||||
hooks:
|
hooks:
|
||||||
- events: [ prepare, cleanup ]
|
- events: [ prepare, cleanup ]
|
||||||
showlogs: true
|
showlogs: true
|
||||||
@@ -40,5 +40,5 @@ releases:
|
|||||||
- '{{`{{ if eq .Event.Name "prepare" }}build{{ else }}clean{{ end }}`}}'
|
- '{{`{{ if eq .Event.Name "prepare" }}build{{ else }}clean{{ end }}`}}'
|
||||||
- '{{`{{ .Release.Chart }}`}}'
|
- '{{`{{ .Release.Chart }}`}}'
|
||||||
- '{{`{{ .Environment.Name }}`}}'
|
- '{{`{{ .Environment.Name }}`}}'
|
||||||
- ../values/forgejo/manifests
|
- ../values/gitea/manifests
|
||||||
- manifests
|
- manifests
|
||||||
@@ -38,7 +38,7 @@ pkgs.mkShellNoCC {
|
|||||||
# cmctl
|
# cmctl
|
||||||
# rclone
|
# rclone
|
||||||
# velero
|
# velero
|
||||||
# renovate
|
renovate
|
||||||
|
|
||||||
# dapr
|
# dapr
|
||||||
dapr-cli
|
dapr-cli
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ spec:
|
|||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
- namespace: uptime
|
- namespace: uptime
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
- namespace: forgejo
|
- namespace: gitea
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
sourceRepos:
|
sourceRepos:
|
||||||
- https://argoproj.github.io/argo-helm
|
- https://argoproj.github.io/argo-helm
|
||||||
@@ -125,7 +125,7 @@ spec:
|
|||||||
- ghcr.io/slinkyproject/charts/slurm-operator-crds
|
- ghcr.io/slinkyproject/charts/slurm-operator-crds
|
||||||
- ghcr.io/spegel-org/helm-charts
|
- ghcr.io/spegel-org/helm-charts
|
||||||
- ghcr.io/dragonflydb/dragonfly-operator/helm/dragonfly-operator
|
- ghcr.io/dragonflydb/dragonfly-operator/helm/dragonfly-operator
|
||||||
- code.forgejo.org/forgejo-helm
|
- docker.gitea.com
|
||||||
- https://operator.mariadb.com/mariadb-enterprise-operator
|
- https://operator.mariadb.com/mariadb-enterprise-operator
|
||||||
- https://operator.mariadb.com
|
- https://operator.mariadb.com
|
||||||
- https://ot-container-kit.github.io/helm-charts
|
- https://ot-container-kit.github.io/helm-charts
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
forgejo:
|
gitea:
|
||||||
enabled: true
|
enabled: true
|
||||||
backup: true
|
backup: true
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
forgejo:
|
gitea:
|
||||||
enabled: false
|
enabled: false
|
||||||
backup: false
|
backup: false
|
||||||
autosync: {{ if eq .Environment.Name "prod" }} false {{ else }} true {{ end }}
|
autosync: {{ if eq .Environment.Name "prod" }} false {{ else }} true {{ end }}
|
||||||
@@ -2,11 +2,11 @@ apiVersion: barmancloud.cnpg.io/v1
|
|||||||
kind: ObjectStore
|
kind: ObjectStore
|
||||||
metadata:
|
metadata:
|
||||||
name: hel-store
|
name: hel-store
|
||||||
namespace: forgejo
|
namespace: gitea
|
||||||
spec:
|
spec:
|
||||||
retentionPolicy: "7d"
|
retentionPolicy: "7d"
|
||||||
configuration:
|
configuration:
|
||||||
destinationPath: s3://obx-cnpg/hel1/forgejo-db
|
destinationPath: s3://obx-cnpg/hel1/gitea-db
|
||||||
endpointURL: https://hel1.your-objectstorage.com
|
endpointURL: https://hel1.your-objectstorage.com
|
||||||
s3Credentials:
|
s3Credentials:
|
||||||
accessKeyId:
|
accessKeyId:
|
||||||
@@ -21,13 +21,13 @@ spec:
|
|||||||
apiVersion: postgresql.cnpg.io/v1
|
apiVersion: postgresql.cnpg.io/v1
|
||||||
kind: ScheduledBackup
|
kind: ScheduledBackup
|
||||||
metadata:
|
metadata:
|
||||||
name: forgejo-db
|
name: gitea-db
|
||||||
namespace: forgejo
|
namespace: gitea
|
||||||
spec:
|
spec:
|
||||||
schedule: "0 0 1 * * *"
|
schedule: "0 0 1 * * *"
|
||||||
backupOwnerReference: self
|
backupOwnerReference: self
|
||||||
cluster:
|
cluster:
|
||||||
name: forgejo-db
|
name: gitea-db
|
||||||
method: plugin
|
method: plugin
|
||||||
pluginConfiguration:
|
pluginConfiguration:
|
||||||
name: barman-cloud.cloudnative-pg.io
|
name: barman-cloud.cloudnative-pg.io
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
apiVersion: postgresql.cnpg.io/v1
|
apiVersion: postgresql.cnpg.io/v1
|
||||||
kind: Cluster
|
kind: Cluster
|
||||||
metadata:
|
metadata:
|
||||||
name: forgejo-db
|
name: gitea-db
|
||||||
namespace: forgejo
|
namespace: gitea
|
||||||
spec:
|
spec:
|
||||||
instances: 1
|
instances: 1
|
||||||
imageName: ghcr.io/cloudnative-pg/postgresql:18-minimal-trixie
|
imageName: ghcr.io/cloudnative-pg/postgresql:18-system-trixie
|
||||||
storage:
|
storage:
|
||||||
resizeInUseVolumes: true
|
resizeInUseVolumes: true
|
||||||
size: 10Gi
|
size: 10Gi
|
||||||
@@ -1,8 +1,8 @@
|
|||||||
apiVersion: dragonflydb.io/v1alpha1
|
apiVersion: dragonflydb.io/v1alpha1
|
||||||
kind: Dragonfly
|
kind: Dragonfly
|
||||||
metadata:
|
metadata:
|
||||||
name: dragonfly-forgejo
|
name: dragonfly-gitea
|
||||||
namespace: forgejo
|
namespace: gitea
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
resources:
|
resources:
|
||||||
@@ -2,7 +2,7 @@
|
|||||||
apiVersion: argoproj.io/v1alpha1
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
name: forgejo
|
name: gitea
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
annotations:
|
annotations:
|
||||||
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
|
||||||
@@ -10,7 +10,7 @@ metadata:
|
|||||||
- resources-finalizer.argocd.argoproj.io
|
- resources-finalizer.argocd.argoproj.io
|
||||||
spec:
|
spec:
|
||||||
destination:
|
destination:
|
||||||
namespace: forgejo
|
namespace: gitea
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
project: sys
|
project: sys
|
||||||
sources:
|
sources:
|
||||||
@@ -23,9 +23,9 @@ spec:
|
|||||||
- name: CLUSTER_NAME
|
- name: CLUSTER_NAME
|
||||||
value: {{ .Values.clusterConfig.cluster }}
|
value: {{ .Values.clusterConfig.cluster }}
|
||||||
- name: HELMFILE_ENVIRONMENT
|
- name: HELMFILE_ENVIRONMENT
|
||||||
value: {{ .Values.forgejo.env }}
|
value: {{ .Values.gitea.env }}
|
||||||
- name: HELMFILE_FILE_PATH
|
- name: HELMFILE_FILE_PATH
|
||||||
value: forgejo.yaml.gotmpl
|
value: gitea.yaml.gotmpl
|
||||||
syncPolicy:
|
syncPolicy:
|
||||||
managedNamespaceMetadata:
|
managedNamespaceMetadata:
|
||||||
labels:
|
labels:
|
||||||
@@ -34,7 +34,7 @@ spec:
|
|||||||
- CreateNamespace=true
|
- CreateNamespace=true
|
||||||
- ApplyOutOfSyncOnly=true
|
- ApplyOutOfSyncOnly=true
|
||||||
# - ServerSideApply=true
|
# - ServerSideApply=true
|
||||||
{{- if .Values.forgejo.autosync }}
|
{{- if .Values.gitea.autosync }}
|
||||||
automated:
|
automated:
|
||||||
prune: true
|
prune: true
|
||||||
# selfHeal: false
|
# selfHeal: false
|
||||||
@@ -1,11 +1,11 @@
|
|||||||
apiVersion: monitoring.coreos.com/v1
|
apiVersion: monitoring.coreos.com/v1
|
||||||
kind: PodMonitor
|
kind: PodMonitor
|
||||||
metadata:
|
metadata:
|
||||||
name: forgejo-db-monitor
|
name: gitea-db-monitor
|
||||||
namespace: forgejo
|
namespace: gitea
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
cnpg.io/cluster: forgejo-db
|
cnpg.io/cluster: gitea-db
|
||||||
podMetricsEndpoints:
|
podMetricsEndpoints:
|
||||||
- port: metrics
|
- port: metrics
|
||||||
@@ -1,37 +1,43 @@
|
|||||||
replicaCount: 1
|
replicaCount: 1
|
||||||
image:
|
image:
|
||||||
registry: code.forgejo.org
|
registry: "docker.gitea.com"
|
||||||
repository: forgejo/forgejo
|
repository: gitea
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 200m
|
cpu: 200m
|
||||||
memory: 512Mi
|
memory: 512Mi
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: "100%"
|
||||||
|
maxUnavailable: 0
|
||||||
|
|
||||||
gitea:
|
gitea:
|
||||||
metrics:
|
metrics:
|
||||||
enabled: true
|
enabled: true
|
||||||
serviceMonitor:
|
serviceMonitor:
|
||||||
enabled: true
|
enabled: true
|
||||||
config:
|
config:
|
||||||
APP_NAME: 'Forgejo: With a cup of tea.'
|
APP_NAME: 'Gitea: With a cup of tea.'
|
||||||
cache:
|
cache:
|
||||||
ENABLED: true
|
ENABLED: true
|
||||||
ADAPTER: redis
|
ADAPTER: redis
|
||||||
HOST: redis://dragonfly-forgejo.forgejo.svc:6379/0
|
HOST: redis://dragonfly-gitea.gitea.svc:6379/0
|
||||||
ITEM_TTL: "72h" # increased from default 16h
|
ITEM_TTL: "72h" # increased from default 16h
|
||||||
session:
|
session:
|
||||||
PROVIDER: redis
|
PROVIDER: redis
|
||||||
PROVIDER_CONFIG: redis://dragonfly-forgejo.forgejo.svc:6379/1
|
PROVIDER_CONFIG: redis://dragonfly-gitea.gitea.svc:6379/1
|
||||||
queue:
|
queue:
|
||||||
TYPE: redis
|
TYPE: redis
|
||||||
CONN_STR: redis://dragonfly-forgejo.forgejo.svc:6379/2
|
CONN_STR: redis://dragonfly-gitea.gitea.svc:6379/2
|
||||||
storage:
|
storage:
|
||||||
STORAGE_TYPE: minio
|
STORAGE_TYPE: minio
|
||||||
MINIO_ENDPOINT: hel1.your-objectstorage.com
|
MINIO_ENDPOINT: hel1.your-objectstorage.com
|
||||||
MINIO_USE_SSL: true
|
MINIO_USE_SSL: true
|
||||||
MINIO_LOCATION: hel1
|
MINIO_LOCATION: hel1
|
||||||
MINIO_BUCKET: obx-forgejo
|
MINIO_BUCKET: obx-gitea
|
||||||
security:
|
security:
|
||||||
INSTALL_LOCK: true
|
INSTALL_LOCK: true
|
||||||
service:
|
service:
|
||||||
@@ -58,44 +64,44 @@ gitea:
|
|||||||
oauth:
|
oauth:
|
||||||
- name: 'Oceanbox'
|
- name: 'Oceanbox'
|
||||||
provider: 'openidConnect'
|
provider: 'openidConnect'
|
||||||
existingSecret: forgejo-oauth-oceanbox
|
existingSecret: gitea-oauth-oceanbox
|
||||||
autoDiscoverUrl: 'https://login.microsoftonline.com/3f737008-e9a0-4485-9d27-40329d288089/.well-known/openid-configuration'
|
autoDiscoverUrl: 'https://login.microsoftonline.com/3f737008-e9a0-4485-9d27-40329d288089/.well-known/openid-configuration'
|
||||||
scopes: 'openid profile email groups'
|
scopes: 'openid profile email groups'
|
||||||
groupClaimName: 'groups'
|
groupClaimName: 'groups'
|
||||||
adminGroup: '/oceanbox/devel'
|
adminGroup: '/oceanbox/devel'
|
||||||
restrictedGroup: ''
|
restrictedGroup: ''
|
||||||
additionalConfigFromEnvs:
|
additionalConfigFromEnvs:
|
||||||
- name: FORGEJO__STORAGE__MINIO_ACCESS_KEY_ID
|
- name: GITEA__STORAGE__MINIO_ACCESS_KEY_ID
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: forgejo-s3
|
name: gitea-s3
|
||||||
key: access_key
|
key: access_key
|
||||||
- name: FORGEJO__STORAGE__MINIO_SECRET_ACCESS_KEY
|
- name: GITEA__STORAGE__MINIO_SECRET_ACCESS_KEY
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: forgejo-s3
|
name: gitea-s3
|
||||||
key: secret_key
|
key: secret_key
|
||||||
- name: FORGEJO__DATABASE__PASSWD
|
- name: GITEA__DATABASE__PASSWD
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: forgejo-db-app
|
name: gitea-db-app
|
||||||
key: password
|
key: password
|
||||||
- name: FORGEJO__DATABASE__NAME
|
- name: GITEA__DATABASE__NAME
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: forgejo-db-app
|
name: gitea-db-app
|
||||||
key: dbname
|
key: dbname
|
||||||
- name: FORGEJO__DATABASE__USER
|
- name: GITEA__DATABASE__USER
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: forgejo-db-app
|
name: gitea-db-app
|
||||||
key: user
|
key: user
|
||||||
- name: FORGEJO__DATABASE__HOST
|
- name: GITEA__DATABASE__HOST
|
||||||
valueFrom:
|
valueFrom:
|
||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: forgejo-db-app
|
name: gitea-db-app
|
||||||
key: host
|
key: host
|
||||||
- name: FORGEJO__DATABASE__DB_TYPE
|
- name: GITEA__DATABASE__DB_TYPE
|
||||||
value: postgres
|
value: postgres
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
@@ -113,13 +119,13 @@ ingress:
|
|||||||
paths:
|
paths:
|
||||||
- backend:
|
- backend:
|
||||||
service:
|
service:
|
||||||
name: forgejo-http
|
name: gitea-http
|
||||||
port:
|
port:
|
||||||
number: 3000
|
number: 3000
|
||||||
path: /
|
path: /
|
||||||
pathType: ImplementationSpecific
|
pathType: ImplementationSpecific
|
||||||
tls:
|
tls:
|
||||||
- secretName: forgejo-tls
|
- secretName: gitea-tls
|
||||||
hosts:
|
hosts:
|
||||||
- git.svc.hel1.obx
|
- git.svc.hel1.obx
|
||||||
|
|
||||||
@@ -131,6 +137,11 @@ ingress:
|
|||||||
# load-balancer.hetzner.cloud/location: hel1
|
# load-balancer.hetzner.cloud/location: hel1
|
||||||
# load-balancer.hetzner.cloud/uses-proxyprotocol: 'false'
|
# load-balancer.hetzner.cloud/uses-proxyprotocol: 'false'
|
||||||
|
|
||||||
|
postgresql-ha:
|
||||||
|
enabled: false
|
||||||
|
valkey-cluster:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
enabled: true
|
enabled: true
|
||||||
size: 1Gi
|
size: 1Gi
|
||||||
Reference in New Issue
Block a user