question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[aws-eks]: CDK uses integer for timeout; Helm expects duration

See original GitHub issue

Wanted 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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
eduardomourarcommented, Jun 25, 2020

I believe it was my mistake, so I will gladly fix it.

1reaction
eladbcommented, Jun 28, 2020

@eduardomourar thanks! let me know if you need assistance.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found