Skip to content

Commit

Permalink
Modify cluster name
Browse files Browse the repository at this point in the history
  • Loading branch information
vcerenu committed Nov 13, 2024
1 parent da3e287 commit 336a4df
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/deployment-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ permissions:

env:
AWS_REGION: us-east-1
CLUSTER_NAMME: test-eks-deploy${{ github.event.number }}

jobs:
EKS_deployment_test:
Expand Down Expand Up @@ -44,7 +45,7 @@ jobs:
- name: Deploy eks cluster
run: |
eksctl create cluster \
--name test-eks-deploy${{ github.event.number }} \
--name ${{ env.CLUSTER_NAMME }} \
--with-oidc \
--region ${{ env.AWS_REGION }} \
--nodes-min 6 \
Expand All @@ -60,8 +61,8 @@ jobs:
--name ebs-csi-controller-sa \
--region ${{ env.AWS_REGION }} \
--namespace kube-system \
--cluster test-eks-deploy${{ github.event.number }} \
--role-name eksctl-EBS-CSI-DriverRole-test-eks-deploy${{ github.event.number }} \
--cluster ${{ env.CLUSTER_NAMME }} \
--role-name eksctl-EBS-CSI-DriverRole-${{ env.CLUSTER_NAMME }} \
--role-only \
--attach-policy-arn arn:aws:iam::aws:policy/service-role/AmazonEBSCSIDriverPolicy \
--approve
Expand All @@ -70,9 +71,9 @@ jobs:
run: |
eksctl create addon \
--name aws-ebs-csi-driver \
--cluster test-eks-deploy${{ github.event.number }} \
--cluster ${{ env.CLUSTER_NAMME }} \
--region ${{ env.AWS_REGION }} \
--service-account-role-arn arn:aws:iam::567970947422:role/eksctl-EBS-CSI-DriverRole-test-eks-deploy${{ github.event.number }} \
--service-account-role-arn arn:aws:iam::567970947422:role/eksctl-EBS-CSI-DriverRole-${{ env.CLUSTER_NAMME }} \
--force
- name: Create Wazuh indexer certificates
Expand Down Expand Up @@ -196,7 +197,7 @@ jobs:
if: always()
run: |
eksctl delete cluster \
--name test-eks-deploy-${{ github.event.number }}-a \
--name ${{ env.CLUSTER_NAMME }} \
--region ${{ env.AWS_REGION }}
Local_deployment_test:
Expand Down

0 comments on commit 336a4df

Please sign in to comment.