Skip to content

Commit 5ef67f6

Browse files
authored
fixed providerConfig issues (#41)
1 parent 4b24bf7 commit 5ef67f6

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

  • functions/awslbcontroller
  • tests/test-awslbcontroller

functions/awslbcontroller/main.k

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ _metadata = lambda name: str -> any {
2323
_defaults = {
2424
managementPolicies = params.managementPolicies or ["*"]
2525
if params.providerConfigName:
26-
providerConfigRef = {
27-
kind = "ProviderConfig"
28-
name = params.providerConfigName
29-
}
26+
providerConfigName = params.providerConfigName or "default"
27+
3028
}
3129

3230
# Get cluster name from observed PodIdentity (only available after it's created)

tests/test-awslbcontroller/main.k

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ _items = [
1515
metadata.name: "podidentity"
1616
spec = {
1717
parameters = {
18+
providerConfigName: "default"
1819
region: "us-west-2"
1920
serviceAccount = {
2021
name: "aws-load-balancer-controller"

0 commit comments

Comments
 (0)