Compare commits
14 Commits
Author | SHA1 | Date | |
---|---|---|---|
cd982e5fcd | |||
1f95ae962c | |||
f7faa6699a | |||
ffd6e5f92c | |||
39d6d9b9d5 | |||
068d1aafa0 | |||
2082d67ec8 | |||
1a1a001656 | |||
942312a973 | |||
c168d47181 | |||
8060d080db | |||
9d25bc75d5 | |||
df27a3ff10 | |||
e85e1718de |
@ -2,8 +2,8 @@ apiVersion: v2
|
|||||||
name: gitea
|
name: gitea
|
||||||
description: Gitea Helm chart for Kubernetes
|
description: Gitea Helm chart for Kubernetes
|
||||||
type: application
|
type: application
|
||||||
version: 1.4.2
|
version: 1.5.0
|
||||||
appVersion: 1.12.3
|
appVersion: 1.12.4
|
||||||
icon: https://docs.gitea.io/images/gitea.png
|
icon: https://docs.gitea.io/images/gitea.png
|
||||||
|
|
||||||
keywords:
|
keywords:
|
||||||
@ -30,7 +30,7 @@ dependencies:
|
|||||||
- name: memcached
|
- name: memcached
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.bitnami.com/bitnami
|
||||||
version: 4.2.20
|
version: 4.2.20
|
||||||
condition: gitea.cache.enabled
|
condition: gitea.cache.builtIn.enabled
|
||||||
- name: mysql
|
- name: mysql
|
||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.bitnami.com/bitnami
|
||||||
version: 6.14.8
|
version: 6.14.8
|
||||||
|
34
README.md
34
README.md
@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
[Gitea](https://gitea.io/en-us/) is a community managed lightweight code hosting solution written in Go. It is published under the MIT license.
|
[Gitea](https://gitea.io/en-us/) is a community managed lightweight code hosting solution written in Go. It is published under the MIT license.
|
||||||
|
|
||||||
Readme will be updated with examples in the next few days
|
|
||||||
|
|
||||||
## Introduction
|
## Introduction
|
||||||
|
|
||||||
This helm chart has taken some inspiration from https://github.com/jfelten/gitea-helm-chart
|
This helm chart has taken some inspiration from https://github.com/jfelten/gitea-helm-chart
|
||||||
@ -49,6 +47,26 @@ Gitea offers lots of configuration. This is fully described in the [Gitea Cheat
|
|||||||
repository.pull-request:
|
repository.pull-request:
|
||||||
WORK_IN_PROGRESS_PREFIXES: "WIP:,[WIP]:"
|
WORK_IN_PROGRESS_PREFIXES: "WIP:,[WIP]:"
|
||||||
```
|
```
|
||||||
|
### External Database
|
||||||
|
|
||||||
|
An external Database can be used instead of builtIn postgresql or mysql.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
gitea:
|
||||||
|
database:
|
||||||
|
builtIn:
|
||||||
|
postgresql:
|
||||||
|
enabled: false
|
||||||
|
|
||||||
|
config:
|
||||||
|
database:
|
||||||
|
DB_TYPE: mysql
|
||||||
|
HOST: 127.0.0.1:3306
|
||||||
|
NAME: gitea
|
||||||
|
USER: root
|
||||||
|
PASSWD: gitea
|
||||||
|
SCHEMA: gitea
|
||||||
|
```
|
||||||
|
|
||||||
### Ports and external url
|
### Ports and external url
|
||||||
|
|
||||||
@ -157,6 +175,15 @@ Like the admin user the ldap settings can be updated but also disabled or delete
|
|||||||
usernameAttribute: CN
|
usernameAttribute: CN
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Pod Annotations
|
||||||
|
|
||||||
|
Annotations can be added to the Gitea pod.
|
||||||
|
|
||||||
|
```yaml
|
||||||
|
gitea:
|
||||||
|
podAnnotations: {}
|
||||||
|
```
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
### Others
|
### Others
|
||||||
@ -164,6 +191,7 @@ Like the admin user the ldap settings can be updated but also disabled or delete
|
|||||||
| Parameter | Description | Default |
|
| Parameter | Description | Default |
|
||||||
|---------------------|-----------------------------------|------------------------------|
|
|---------------------|-----------------------------------|------------------------------|
|
||||||
|statefulset.terminationGracePeriodSeconds| Image to start for this pod | gitea/gitea |
|
|statefulset.terminationGracePeriodSeconds| Image to start for this pod | gitea/gitea |
|
||||||
|
|statefulset.env | Additional environment variables to pass to containers | [] |
|
||||||
|
|
||||||
|
|
||||||
### Image
|
### Image
|
||||||
@ -171,7 +199,7 @@ Like the admin user the ldap settings can be updated but also disabled or delete
|
|||||||
| Parameter | Description | Default |
|
| Parameter | Description | Default |
|
||||||
|---------------------|-----------------------------------|------------------------------|
|
|---------------------|-----------------------------------|------------------------------|
|
||||||
|image.repository| Image to start for this pod | gitea/gitea |
|
|image.repository| Image to start for this pod | gitea/gitea |
|
||||||
|image.version| Image Version | 1.12.2 |
|
|image.version| Image Version | 1.12.4 |
|
||||||
|image.pullPolicy| Image pull policy | Always |
|
|image.pullPolicy| Image pull policy | Always |
|
||||||
|
|
||||||
### Persistence
|
### Persistence
|
||||||
|
@ -13,7 +13,6 @@
|
|||||||
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "gitea.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
|
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "gitea.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}")
|
||||||
echo http://$SERVICE_IP:{{ .Values.service.port }}
|
echo http://$SERVICE_IP:{{ .Values.service.port }}
|
||||||
{{- else if contains "ClusterIP" .Values.service.http.type }}
|
{{- else if contains "ClusterIP" .Values.service.http.type }}
|
||||||
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "gitea.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
|
|
||||||
echo "Visit http://127.0.0.1:{{ .Values.service.http.port }} to use your application"
|
echo "Visit http://127.0.0.1:{{ .Values.service.http.port }} to use your application"
|
||||||
kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME {{ .Values.service.http.port }}:{{ .Values.service.http.port }}
|
kubectl --namespace {{ .Release.Namespace }} port-forward svc/{{ .Release.Name }}-http {{ .Values.service.http.port }}:{{ .Values.service.http.port }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -61,7 +61,8 @@ app.kubernetes.io/instance: {{ .Release.Name }}
|
|||||||
{{- else if .Values.gitea.database.builtIn.mysql.enabled -}}
|
{{- else if .Values.gitea.database.builtIn.mysql.enabled -}}
|
||||||
{{- printf "%s-mysql" .Release.Name -}}
|
{{- printf "%s-mysql" .Release.Name -}}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{ .Values.gitea.database.external.host }}
|
{{- $parts := split ":" .Values.gitea.config.database.HOST -}}
|
||||||
|
{{- printf "%s %s" $parts._0 $parts._1 -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
@ -71,7 +72,6 @@ app.kubernetes.io/instance: {{ .Release.Name }}
|
|||||||
{{- else if .Values.gitea.database.builtIn.mysql.enabled -}}
|
{{- else if .Values.gitea.database.builtIn.mysql.enabled -}}
|
||||||
{{ .Values.mysql.service.port }}
|
{{ .Values.mysql.service.port }}
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
{{ .Values.gitea.database.external.port }}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: ConfigMap
|
kind: Secret
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "gitea.fullname" . }}
|
name: {{ include "gitea.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "gitea.labels" . | nindent 4 }}
|
{{- include "gitea.labels" . | nindent 4 }}
|
||||||
data:
|
type: Opaque
|
||||||
|
stringData:
|
||||||
app.ini: |-
|
app.ini: |-
|
||||||
{{- if not (hasKey .Values.gitea.config "cache") -}}
|
{{- if not (hasKey .Values.gitea.config "cache") -}}
|
||||||
{{- $_ := set .Values.gitea.config "cache" dict -}}
|
{{- $_ := set .Values.gitea.config "cache" dict -}}
|
||||||
@ -65,13 +66,17 @@ data:
|
|||||||
{{- /* database default settings */ -}}
|
{{- /* database default settings */ -}}
|
||||||
{{- if .Values.gitea.database.builtIn.postgresql.enabled -}}
|
{{- if .Values.gitea.database.builtIn.postgresql.enabled -}}
|
||||||
{{- $_ := set .Values.gitea.config.database "DB_TYPE" "postgres" -}}
|
{{- $_ := set .Values.gitea.config.database "DB_TYPE" "postgres" -}}
|
||||||
|
{{- if not (.Values.gitea.config.database.HOST) -}}
|
||||||
{{- $_ := set .Values.gitea.config.database "HOST" (include "postgresql.dns" .) -}}
|
{{- $_ := set .Values.gitea.config.database "HOST" (include "postgresql.dns" .) -}}
|
||||||
|
{{- end -}}
|
||||||
{{- $_ := set .Values.gitea.config.database "NAME" .Values.postgresql.global.postgresql.postgresqlDatabase -}}
|
{{- $_ := set .Values.gitea.config.database "NAME" .Values.postgresql.global.postgresql.postgresqlDatabase -}}
|
||||||
{{- $_ := set .Values.gitea.config.database "USER" .Values.postgresql.global.postgresql.postgresqlUsername -}}
|
{{- $_ := set .Values.gitea.config.database "USER" .Values.postgresql.global.postgresql.postgresqlUsername -}}
|
||||||
{{- $_ := set .Values.gitea.config.database "PASSWD" .Values.postgresql.global.postgresql.postgresqlPassword -}}
|
{{- $_ := set .Values.gitea.config.database "PASSWD" .Values.postgresql.global.postgresql.postgresqlPassword -}}
|
||||||
{{ else if .Values.gitea.database.builtIn.mysql.enabled -}}
|
{{ else if .Values.gitea.database.builtIn.mysql.enabled -}}
|
||||||
{{- $_ := set .Values.gitea.config.database "DB_TYPE" "mysql" -}}
|
{{- $_ := set .Values.gitea.config.database "DB_TYPE" "mysql" -}}
|
||||||
|
{{- if not (.Values.gitea.config.database.HOST) -}}
|
||||||
{{- $_ := set .Values.gitea.config.database "HOST" (include "mysql.dns" .) -}}
|
{{- $_ := set .Values.gitea.config.database "HOST" (include "mysql.dns" .) -}}
|
||||||
|
{{- end -}}
|
||||||
{{- $_ := set .Values.gitea.config.database "NAME" .Values.mysql.db.name -}}
|
{{- $_ := set .Values.gitea.config.database "NAME" .Values.mysql.db.name -}}
|
||||||
{{- $_ := set .Values.gitea.config.database "USER" .Values.mysql.db.user -}}
|
{{- $_ := set .Values.gitea.config.database "USER" .Values.mysql.db.user -}}
|
||||||
{{- $_ := set .Values.gitea.config.database "PASSWD" .Values.mysql.db.password -}}
|
{{- $_ := set .Values.gitea.config.database "PASSWD" .Values.mysql.db.password -}}
|
||||||
@ -81,8 +86,10 @@ data:
|
|||||||
{{- if .Values.gitea.cache.builtIn.enabled -}}
|
{{- if .Values.gitea.cache.builtIn.enabled -}}
|
||||||
{{- $_ := set .Values.gitea.config.cache "ENABLED" "true" -}}
|
{{- $_ := set .Values.gitea.config.cache "ENABLED" "true" -}}
|
||||||
{{- $_ := set .Values.gitea.config.cache "ADAPTER" "memcache" -}}
|
{{- $_ := set .Values.gitea.config.cache "ADAPTER" "memcache" -}}
|
||||||
|
{{- if not (.Values.gitea.config.cache.HOST) -}}
|
||||||
{{- $_ := set .Values.gitea.config.cache "HOST" (include "memcached.dns" .) -}}
|
{{- $_ := set .Values.gitea.config.cache "HOST" (include "memcached.dns" .) -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
{{- /* autogenerate app.ini */ -}}
|
{{- /* autogenerate app.ini */ -}}
|
||||||
{{- range $key, $value := .Values.gitea.config }}
|
{{- range $key, $value := .Values.gitea.config }}
|
||||||
|
57
templates/gitea/init.yaml
Normal file
57
templates/gitea/init.yaml
Normal file
@ -0,0 +1,57 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Secret
|
||||||
|
metadata:
|
||||||
|
name: {{ include "gitea.fullname" . }}-init
|
||||||
|
labels:
|
||||||
|
{{- include "gitea.labels" . | nindent 4 }}
|
||||||
|
type: Opaque
|
||||||
|
stringData:
|
||||||
|
init_gitea.sh: |-
|
||||||
|
#!/bin/bash
|
||||||
|
mkdir -p /data/git/.ssh
|
||||||
|
chmod -R 700 /data/git/.ssh
|
||||||
|
mkdir -p /data/gitea/conf
|
||||||
|
cp /etc/gitea/conf/app.ini /data/gitea/conf/app.ini
|
||||||
|
chmod a+rwx /data/gitea/conf/app.ini
|
||||||
|
nc -v -w2 -z {{ include "db.servicename" . }} {{ include "db.port" . }} && \
|
||||||
|
su git -c ' \
|
||||||
|
set -x; \
|
||||||
|
gitea migrate; \
|
||||||
|
{{- if and .Values.gitea.admin.username .Values.gitea.admin.password }}
|
||||||
|
gitea admin create-user --username {{ .Values.gitea.admin.username }} --password '{{ .Values.gitea.admin.password }}' --email {{ .Values.gitea.admin.email }} --admin \
|
||||||
|
|| \
|
||||||
|
gitea admin change-password --username {{ .Values.gitea.admin.username }} --password '{{ .Values.gitea.admin.password }}'; \
|
||||||
|
{{- end }}
|
||||||
|
{{- if .Values.gitea.ldap.enabled }}
|
||||||
|
gitea admin auth add-ldap \
|
||||||
|
--name {{ .Values.gitea.ldap.name | quote }} \
|
||||||
|
--security-protocol {{ .Values.gitea.ldap.securityProtocol | quote }} \
|
||||||
|
--host {{ .Values.gitea.ldap.host | quote }} \
|
||||||
|
--port {{ .Values.gitea.ldap.port | int}} \
|
||||||
|
--user-search-base {{ .Values.gitea.ldap.userSearchBase | quote }} \
|
||||||
|
--user-filter {{ .Values.gitea.ldap.userFilter | quote }} \
|
||||||
|
--admin-filter {{ .Values.gitea.ldap.adminFilter | quote }} \
|
||||||
|
--email-attribute {{ .Values.gitea.ldap.emailAttribute | quote }} \
|
||||||
|
--bind-dn {{ .Values.gitea.ldap.bindDn | quote }} \
|
||||||
|
--bind-password {{ .Values.gitea.ldap.bindPassword | quote }} \
|
||||||
|
--synchronize-users \
|
||||||
|
--username-attribute {{ .Values.gitea.ldap.usernameAttribute | quote }} \
|
||||||
|
|| \
|
||||||
|
( \
|
||||||
|
export GITEA_AUTH_ID=$(gitea admin auth list | grep {{ .Values.gitea.ldap.name | quote }} | awk -F " " "{print \$1}"); \
|
||||||
|
gitea admin auth update-ldap --id ${GITEA_AUTH_ID} \
|
||||||
|
--name {{ .Values.gitea.ldap.name | quote }} \
|
||||||
|
--security-protocol {{ .Values.gitea.ldap.securityProtocol | quote }} \
|
||||||
|
--host {{ .Values.gitea.ldap.host | quote }} \
|
||||||
|
--port {{ .Values.gitea.ldap.port | int}} \
|
||||||
|
--user-search-base {{ .Values.gitea.ldap.userSearchBase | quote }} \
|
||||||
|
--user-filter {{ .Values.gitea.ldap.userFilter | quote }} \
|
||||||
|
--admin-filter {{ .Values.gitea.ldap.adminFilter | quote }} \
|
||||||
|
--email-attribute {{ .Values.gitea.ldap.emailAttribute | quote }} \
|
||||||
|
--bind-dn {{ .Values.gitea.ldap.bindDn | quote }} \
|
||||||
|
--bind-password {{ .Values.gitea.ldap.bindPassword | quote }} \
|
||||||
|
--synchronize-users \
|
||||||
|
--username-attribute {{ .Values.gitea.ldap.usernameAttribute | quote }} \
|
||||||
|
) \
|
||||||
|
{{- end }}
|
||||||
|
'
|
@ -14,6 +14,9 @@ spec:
|
|||||||
metadata:
|
metadata:
|
||||||
annotations:
|
annotations:
|
||||||
checksum/config: {{ include (print $.Template.BasePath "/gitea/config.yaml") . | sha256sum }}
|
checksum/config: {{ include (print $.Template.BasePath "/gitea/config.yaml") . | sha256sum }}
|
||||||
|
{{- with .Values.gitea.podAnnotations }}
|
||||||
|
{{- toYaml . | nindent 8 }}
|
||||||
|
{{- end }}
|
||||||
labels:
|
labels:
|
||||||
{{- include "gitea.selectorLabels" . | nindent 8 }}
|
{{- include "gitea.selectorLabels" . | nindent 8 }}
|
||||||
spec:
|
spec:
|
||||||
@ -22,56 +25,10 @@ spec:
|
|||||||
initContainers:
|
initContainers:
|
||||||
- name: init
|
- name: init
|
||||||
image: "{{ .Values.image.repository }}:{{ .Values.image.version }}"
|
image: "{{ .Values.image.repository }}:{{ .Values.image.version }}"
|
||||||
env:
|
command: ["/usr/sbin/init_gitea.sh"]
|
||||||
- name: SCRIPT
|
|
||||||
value: &script |-
|
|
||||||
mkdir -p /data/gitea/conf
|
|
||||||
cp /etc/gitea/conf/app.ini /data/gitea/conf/app.ini
|
|
||||||
chmod a+rwx /data/gitea/conf/app.ini
|
|
||||||
nc -v -w2 -z {{ include "db.servicename" . }} {{ include "db.port" . }} && \
|
|
||||||
su git -c ' \
|
|
||||||
set -x; \
|
|
||||||
gitea migrate; \
|
|
||||||
{{- if and .Values.gitea.admin.username .Values.gitea.admin.password }}
|
|
||||||
gitea admin create-user --username {{ .Values.gitea.admin.username }} --password '{{ .Values.gitea.admin.password }}' --email {{ .Values.gitea.admin.email }} --admin \
|
|
||||||
|| \
|
|
||||||
gitea admin change-password --username {{ .Values.gitea.admin.username }} --password '{{ .Values.gitea.admin.password }}'; \
|
|
||||||
{{- end }}
|
|
||||||
{{- if .Values.gitea.ldap.enabled }}
|
|
||||||
gitea admin auth add-ldap \
|
|
||||||
--name {{ .Values.gitea.ldap.name | quote }} \
|
|
||||||
--security-protocol {{ .Values.gitea.ldap.securityProtocol | quote }} \
|
|
||||||
--host {{ .Values.gitea.ldap.host | quote }} \
|
|
||||||
--port {{ .Values.gitea.ldap.port | int}} \
|
|
||||||
--user-search-base {{ .Values.gitea.ldap.userSearchBase | quote }} \
|
|
||||||
--user-filter {{ .Values.gitea.ldap.userFilter | quote }} \
|
|
||||||
--admin-filter {{ .Values.gitea.ldap.adminFilter | quote }} \
|
|
||||||
--email-attribute {{ .Values.gitea.ldap.emailAttribute | quote }} \
|
|
||||||
--bind-dn {{ .Values.gitea.ldap.bindDn | quote }} \
|
|
||||||
--bind-password {{ .Values.gitea.ldap.bindPassword | quote }} \
|
|
||||||
--synchronize-users \
|
|
||||||
--username-attribute {{ .Values.gitea.ldap.usernameAttribute | quote }} \
|
|
||||||
|| \
|
|
||||||
( \
|
|
||||||
export GITEA_AUTH_ID=$(gitea admin auth list | grep {{ .Values.gitea.ldap.name | quote }} | awk -F " " "{print \$1}"); \
|
|
||||||
gitea admin auth update-ldap --id ${GITEA_AUTH_ID} \
|
|
||||||
--name {{ .Values.gitea.ldap.name | quote }} \
|
|
||||||
--security-protocol {{ .Values.gitea.ldap.securityProtocol | quote }} \
|
|
||||||
--host {{ .Values.gitea.ldap.host | quote }} \
|
|
||||||
--port {{ .Values.gitea.ldap.port | int}} \
|
|
||||||
--user-search-base {{ .Values.gitea.ldap.userSearchBase | quote }} \
|
|
||||||
--user-filter {{ .Values.gitea.ldap.userFilter | quote }} \
|
|
||||||
--admin-filter {{ .Values.gitea.ldap.adminFilter | quote }} \
|
|
||||||
--email-attribute {{ .Values.gitea.ldap.emailAttribute | quote }} \
|
|
||||||
--bind-dn {{ .Values.gitea.ldap.bindDn | quote }} \
|
|
||||||
--bind-password {{ .Values.gitea.ldap.bindPassword | quote }} \
|
|
||||||
--synchronize-users \
|
|
||||||
--username-attribute {{ .Values.gitea.ldap.usernameAttribute | quote }} \
|
|
||||||
) \
|
|
||||||
{{- end }}
|
|
||||||
'
|
|
||||||
command: ["/bin/sh",'-c', *script]
|
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
- name: init
|
||||||
|
mountPath: /usr/sbin
|
||||||
- name: config
|
- name: config
|
||||||
mountPath: /etc/gitea/conf
|
mountPath: /etc/gitea/conf
|
||||||
- name: data
|
- name: data
|
||||||
@ -87,6 +44,10 @@ spec:
|
|||||||
value: {{ .Values.gitea.config.server.SSH_LISTEN_PORT | quote }}
|
value: {{ .Values.gitea.config.server.SSH_LISTEN_PORT | quote }}
|
||||||
- name: SSH_PORT
|
- name: SSH_PORT
|
||||||
value: {{ .Values.gitea.config.server.SSH_PORT | quote }}
|
value: {{ .Values.gitea.config.server.SSH_PORT | quote }}
|
||||||
|
{{- range .Values.statefulset.env }}
|
||||||
|
- name: {{ .name | quote | nospace }}
|
||||||
|
value: {{ .value | quote }}
|
||||||
|
{{- end }}
|
||||||
ports:
|
ports:
|
||||||
- name: ssh
|
- name: ssh
|
||||||
containerPort: {{ .Values.gitea.config.server.SSH_LISTEN_PORT }}
|
containerPort: {{ .Values.gitea.config.server.SSH_LISTEN_PORT }}
|
||||||
@ -125,9 +86,13 @@ spec:
|
|||||||
{{- toYaml . | nindent 8 }}
|
{{- toYaml . | nindent 8 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
volumes:
|
volumes:
|
||||||
|
- name: init
|
||||||
|
secret:
|
||||||
|
secretName: {{ include "gitea.fullname" . }}-init
|
||||||
|
defaultMode: 0777
|
||||||
- name: config
|
- name: config
|
||||||
configMap:
|
secret:
|
||||||
name: {{ include "gitea.fullname" . }}
|
secretName: {{ include "gitea.fullname" . }}
|
||||||
{{- if and .Values.persistence.enabled .Values.persistence.existingClaim }}
|
{{- if and .Values.persistence.enabled .Values.persistence.existingClaim }}
|
||||||
- name: data
|
- name: data
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
|
@ -6,7 +6,7 @@ replicaCount: 1
|
|||||||
|
|
||||||
image:
|
image:
|
||||||
repository: gitea/gitea
|
repository: gitea/gitea
|
||||||
version: 1.12.3
|
version: 1.12.4
|
||||||
pullPolicy: Always
|
pullPolicy: Always
|
||||||
|
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
@ -55,6 +55,9 @@ tolerations: []
|
|||||||
affinity: {}
|
affinity: {}
|
||||||
|
|
||||||
statefulset:
|
statefulset:
|
||||||
|
env: []
|
||||||
|
# - name: VARIABLE
|
||||||
|
# value: my-value
|
||||||
terminationGracePeriodSeconds: 60
|
terminationGracePeriodSeconds: 60
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
@ -95,6 +98,8 @@ gitea:
|
|||||||
# security:
|
# security:
|
||||||
# PASSWORD_COMPLEXITY: spec
|
# PASSWORD_COMPLEXITY: spec
|
||||||
|
|
||||||
|
podAnnotations: {}
|
||||||
|
|
||||||
database:
|
database:
|
||||||
builtIn:
|
builtIn:
|
||||||
postgresql:
|
postgresql:
|
||||||
|
Reference in New Issue
Block a user