helmfile/pkg/config/build.go

39 lines
843 B
Go

package config
// BuildOptions is the options for the build command
type BuildOptions struct {
// EmbedValues is true if the values should be embedded
EmbedValues bool
// SkipCharts makes Build skip `withPreparedCharts`
SkipCharts bool
}
// NewBuildOptions creates a new Apply
func NewBuildOptions() *BuildOptions {
return &BuildOptions{}
}
// BuildImpl is impl for applyOptions
type BuildImpl struct {
*GlobalImpl
*BuildOptions
}
// NewBuildImpl creates a new BuildImpl
func NewBuildImpl(g *GlobalImpl, b *BuildOptions) *BuildImpl {
return &BuildImpl{
GlobalImpl: g,
BuildOptions: b,
}
}
// EmbedValues returns the embed values.
func (b *BuildImpl) EmbedValues() bool {
return b.BuildOptions.EmbedValues
}
// SkipCharts returns skipCharts flag
func (b *BuildImpl) SkipCharts() bool {
return b.BuildOptions.SkipCharts
}