Skip to content

Commit

Permalink
update workflows [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
kaiohenricunha committed Jan 20, 2024
1 parent fc2419d commit ea09bcc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/destroy-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
terraform_components:
description: 'Comma-separated list of Terraform components to apply (e.g., vpc,security_group,eks,rds,karpenter)'
required: true
default: 'lb,vpc,eks,rds,karpenter'
default: 'lb,vpc,eks,rds,karpenter,stack'

jobs:
destroy-all:
Expand Down Expand Up @@ -62,11 +62,12 @@ jobs:
cd environments/lab
terraform destroy -target=helm_release.aws_load_balancer_controller -auto-approve
# Destroy Karpenter and its dependencies first
- name: Terraform Destroy Karpenter
if: contains(github.event.inputs.terraform_components, 'karpenter')
run: |
cd environments/lab
terraform destroy -target=module.eks_fargate_karpenter.module.eks -auto-approve
terraform destroy -target=module.eks_fargate_karpenter.module.karpenter -auto-approve
- name: Terraform Destroy RDS
if: contains(github.event.inputs.terraform_components, 'rds')
Expand All @@ -80,13 +81,6 @@ jobs:
cd environments/lab
terraform destroy -target=module.security_group -auto-approve
# Destroy Karpenter and its dependencies first
- name: Terraform Destroy Karpenter
if: contains(github.event.inputs.terraform_components, 'karpenter')
run: |
cd environments/lab
terraform destroy -target=module.eks_fargate_karpenter.module.karpenter -auto-approve
- name: Terraform Destroy EKS
if: contains(github.event.inputs.terraform_components, 'eks')
run: |
Expand Down
2 changes: 1 addition & 1 deletion infra/eks-fargate-karpenter/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ resource "kubectl_manifest" "karpenter_provisioner" {
# Include micro instance sizes
- key: karpenter.k8s.aws/instance-size
operator: In
values: [micro]
values: [micro, small]
providerRef:
name: default
kubeletConfiguration:
Expand Down

0 comments on commit ea09bcc

Please sign in to comment.