I've resolved this by using the official helm chart through the repo, but it seems the helm chart has an issue with a
CustomResourceDefintion
. Will report to maintainers. In the meantime if anyone has an error along the lines of:
CustomResourceDefinition got an unexpected keyword argument 'status'
Add a transformer to remove it, like so:
def remove_cdr_status(obj):
if not isinstance(obj, dict):
return
if not obj["kind"] == "CustomResourceDefinition":
return
del obj["status"]
helm.Chart(
"alb",
config=helm.ChartOpts(
repo="eks",
chart="aws-load-balancer-controller",
version="1.1.0",
namespace=alb_ingress_namespace.metadata.name,
transformations=[remove_cdr_status],
# <https://github.com/aws/eks-charts/blob/master/stable/aws-load-balancer-controller/values.yaml>
values={
"clusterName": cluster.name,
"autoDiscoverAwsRegion": "true",
"autoDiscoverAwsVpcID": "true",
},
),
opts=ResourceOptions(provider=cluster.provider),
)