drone-helm icon indicating copy to clipboard operation
drone-helm copied to clipboard

"dry-run: true" still deployed a new helm chart

Open jpds opened this issue 7 years ago • 3 comments

I have a simple pipeline:

pipeline:
  helm_deploy:
    image: quay.io/ipedrazas/drone-helm
    skip_tls_verify: true
    chart: stable/prometheus
    update_dependencies: false
    release: prometheus
    namespace: production-prometheus
    dry-run: true
    secrets: [ api_server, kubernetes_token ]
    when:
      branch: [master]

Interestingly, when this ran, it actually deployed prometheus, into that namespace.

jpds avatar Sep 10 '18 14:09 jpds

I think this is because the actual env var passed to drone-helm container by Drone is PLUGIN_DRY-RUN, not PLUGIN_DRY_RUN.

minhdanh avatar Oct 30 '18 10:10 minhdanh

Have you tried this?

pipeline:
  helm_deploy:
    image: quay.io/ipedrazas/drone-helm
    skip_tls_verify: true
    chart: stable/prometheus
    update_dependencies: false
    release: prometheus
    namespace: production-prometheus
    dry_run: true
    secrets: [ api_server, kubernetes_token ]
    when:
      branch: [master]

ipedrazas avatar Oct 30 '18 10:10 ipedrazas

We may need to upgrade the docs here then: https://github.com/ipedrazas/drone-helm/blob/master/DOCS.md#advanced-customisations-and-debugging

zakkg3 avatar Jan 31 '19 15:01 zakkg3