Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jpds opened this issue Sep 10, 2018 · 3 comments
Open

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

jpds opened this issue Sep 10, 2018 · 3 comments

Comments

@jpds
Copy link

jpds commented Sep 10, 2018

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
Copy link

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
Copy link
Owner

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
Copy link

zakkg3 commented Jan 31, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants