Files
auricom-home-cluster/kubernetes/apps/default/homelab/github-notifier/helmrelease.yaml
2025-02-27 03:26:20 +00:00

70 lines
1.9 KiB
YAML

---
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: &app homelab-github-notifier
spec:
interval: 30m
chart:
spec:
chart: app-template
version: 3.7.1
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
maxHistory: 2
install:
createNamespace: true
remediation:
retries: 3
upgrade:
cleanupOnFail: true
remediation:
strategy: rollback
retries: 3
uninstall:
keepHistory: false
values:
controllers:
music-transcode:
type: cronjob
cronjob:
concurrencyPolicy: Forbid
schedule: 0 */3 * * * # Every 3 hours
containers:
app:
image:
repository: ghcr.io/auricom/github-notifier
tag: rolling@sha256:607ccb15dfce898941a0e774bcc5a3d0a5b8f02fcea706d08c532b7c7485c3af
command:
- python
- /app/github-notifier.py
envFrom:
- secretRef:
name: homelab-github-notifier-secret
- secretRef:
name: homelab-github-notifier-db-secret
service:
app:
controller: *app
enabled: false
persistence:
config:
type: configMap
name: homelab-github-notifier-configmap
defaultMode: 0644 # trunk-ignore(yamllint/octal-values)
globalMounts:
- path: /config/config.yaml
subPath: config.yaml
readOnly: true
script:
type: configMap
name: homelab-github-notifier-configmap
defaultMode: 0644 # trunk-ignore(yamllint/octal-values)
globalMounts:
- path: /app/github-notifier.py
subPath: github-notifier.py
readOnly: true