mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-18 03:08:18 +02:00
chore: list: withPreparedCharts -> skipCharts
Signed-off-by: Viktor Oreshkin <imselfish@stek29.rocks>
This commit is contained in:
+1
-1
@@ -550,7 +550,7 @@ func (a *App) ListReleases(c ListConfigProvider) error {
|
||||
var stateReleases []*HelmRelease
|
||||
var err error
|
||||
|
||||
if c.WithPreparedCharts() {
|
||||
if !c.SkipCharts() {
|
||||
err = run.withPreparedCharts("list", state.ChartPrepareOptions{
|
||||
SkipRepos: true,
|
||||
SkipDeps: true,
|
||||
|
||||
@@ -249,11 +249,11 @@ database my-app true true bitnami/postg
|
||||
}
|
||||
|
||||
func TestListWithEnvironment(t *testing.T) {
|
||||
t.Run("with prepared charts", func(t *testing.T) {
|
||||
testListWithEnvironment(t, configImpl{withPreparedCharts: true})
|
||||
t.Run("with skipCharts=false", func(t *testing.T) {
|
||||
testListWithEnvironment(t, configImpl{skipCharts: false})
|
||||
})
|
||||
t.Run("without prepared charts", func(t *testing.T) {
|
||||
testListWithEnvironment(t, configImpl{withPreparedCharts: false})
|
||||
t.Run("with skipCharts=true", func(t *testing.T) {
|
||||
testListWithEnvironment(t, configImpl{skipCharts: true})
|
||||
})
|
||||
}
|
||||
|
||||
@@ -316,10 +316,10 @@ releases:
|
||||
}
|
||||
|
||||
func TestListWithJSONOutput(t *testing.T) {
|
||||
t.Run("with prepared charts", func(t *testing.T) {
|
||||
testListWithJSONOutput(t, configImpl{withPreparedCharts: true})
|
||||
t.Run("with skipCharts=false", func(t *testing.T) {
|
||||
testListWithJSONOutput(t, configImpl{skipCharts: false})
|
||||
})
|
||||
t.Run("without prepared charts", func(t *testing.T) {
|
||||
testListWithJSONOutput(t, configImpl{withPreparedCharts: false})
|
||||
t.Run("with skipCharts=true", func(t *testing.T) {
|
||||
testListWithJSONOutput(t, configImpl{skipCharts: true})
|
||||
})
|
||||
}
|
||||
|
||||
+3
-3
@@ -2220,7 +2220,7 @@ type configImpl struct {
|
||||
skipNeeds bool
|
||||
includeNeeds bool
|
||||
includeTransitiveNeeds bool
|
||||
withPreparedCharts bool
|
||||
skipCharts bool
|
||||
}
|
||||
|
||||
func (c configImpl) Selectors() []string {
|
||||
@@ -2295,8 +2295,8 @@ func (c configImpl) Output() string {
|
||||
return c.output
|
||||
}
|
||||
|
||||
func (c configImpl) WithPreparedCharts() bool {
|
||||
return c.withPreparedCharts
|
||||
func (c configImpl) SkipCharts() bool {
|
||||
return c.skipCharts
|
||||
}
|
||||
|
||||
type applyConfig struct {
|
||||
|
||||
+1
-1
@@ -236,7 +236,7 @@ type interactive interface {
|
||||
|
||||
type ListConfigProvider interface {
|
||||
Output() string
|
||||
WithPreparedCharts() bool
|
||||
SkipCharts() bool
|
||||
}
|
||||
|
||||
type CacheConfigProvider interface{}
|
||||
|
||||
+5
-5
@@ -6,8 +6,8 @@ type ListOptions struct {
|
||||
Output string
|
||||
// KeepTempDir is the keep temp dir flag
|
||||
KeepTempDir bool
|
||||
// WithPreparedCharts makes list call `withPreparedCharts` when listing
|
||||
WithPreparedCharts bool
|
||||
// SkipCharts makes List skip `withPreparedCharts`
|
||||
SkipCharts bool
|
||||
}
|
||||
|
||||
// NewListOptions creates a new Apply
|
||||
@@ -39,7 +39,7 @@ func (c *ListImpl) Output() string {
|
||||
return c.ListOptions.Output
|
||||
}
|
||||
|
||||
// WithPreparedCharts returns withPreparedCharts flag
|
||||
func (c *ListImpl) WithPreparedCharts() bool {
|
||||
return c.ListOptions.WithPreparedCharts
|
||||
// SkipCharts returns skipCharts flag
|
||||
func (c *ListImpl) SkipCharts() bool {
|
||||
return c.ListOptions.SkipCharts
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user