Skip to content

Commit

Permalink
Merge pull request #91 from junaid18183/master
Browse files Browse the repository at this point in the history
Fixed the Error: name cannot be longer than 32 characters issue
  • Loading branch information
adamacosta authored Dec 20, 2023
2 parents 6ecafd3 + eddf1f8 commit 109c748
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/nlb/main.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
locals {
# Handle case where target group/load balancer name exceeds 32 character limit without creating illegal names
controlplane_name = "${substr(var.name, 0, 23)}-rke2-cp"
controlplane_name = "${substr(var.name, 0, 18)}-rke2-cp"
server_name = "${substr(var.name, 0, 18)}-rke2-server"
supervisor_name = "${substr(var.name, 0, 15)}-rke2-supervisor"
}
Expand Down

0 comments on commit 109c748

Please sign in to comment.