Code Monkey home page Code Monkey logo

Comments (9)

yxxhero avatar yxxhero commented on May 30, 2024

@WoodyWoodsta PR is welcome.

from helmfile.

yxxhero avatar yxxhero commented on May 30, 2024

@WoodyWoodsta From the code. In sync subcommand, no logic for interactive.

from helmfile.

WoodyWoodsta avatar WoodyWoodsta commented on May 30, 2024

Ok thanks for the investigation. This seems like a fairly consequential missing feature, and at the least quite misleading documentation. The sync command can be considered a dangerous command with respect to an entire cluster, so reading in --help that interactive will confirm before making changes to the cluster as a global flag makes it appear as though it will behave the way I expected.

Which commands does --interactive apply to?

from helmfile.

yxxhero avatar yxxhero commented on May 30, 2024

@WoodyWoodsta I will try to add it in sync. wait my PR or your PR. haha

from helmfile.

WoodyWoodsta avatar WoodyWoodsta commented on May 30, 2024

Thanks @yxxhero - if I get some time I can have a quick look but I work full-time, so we'll see 😄

from helmfile.

yxxhero avatar yxxhero commented on May 30, 2024

@WoodyWoodsta OpenSource requires all of us.

from helmfile.

mumoshu avatar mumoshu commented on May 30, 2024

Hey! Thanks for reporting and investigating.
Probably this was an unintended regression introduced when we migrated our CLI framework from urfave/cli to cobra?
Just to be clear, the point of --interactive was to let Helmfile ask AFTER showing the diff and BEFORE actually applying the changes.
So, from the author's perspective, I can say it's working as intended.
Please use helmfile apply if you need interactivity!

from helmfile.

mumoshu avatar mumoshu commented on May 30, 2024

And we might be adding support for sync and delete as well via #328

from helmfile.

WoodyWoodsta avatar WoodyWoodsta commented on May 30, 2024

@mumoshu Thanks - explained that way I now understand that apply is a "superset" command including diff and sync, and that --interactive is to ask for confirmation before those two steps. Coming from kubectl apply and helm upgrade, I assumed sync to be more of the latter (which does a diff internally).

from helmfile.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.