mirror of
https://github.com/falcosecurity/falco.git
synced 2025-10-22 03:49:36 +00:00
18 lines
509 B
Makefile
18 lines
509 B
Makefile
all: rbac create configure
|
|
|
|
rbac:
|
|
kubectl apply -f ../cluster-role.yaml
|
|
kubectl apply -f cluster-role-binding.yaml
|
|
|
|
create:
|
|
terraform apply -auto-approve
|
|
|
|
configure:
|
|
kubectl get -n kube-system configmap/aws-auth -o yaml | awk "/mapRoles: \|/{print;print \"$(shell terraform output patch_for_aws_auth)\";next}1" > aws-auth-patch.yml
|
|
kubectl -n kube-system replace -f aws-auth-patch.yml
|
|
|
|
clean:
|
|
terraform destroy -force
|
|
kubectl delete -f cluster-role-binding.yaml
|
|
kubectl delete -f ../cluster-role.yaml
|