mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-18 15:27:03 +02:00
added option for --no-hooks for helm diff and apply (#279)
* added option for --no-hooks for helm diff and apply Signed-off-by: Arpan Adhikari <kcarpan5@gmail.com> * test case for --no-hooks Signed-off-by: Arpan Adhikari <kcarpan5@gmail.com> * fix test fails Signed-off-by: Arpan Adhikari <kcarpan5@gmail.com> * Resolve conflict with main Signed-off-by: Arpan Adhikari <kcarpan5@gmail.com> * fixup! Resolve conflict with main Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com> * Add no-hooks case for diff test Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com> * fixup! Add no-hooks case for diff test Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com> Signed-off-by: Arpan Adhikari <kcarpan5@gmail.com> Signed-off-by: Yusuke Kuoka <ykuoka@gmail.com> Co-authored-by: Arpan Adhikari <arpan@thephotostudio.com.au> Co-authored-by: Yusuke Kuoka <ykuoka@gmail.com>
This commit is contained in:
co-authored by
Arpan Adhikari
Yusuke Kuoka
parent
b8cf0f156e
commit
e1ca846772
@@ -24,6 +24,8 @@ type DiffOptions struct {
|
||||
SkipDiffOnInstall bool
|
||||
// ShowSecrets is the show secrets flag
|
||||
ShowSecrets bool
|
||||
// NoHooks skips hooks during diff
|
||||
NoHooks bool
|
||||
// Suppress is the suppress flag
|
||||
Suppress []string
|
||||
// SuppressSecrets is the suppress secrets flag
|
||||
@@ -131,6 +133,11 @@ func (t *DiffImpl) ShowSecrets() bool {
|
||||
return t.DiffOptions.ShowSecrets
|
||||
}
|
||||
|
||||
// NoHooks skips hooks.
|
||||
func (t *DiffImpl) NoHooks() bool {
|
||||
return t.DiffOptions.NoHooks
|
||||
}
|
||||
|
||||
// ShowCRDs returns the show crds
|
||||
func (t *DiffImpl) SkipCRDs() bool {
|
||||
return false
|
||||
|
||||
Reference in New Issue
Block a user