Skip to content

Commit

Permalink
feat(app-template): add app identifier to helm release schema
Browse files Browse the repository at this point in the history
  • Loading branch information
tyriis committed Mar 11, 2024
1 parent 7c2abe8 commit 3b6cd3e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta2.json
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/app-template-3.0.2/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
Expand Down Expand Up @@ -28,11 +28,11 @@ spec:
keepHistory: false
values:
controllers:
main:
cloudflared:
annotations:
reloader.stakater.com/auto: "true"
containers:
main:
app:
nameOverride: *app
image:
repository: cloudflare/cloudflared
Expand All @@ -56,7 +56,8 @@ spec:
memory: 128Mi

service:
main:
app:
controller: cloudflared
nameOverride: metrics
ports:
http:
Expand Down
21 changes: 11 additions & 10 deletions kubernetes/talos-flux/apps/networking/unifi/app/helm-release.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/fluxcd-community/flux2-schemas/main/helmrelease-helm-v2beta2.json
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/app-template-3.0.2/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2beta2
kind: HelmRelease
metadata:
Expand All @@ -18,12 +18,12 @@ spec:

values:
controllers:
main:
unifi:
strategy: Recreate
annotations:
reloader.stakater.com/auto: "true"
containers:
main:
app:
nameOverride: *app
image:
repository: jacobalberty/unifi
Expand All @@ -34,7 +34,7 @@ spec:
UNIFI_UID: "999"
UNIFI_GID: "999"
UNIFI_STDOUT: "true"
JVM_INIT_HEAP_SIZE:
# JVM_INIT_HEAP_SIZE:
JVM_MAX_HEAP_SIZE: 1024M
# CERTNAME: tls.crt
# CERT_PRIVATE_NAME: tls.key
Expand Down Expand Up @@ -73,7 +73,8 @@ spec:
memory: 1390M

service:
main:
app:
controller: unifi
type: LoadBalancer
loadBalancerIP: ${SETTING_METALLB_UNIFI_ADDR}
externalTrafficPolicy: Local
Expand Down Expand Up @@ -113,7 +114,7 @@ spec:
protocol: UDP

ingress:
main:
app:
enabled: true
annotations:
cert-manager.io/cluster-issuer: letsencrypt-production
Expand All @@ -126,14 +127,14 @@ spec:
paths:
- path: /
service:
name: unifi
port: 8443
identifier: app
port: http
- host: &hotspot "hotspot.${SECRET_DOMAIN}"
paths:
- path: /
service:
name: unifi
port: 443
identifier: app
port: portal-https
tls:
- hosts:
- *host
Expand Down

0 comments on commit 3b6cd3e

Please sign in to comment.