Skip to content

Commit a508e03

Browse files
committed
homeassistant: better pre-pull job
1 parent c5be294 commit a508e03

14 files changed

+38
-14
lines changed

apps/homeassistant/Makefile

+10
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,12 @@
11
include ../../Makefile.common
22

3+
.PHONY: generate
4+
generate: $(MANIFESTS_DIR) $(JSONNET_VENDOR) ## Generate yaml code from jsonnet
5+
jsonnet -J jsonnet/vendor -c -m $(MANIFESTS_DIR) -S jsonnet/main.jsonnet
6+
$(MAKE) beautify
7+
$(MAKE) prepull
8+
9+
.PHONY: prepull
10+
prepull: ## Move jobPull.yaml to prepull directory
11+
mkdir -p $(MANIFESTS_DIR)/../prepull
12+
mv $(MANIFESTS_DIR)/homeassistant/jobPull.yaml $(MANIFESTS_DIR)/../prepull/jobPull.yaml

apps/homeassistant/jsonnet/main.jsonnet

+1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ local all = {
9090
},
9191

9292
homeassistant: homeassistant(config.homeassistant) + {
93+
prePull+:: {},
9394
credentials: externalsecret(
9495
{
9596
name: config.homeassistant.apiTokenSecretKeySelector.name,

apps/homeassistant/manifests/homeassistant/backupsPVC.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
app.kubernetes.io/component: server
66
app.kubernetes.io/name: homeassistant
77
app.kubernetes.io/part-of: homeassistant
8-
app.kubernetes.io/version: 2024.12.3
8+
app.kubernetes.io/version: 2025.1.1
99
name: homeassistant-backups
1010
namespace: homeassistant
1111
spec:

apps/homeassistant/manifests/homeassistant/configs.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -575,6 +575,6 @@ metadata:
575575
app.kubernetes.io/component: server
576576
app.kubernetes.io/name: homeassistant
577577
app.kubernetes.io/part-of: homeassistant
578-
app.kubernetes.io/version: 2024.12.3
578+
app.kubernetes.io/version: 2025.1.1
579579
name: homeassistant-configs
580580
namespace: homeassistant

apps/homeassistant/manifests/homeassistant/ingress.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ metadata:
1414
app.kubernetes.io/component: server
1515
app.kubernetes.io/name: homeassistant
1616
app.kubernetes.io/part-of: homeassistant
17-
app.kubernetes.io/version: 2024.12.3
17+
app.kubernetes.io/version: 2025.1.1
1818
probe: enabled
1919
reloader.homer/enabled: "true"
2020
name: homeassistant

apps/homeassistant/manifests/homeassistant/prometheusRule.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
app.kubernetes.io/component: server
66
app.kubernetes.io/name: homeassistant
77
app.kubernetes.io/part-of: homeassistant
8-
app.kubernetes.io/version: 2024.12.3
8+
app.kubernetes.io/version: 2025.1.1
99
prometheus: k8s
1010
role: alert-rules
1111
name: homeassistant

apps/homeassistant/manifests/homeassistant/service.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
app.kubernetes.io/component: server
66
app.kubernetes.io/name: homeassistant
77
app.kubernetes.io/part-of: homeassistant
8-
app.kubernetes.io/version: 2024.12.3
8+
app.kubernetes.io/version: 2025.1.1
99
name: homeassistant
1010
namespace: homeassistant
1111
spec:

apps/homeassistant/manifests/homeassistant/serviceAccount.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ metadata:
66
app.kubernetes.io/component: server
77
app.kubernetes.io/name: homeassistant
88
app.kubernetes.io/part-of: homeassistant
9-
app.kubernetes.io/version: 2024.12.3
9+
app.kubernetes.io/version: 2025.1.1
1010
name: homeassistant
1111
namespace: homeassistant

apps/homeassistant/manifests/homeassistant/serviceMonitor.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
app.kubernetes.io/component: server
66
app.kubernetes.io/name: homeassistant
77
app.kubernetes.io/part-of: homeassistant
8-
app.kubernetes.io/version: 2024.12.3
8+
app.kubernetes.io/version: 2025.1.1
99
name: homeassistant
1010
namespace: homeassistant
1111
spec:

apps/homeassistant/manifests/homeassistant/statefulSet.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
app.kubernetes.io/component: server
66
app.kubernetes.io/name: homeassistant
77
app.kubernetes.io/part-of: homeassistant
8-
app.kubernetes.io/version: 2024.12.3
8+
app.kubernetes.io/version: 2025.1.1
99
name: homeassistant
1010
namespace: homeassistant
1111
spec:
@@ -24,13 +24,13 @@ spec:
2424
app.kubernetes.io/component: server
2525
app.kubernetes.io/name: homeassistant
2626
app.kubernetes.io/part-of: homeassistant
27-
app.kubernetes.io/version: 2024.12.3
27+
app.kubernetes.io/version: 2025.1.1
2828
spec:
2929
containers:
3030
- env:
3131
- name: TZ
3232
value: Europe/Berlin
33-
image: homeassistant/home-assistant:2024.12.3
33+
image: homeassistant/home-assistant:2025.1.1
3434
imagePullPolicy: IfNotPresent
3535
livenessProbe:
3636
failureThreshold: 5
@@ -90,7 +90,7 @@ spec:
9090
- sh
9191
- -c
9292
- echo 'OK' > /config/www/healthz
93-
image: homeassistant/home-assistant:2024.12.3
93+
image: homeassistant/home-assistant:2025.1.1
9494
imagePullPolicy: IfNotPresent
9595
name: healthcheck
9696
resources:

apps/homeassistant/settings.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ common:
33
namespace: &namespace "homeassistant"
44
externalSecretStoreName: &externalSecretStoreName "doppler-auth-api"
55
homeassistant:
6-
version: "2024.12.3" # application-version-from-github: home-assistant/core
7-
image: "homeassistant/home-assistant:2024.12.3" # application-image-from-github: home-assistant/core
6+
version: "2025.1.1" # application-version-from-github: home-assistant/core
7+
image: "homeassistant/home-assistant:2025.1.1" # application-image-from-github: home-assistant/core
88
namespace: *namespace
99
ingress:
1010
domain: "home.ankhmorpork.thaum.xyz"
+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
apiVersion: kustomize.toolkit.fluxcd.io/v1
2+
kind: Kustomization
3+
metadata:
4+
name: homeassistant-prepull
5+
namespace: flux-apps
6+
spec:
7+
interval: 60m0s
8+
path: ./apps/homeassistant/prepull
9+
prune: true
10+
sourceRef:
11+
kind: GitRepository
12+
name: ankhmorpork

base/flux-apps/homeassistant.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,5 @@ spec:
1010
sourceRef:
1111
kind: GitRepository
1212
name: ankhmorpork
13-
13+
dependsOn:
14+
- name: homeassistant-prepull

0 commit comments

Comments
 (0)