-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (26 loc) · 986 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
terraform-cloudflare:
cd terraform/cloudflare && terraform apply
terraform-sops-encrypt:
cd terraform/cloudflare && sops --encrypt --age $$(cat $$SOPS_AGE_KEY_FILE | grep -oP "public key: \K(.*)") --unencrypted-regex '^(kind)$$' --in-place ./secret.sops.yaml
terraform-sops-decrypt:
cd terraform/cloudflare && sops --decrypt --age $$(cat $$SOPS_AGE_KEY_FILE | grep -oP "public key: \K(.*)") --unencrypted-regex '^(kind)$$' --in-place ./secret.sops.yaml
precommit:
pre-commit install --install-hooks
pre-commit run --all-files
precommit-update:
pre-commit autoupdate
# The first step to setup flux on the cluster
bootstrap0:
kubectl create ns flux-system
cat $$SOPS_AGE_KEY_FILE | kubectl create secret generic sops-age \
--namespace=flux-system \
--from-file=age.agekey=/dev/stdin
# Installs flux
bootstrap:
flux bootstrap github \
--private=false \
--repository=homelab \
--personal \
--owner=adityathebe \
--token-auth \
--path kubernetes/bootstrap