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.

Helm test only pod should be ignored

See original GitHub issue

Description of the bug:

When using the Helm construct to load a helm chart, the generated k8s yaml file contains pod that is test only. According to helm doc , those are only used when run helm test. The Helm construct should ignore it.

Reproduction Steps:

One helm chart can be used to reproduce is

  - name: elasticsearch
    version: 7.6.2
    condition: elasticsearch.enabled

The final k8s yaml file will contain something like this when it should not

apiVersion: "v1"
kind: "Pod"
  annotations: "test-success"
  name: "temporal-fjobr-test"
    - command:
        - "sh"
        - "-c"
        - "#!/usr/bin/env bash -e

          curl -XGET --fail
      image: ""
      name: "temporal-yuizz-test"
  restartPolicy: "Never"

Error Log:

After kubectl apply you will see this

temporal-fjobr-test                                 0/1     Error        0          33s

This is 🐛 Bug Report

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

sunshineocommented, Mar 9, 2021

I confirm --skip-tests works. Need to have helm version >= 3.5

sunshineocommented, Mar 8, 2021

@mbonig Elasticsearch is the only chart I encountered doing this but any helm chart with test pods will encounter this.

I’ll try the helmFlags property. Thank you very much!

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Proposal] helm test should perform automatic cleanup (pre ...
Currently, executing the helm test command runs a number of defined test pods and returns while not removing any of those pods.
Read more >
Should helm test pod be a "full copy" of production pod?
My question is regarding Helm tests and their basic philosophy. The simple question is, should the helm test pod be a "full copy"...
Read more >
The .helmignore file - Helm
helmignore file is used to specify files you don't want to include in your helm chart. If this file exists, the helm package...
Read more >
13 Best Practices for using Helm - Coder Society
Helm is an indispensable tool for deploying applications to Kubernetes clusters. But it is only by following best practices that you'll ...
Read more >
Taints and Tolerations | Kubernetes
if there is at least one un-ignored taint with effect NoSchedule then Kubernetes will not schedule the pod onto that node ...
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 Post

No results found

github_iconTop Related Hashnode Post

No results found