**Description** The servicemonitor deployed with Gitea chart is bugged with the current helm chart because metrics are not enabled on Gitea properly.  The helm chart common.yaml template is looking for `metrics.enabled: true` but it should be `metrics.main.enabled: true` as per the current values.  This bug currently results in `app.ini` to have an empty value:  **⚙️ Type of change** - [ ] ⚙️ Feature/App addition - [x] 🪛 Bugfix - [ ] ⚠️ Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] 🔃 Refactor of current code **🧪 How Has This Been Tested?** Deploy the helm chart with the change **📃 Notes:** <!-- Please enter any other relevant information here --> **✔️ Checklist:** - [x] ⚖️ My code follows the style guidelines of this project - [x] 👀 I have performed a self-review of my own code - [ ] #️⃣ I have commented my code, particularly in hard-to-understand areas - [ ] 📄 I have made corresponding changes to the documentation - [ ] ⚠️ My changes generate no new warnings - [ ] 🧪 I have added tests to this description that prove my fix is effective or that my feature works - [x] ⬆️ I increased versions for any altered app according to semantic versioning **➕ App addition** If this PR is an app addition please make sure you have done the following. - [ ] 🪞 I have opened a PR on [truecharts/containers](https://github.com/truecharts/containers) adding the container to TrueCharts mirror repo. - [ ] 🖼️ I have added an icon in the Chart's root directory called `icon.png` --------- Signed-off-by: Julien Nicolas de Verteuil <6644855+jndeverteuil@users.noreply.github.com>
135 lines
2.6 KiB
YAML
135 lines
2.6 KiB
YAML
image:
|
|
repository: tccr.io/truecharts/gitea
|
|
tag: v1.20.5@sha256:99b4b1374918691d47a705ba2377457fffa565f812ad376121adb4b02b3a5eb2
|
|
pullPolicy: IfNotPresent
|
|
service:
|
|
main:
|
|
ports:
|
|
main:
|
|
port: 10037
|
|
targetPort: 3000
|
|
ssh:
|
|
enabled: true
|
|
ports:
|
|
ssh:
|
|
enabled: true
|
|
port: 2222
|
|
targetPort: 2222
|
|
|
|
persistence:
|
|
data:
|
|
enabled: true
|
|
mountPath: "/data"
|
|
targetSelectAll: true
|
|
varlib:
|
|
enabled: true
|
|
mountPath: "/var/lib/gitea"
|
|
type: emptyDir
|
|
# Configure commit/action signing prerequisites
|
|
signing:
|
|
enabled: true
|
|
gpgHome: /data/git/.gnupg
|
|
admin:
|
|
username: giteaadmin
|
|
password: r8sA8CPHD9!bt6d
|
|
email: "gitea@local.domain"
|
|
metrics:
|
|
main:
|
|
enabled: true
|
|
type: "servicemonitor"
|
|
endpoints:
|
|
- port: main
|
|
path: /metrics
|
|
ldap:
|
|
enabled: false
|
|
# name:
|
|
# securityProtocol:
|
|
# host:
|
|
# port:
|
|
# userSearchBase:
|
|
# userFilter:
|
|
# adminFilter:
|
|
# emailAttribute:
|
|
# bindDn:
|
|
# bindPassword:
|
|
# usernameAttribute:
|
|
# sshPublicKeyAttribute:
|
|
oauth:
|
|
enabled: false
|
|
# name:
|
|
# provider:
|
|
# key:
|
|
# secret:
|
|
# autoDiscoverUrl:
|
|
# useCustomUrls:
|
|
# customAuthUrl:
|
|
# customTokenUrl:
|
|
# customProfileUrl:
|
|
# customEmailUrl:
|
|
config:
|
|
APP_NAME: "Gitea: Git with a cup of tea"
|
|
RUN_MODE: dev
|
|
ALLOWED_HOST_LIST: "127.0.0.1"
|
|
nodeIP: 127.0.0.1
|
|
customConfig: []
|
|
# - name: test
|
|
# keys:
|
|
# - name: testkey
|
|
# value: testvalue
|
|
|
|
# Enabled postgres
|
|
cnpg:
|
|
main:
|
|
enabled: true
|
|
|
|
user: gitea
|
|
database: gitea
|
|
# -- memcached dependency settings
|
|
memcached:
|
|
enabled: true
|
|
portal:
|
|
open:
|
|
enabled: true
|
|
securityContext:
|
|
container:
|
|
runAsUser: 1000
|
|
runAsGroup: 1000
|
|
fsGroup: 1000
|
|
workload:
|
|
main:
|
|
podSpec:
|
|
initContainers:
|
|
1-init-directories:
|
|
enabled: true
|
|
imageSelector: image
|
|
type: init
|
|
command:
|
|
- "/usr/sbin/init_directory_structure.sh"
|
|
securityContext:
|
|
runAsUser: 0
|
|
runAsNonRoot: false
|
|
envFrom:
|
|
- configMapRef:
|
|
name: gitea-env
|
|
2-configure-gitea:
|
|
enabled: true
|
|
imageSelector: image
|
|
type: init
|
|
command:
|
|
- "/usr/sbin/configure_gitea.sh"
|
|
envFrom:
|
|
- configMapRef:
|
|
name: gitea-env
|
|
containers:
|
|
main:
|
|
probes:
|
|
liveness:
|
|
type: tcp
|
|
readiness:
|
|
type: tcp
|
|
startup:
|
|
type: tcp
|
|
envFrom:
|
|
- configMapRef:
|
|
name: gitea-env
|