Skip to content

Commit d1ef0a9

Browse files
authored
chore: adopt flate for kubernetes diffs (#1766)
1 parent 0b90a45 commit d1ef0a9

3 files changed

Lines changed: 25 additions & 6 deletions

File tree

.mise/config.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ deno = "2.9.0"
33
flux2 = "2.8.8"
44
go = "1.26.4"
55
"go:github.com/cloudnative-pg/cloudnative-pg/cmd/kubectl-cnpg" = "1.29.1"
6+
"go:github.com/home-operations/flate/cmd/flate" = "0.4.10"
67
helm = "4.2.2"
78
jq = "1.8.2"
89
kubectl = "1.36.2"
910
opentofu = "1.11.8"
10-
"pipx:flux-local" = "8.3.0"
1111
terragrunt = "1.0.4"
1212
usage = "3.5.3"
1313
uv = "0.11.24"
@@ -61,7 +61,7 @@ description = "Retrieve kubectl auth key"
6161
hide = true
6262

6363
[tasks."kube:diff"]
64-
run = "flux-local diff hr --path ./kubernetes -A --branch-orig main"
64+
run = "flate diff hr --path ./kubernetes --base main --allow-missing-secrets"
6565
description = "Diff kubernetes helm releases"
6666

6767
[tasks.fmt]

.mise/mise.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

kubernetes/apps/preview/github-previews/app/rsip.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ spec:
99
filter:
1010
labels:
1111
- "preview"
12+
# Sample inputs so flate can render this ResourceSet offline (the live provider
13+
# resolves real inputs from the GitHub API). status is a subresource, so this is
14+
# dropped on apply and never reaches the cluster.
15+
status:
16+
exportedInputs:
17+
- id: "1"
18+
author: example
19+
branch: example-pr
20+
sha: "0000000000000000000000000000000000000000"
1221
---
1322
apiVersion: fluxcd.controlplane.io/v1
1423
kind: ResourceSetInputProvider
@@ -20,6 +29,11 @@ spec:
2029
url: https://github.com/immich-app/immich
2130
filter:
2231
includeBranch: "^main$"
32+
# Sample input for offline flate rendering; dropped on apply (status subresource).
33+
status:
34+
exportedInputs:
35+
- branch: main
36+
sha: "0000000000000000000000000000000000000000"
2337
---
2438
apiVersion: fluxcd.controlplane.io/v1
2539
kind: ResourceSetInputProvider
@@ -32,3 +46,8 @@ spec:
3246
filter:
3347
semver: ">=2.0.0"
3448
limit: 10
49+
# Sample input for offline flate rendering; dropped on apply (status subresource).
50+
status:
51+
exportedInputs:
52+
- tag: v2.0.0
53+
sha: "0000000000000000000000000000000000000000"

0 commit comments

Comments
 (0)