Skip to content

Feature Request: Add new event hook presync for mutating operations #579

Closed

Description

@rajiteh

Background:

IMO, the event hook system in helmfile is a very useful feature and something that is missing from helm right now. However, as described in #552 , the prepare hook will always run regardless of the helmfile operation type that is being performed. This is due to the fact that the design goal of prepare hook is to prepare a chart (eg: kustomize, helmify, etc)

However, if you had specified a hook action that mutates the cluster state, you will end up inadvertently affecting the cluster state your shell kubectl is pointed at even when performing read-only operations like helmfile lint or helmfile diff

Therefore, I propose

  • A new event hook presync which will be executed during install/upgrade scenarios and will be ignored for read-only invocations like lint or diff.
  • Update to the documentation that describes the distinction between hooks and their intended purposes.

Activity

  1. changed the title [-]Feature Request: Add new event hook `presync` mutating operations[/-] [+]Feature Request: Add new event hook `presync` for mutating operations[/+] on May 7, 2019
  2. rajiteh commented on May 7, 2019

    @rajiteh
    ContributorAuthor

    I have proposed a PR for this issue at #580

  3. mumoshu commented on May 9, 2019

    @mumoshu
    Collaborator

    Closing this as #580 has been merged. Thanks for your contribution @rajiteh!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions