Hybrid cloud cluster monorepo with Ansible, K8s, NixOS, and Terraform. cute.haus
ansible terraform nix k8s
1

Configure Feed

Select the types of activity you want to include in your feed.

just: make flux helper shell-robust

Aly Raffauf (Jul 1, 2026, 3:14 PM EDT) 4c8bbaf6 cd850109

+11 -4
+11 -4
.justfile
··· 195 195 #!/usr/bin/env bash 196 196 set -euo pipefail 197 197 chart="k8s/charts/{{release}}" 198 + flux_cmd() { 199 + if command -v flux >/dev/null 2>&1; then 200 + flux "$@" 201 + else 202 + nix develop -c flux "$@" 203 + fi 204 + } 198 205 199 206 case "{{action}}" in 200 207 apply) ··· 202 209 echo "just k8s apply supports local charts only: $chart/Chart.yaml not found" >&2 203 210 exit 2 204 211 fi 205 - flux suspend helmrelease "{{release}}" -n "{{hr_namespace}}" || true 212 + flux_cmd suspend helmrelease "{{release}}" -n "{{hr_namespace}}" || true 206 213 helm upgrade --install "{{release}}" "$chart" \ 207 214 -n "{{namespace}}" -f k8s/values/global.yaml 208 215 ;; ··· 215 222 -n "{{namespace}}" -f k8s/values/global.yaml 216 223 ;; 217 224 suspend) 218 - flux suspend helmrelease "{{release}}" -n "{{hr_namespace}}" 225 + flux_cmd suspend helmrelease "{{release}}" -n "{{hr_namespace}}" 219 226 ;; 220 227 resume) 221 - flux resume helmrelease "{{release}}" -n "{{hr_namespace}}" 228 + flux_cmd resume helmrelease "{{release}}" -n "{{hr_namespace}}" 222 229 ;; 223 230 reconcile) 224 - flux reconcile helmrelease "{{release}}" -n "{{hr_namespace}}" --with-source 231 + flux_cmd reconcile helmrelease "{{release}}" -n "{{hr_namespace}}" --with-source 225 232 ;; 226 233 *) 227 234 echo "usage: just k8s {apply|diff|suspend|resume|reconcile} <release> [target-namespace] [helmrelease-namespace]" >&2