Repository navigation
Expand file tree
/
Copy pathmise.aws.toml
More file actions
42 lines (38 loc) · 1.61 KB
/
Copy pathmise.aws.toml
File metadata and controls
42 lines (38 loc) · 1.61 KB
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
34
35
36
37
38
39
40
41
42
[env]
KROPS_PROFILE = "aws"
[tools]
aws-cli = "2.36.32"
clusterawsadm = { version = "2.13.1" }
[tasks.aws-bootstrap]
description = "Provision the clusterawsadm IAM CloudFormation stack for CAPA"
run = "clusterawsadm bootstrap iam create-cloudformation-stack --region ${AWS_REGION:-eu-north-1}"
[tasks.kubeconfigs]
description = "Export workload-cluster kubeconfigs to ~/.kube/krops-workloads.yaml (use: export KUBECONFIG=~/.kube/krops-workloads.yaml)"
run = '''
KUBECONFIG_FILE="${KUBECONFIG_FILE:-$HOME/.kube/krops-workloads.yaml}"
fail=0
# Regions are discovered from the cluster definitions in Git.
for region in $(find mgmt/aws/clusters -mindepth 1 -maxdepth 1 -type d -exec basename {} \; | sort); do
cluster="default_${region}-workload-control-plane"
alias="${region}-workload"
echo "==> ${region}: ${cluster} -> context '${alias}'"
if ! aws eks update-kubeconfig \
--name "$cluster" \
--region "$region" \
--kubeconfig "$KUBECONFIG_FILE" \
--alias "$alias"; then
echo " FAILED: ${cluster} (${region}) — cluster not provisioned yet?" >&2
fail=1
fi
done
chmod 600 "$KUBECONFIG_FILE" 2>/dev/null || true
echo
KUBECONFIG="$KUBECONFIG_FILE" kubectl config get-contexts
echo
echo "Use with: export KUBECONFIG=$KUBECONFIG_FILE"
echo "Or merged: export KUBECONFIG=$HOME/.kube/config:$KUBECONFIG_FILE"
exit $fail
'''
[tasks.aws-e2e-virtualized]
description = "WireMock-virtualized e2e, AWS arm (boot scope): throwaway kind cluster, CAPA + the three ACK controllers intercepted by an in-cluster WireMock, arrival and unmatched assertions (issue #355)"
run = "bash scripts/aws-e2e-virtualized.sh"