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

Helm force option, to force update the application #52980

Open
wants to merge 3 commits into
base: devel
from

Conversation

Projects
None yet
2 participants
@djbulsink
Copy link

djbulsink commented Feb 26, 2019

SUMMARY

When you want to upgrade the values of an helm kubernetes package but the version is the same nothing will happen. By adding a force option the packages will be update anyways, and the the new values will be applied.

ISSUE TYPE
  • Feature Pull Request
COMPONENT NAME

helm module

ADDITIONAL INFORMATION

By adding the force option it will re-apply the chart changes and customize the chart values. If nothing is changed in the packages, it won't actually change anything on the kubernetes cluster.

- name: Install helm chart
  helm:
    host: localhost
    force: yes
    chart:
      name: memcached
      version: 0.4.0
      source:
        type: repo
        location: https://kubernetes-charts.storage.googleapis.com
    state: installed
    name: my-memcached
    namespace: default
    values:
     persistent:
       enabled: true

djbulsink added some commits Feb 26, 2019

@ansibot

This comment has been minimized.

Copy link
Contributor

ansibot commented Feb 26, 2019

@ansibot

This comment has been minimized.

Copy link
Contributor

ansibot commented Feb 26, 2019

The test ansible-test sanity --test validate-modules [explain] failed with 1 error:

lib/ansible/modules/cloud/misc/helm.py:0:0: E309 version_added for new option (force) should be '2.8'. Currently StrictVersion ('0.0')

click here for bot help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.