Fix --skip-crds not working with chartify (#1774)

Follow-up for #1771
Ref #1770
Ref https://github.com/roboll/helmfile/pull/1771#issuecomment-817399338
This commit is contained in:
Yusuke Kuoka
2021-04-13 09:09:58 +09:00
committed by GitHub
parent a111e89b27
commit ae942c5288
3 changed files with 22 additions and 6 deletions
+10 -4
View File
@@ -3,15 +3,16 @@ package app
import (
"bufio"
"bytes"
"io"
"path/filepath"
"sync"
"testing"
"github.com/roboll/helmfile/pkg/exectest"
"github.com/roboll/helmfile/pkg/helmexec"
"github.com/roboll/helmfile/pkg/testhelper"
"github.com/variantdev/vals"
"go.uber.org/zap"
"io"
"path/filepath"
"sync"
"testing"
)
type diffConfig struct {
@@ -20,6 +21,7 @@ type diffConfig struct {
retainValuesFiles bool
set []string
validate bool
skipCRDs bool
skipDeps bool
includeTests bool
suppressSecrets bool
@@ -49,6 +51,10 @@ func (a diffConfig) Validate() bool {
return a.validate
}
func (a diffConfig) SkipCRDs() bool {
return a.skipCRDs
}
func (a diffConfig) SkipDeps() bool {
return a.skipDeps
}