ipedrazas / drone-helm

Helm (Kubernetes) plugin for drone.io
MIT License
121 stars 90 forks source link

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

Open jpds opened 6 years ago

jpds commented 6 years ago

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.

minhdanh commented 6 years ago

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

ipedrazas commented 6 years ago

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]
zakkg3 commented 5 years ago

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