Skip to content

Commit

Permalink
Fixing for_each for var.swoop_sa_iam_role (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
hectormachin authored Feb 26, 2024
1 parent f7d8b89 commit 8a0ac11
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/testkube.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,9 @@ jobs:
kubectl exec -it --namespace=db svc/postgres -- /bin/sh -c "swoop-db up"
kubectl exec -it --namespace=db svc/postgres -- /bin/sh -c "swoop-db load-fixture base_01"
- uses: kubeshop/setup-testkube@v1
- name: Installing Testkube
run: |
wget -qO - https://repo.testkube.io/key.pub | sudo apt-key add -
echo "deb https://repo.testkube.io/linux linux main" | sudo tee -a /etc/apt/sources.list
sudo apt-get update
sudo apt-get install -y testkube
kubectl testkube install --no-confirm
kubectl wait --for=condition=ready --timeout=30m pod -n testkube -l app.kubernetes.io/instance=testkube
kubectl port-forward -n testkube svc/testkube-api-server 8088:8088 &
Expand Down
4 changes: 2 additions & 2 deletions modules/swoop/swoop-bundle/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ resource "helm_release" "swoop_bundle" {
}

dynamic "set" {
for_each = var.swoop_sa_iam_role != "" ? [var.swoop_sa_iam_role] : []
for_each = nonsensitive(var.swoop_sa_iam_role) != "" ? [nonsensitive(var.swoop_sa_iam_role)] : []
content {
name = "swoop-caboose.argo-workflows.workflow.serviceAccount.annotations.eks\\.amazonaws\\.com/role-arn"
value = set.value
Expand Down Expand Up @@ -231,7 +231,7 @@ resource "helm_release" "swoop_bundle" {
}

dynamic "set" {
for_each = var.swoop_sa_iam_role != "" ? [var.swoop_sa_iam_role] : []
for_each = nonsensitive(var.swoop_sa_iam_role) != "" ? [nonsensitive(var.swoop_sa_iam_role)] : []
content {
name = "swoop-conductor.argo-workflows.workflow.serviceAccount.annotations.eks\\.amazonaws\\.com/role-arn"
value = set.value
Expand Down

0 comments on commit 8a0ac11

Please sign in to comment.