-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
20 lines (19 loc) · 902 Bytes
/
justfile
File metadata and controls
20 lines (19 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
deploy:
stackablectl stack install forgejo --stack-file infrastructure/stack.yaml
seal-secrets:
#!/usr/bin/env bash
# Replicate directory structure from 'secrets' to 'platform'
find secrets -type d | while read -r dir; do
target_dir="${dir/secrets/platform}"
echo "Creating $target_dir"
mkdir -p "$target_dir"
done
# Process all yaml files
find secrets -type f \( -name "*.yaml" -o -name "*.yml" \) | while read -r input_file; do
output_path="${input_file/secrets/platform}"
output_dir="$(dirname "$output_path")"
output_filename="sealed-$(basename "$output_path")"
output_file="$output_dir/$output_filename"
echo "Processing: $input_file -> $output_file"
kubeseal -n stackable-airflow --controller-namespace sealed-secrets --scope=cluster-wide --format=yaml < "$input_file" > "$output_file"
done