Skip to content

Commit

Permalink
Feature/add tests (#18)
Browse files Browse the repository at this point in the history
* Add default 0 for max cluster roles

* Add github action for tests
  • Loading branch information
tarunmenon95 committed Feb 25, 2024
1 parent c767482 commit 9c2044c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .github/workflows/rspec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
name: cftest

on: [push, pull_request]

jobs:
rspec:
uses: theonestack/shared-workflows/.github/workflows/rspec.yaml@main
secrets: inherit
4 changes: 3 additions & 1 deletion eks-cluster.cfndsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,9 @@
Type node_type
}

external_parameters[:max_cluster_roles].times do | cluster_role|

max_cluster_roles = external_parameters.fetch(:max_cluster_roles, 0)
max_cluster_roles.times do | cluster_role|

# cluster_admin_role_arns.split(",").each_with_index do |cluster_admin_arn, index|
EKS_AccessEntry("AccessEntryAdmin#{cluster_role}") {
Expand Down

0 comments on commit 9c2044c

Please sign in to comment.