[aws-eks]: CDK uses integer for timeout; Helm expects duration
See original GitHub issueWanted to test the new timeout parameter in the EKS Helm construct as I had problems deploying a large Helm chart like the prometheus-operator chart. But I just ran it and hit a problem: CDK translates the timeout to an integer value in seconds but the Helm version used (v3) expects a duration specification. So 900s instead of 900.
Reproduction Steps
cluster.addChart('prometheus-operator', {
chart: 'prometheus-operator',
namespace: 'monitoring',
release: 'prometheus-operator',
repository: 'https://kubernetes-charts.storage.googleapis.com',
timeout: Duration.minutes(15),
wait: true
Error Log
[ERROR] Exception: b'Error: invalid argument "900" for "--timeout" flag: time: missing unit in duration 900\n' Traceback (most recent call last): File "/var/task/index.py", line 16, in handler return helm_handler(event, context) File "/var/task/helm/__init__.py", line 49, in helm_handler helm('upgrade', release, chart, repository, values_file, namespace, version, wait, timeout) File "/var/task/helm/__init__.py", line 90, in helm raise Exception(output)
Environment
- CLI Version :
- Framework Version:
- Node.js Version:
- OS :
- Language (Version):
Other
Not sure if this could be related to an upgrade @pahud is working on in aws-lambda-layer-kubectl?
This is 🐛 Bug Report
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Cluster — AWS Cloud Development Kit 1.184.0 documentation
This layer is used by the kubectl handler to apply manifests and install helm charts. The handler expects the layer to include the...
Read more >kubernetes - Helm install time out - Stack Overflow
Use kubectl describe pod [failing_pod_name] to get a clear indication of what's causing the issue. The issue will be given at the bottom...
Read more >aws-cdk | Yarn - Package Manager
The AWS Cloud Development Kit (AWS CDK) is an open-source software development framework to define cloud infrastructure in code and provision it through...
Read more >Edgar Sanchez – Medium
#TLDR: Confirm that you didn't delete the AWS bucket used by CDK itself. ... then you cannot add tags with the Tags=[ …...
Read more >App Mesh visibility | Nick's Awesome Cloud Blog
There are many advantages of using Service Meshes. ... Duration.seconds(10), interval: cdk.Duration.seconds(5), timeout: cdk.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I believe it was my mistake, so I will gladly fix it.
@eduardomourar thanks! let me know if you need assistance.