mirror of
https://github.com/helmfile/helmfile.git
synced 2026-10-02 10:45:21 +02:00
Co-authored-by: yxxhero <11087727+yxxhero@users.noreply.github.com> Agent-Logs-Url: https://github.com/helmfile/helmfile/sessions/c0b910d1-387a-476e-beb9-ea38ab6c1061
69 lines
1.7 KiB
Go
69 lines
1.7 KiB
Go
package config
|
|
|
|
// WriteValuesOptions is the options for the build command
|
|
type WriteValuesOptions struct {
|
|
// Concurrency is the maximum number of concurrent helm processes to run, 0 is unlimited
|
|
Concurrency int
|
|
// Set is the set flags to pass to helm write values
|
|
Set []string
|
|
// Values is the values flags to pass to helm write values
|
|
Values []string
|
|
// OutputFileTemplate is the output file template
|
|
OutputFileTemplate string
|
|
}
|
|
|
|
// NewWriteValuesOptions creates a new Apply
|
|
func NewWriteValuesOptions() *WriteValuesOptions {
|
|
return &WriteValuesOptions{}
|
|
}
|
|
|
|
// WriteValuesImpl is impl for applyOptions
|
|
type WriteValuesImpl struct {
|
|
*GlobalImpl
|
|
*WriteValuesOptions
|
|
}
|
|
|
|
// NewWriteValuesImpl creates a new WriteValuesImpl
|
|
func NewWriteValuesImpl(g *GlobalImpl, b *WriteValuesOptions) *WriteValuesImpl {
|
|
return &WriteValuesImpl{
|
|
GlobalImpl: g,
|
|
WriteValuesOptions: b,
|
|
}
|
|
}
|
|
|
|
// Concurrency returns the concurrency
|
|
func (c *WriteValuesImpl) Concurrency() int {
|
|
return c.WriteValuesOptions.Concurrency
|
|
}
|
|
|
|
// Set returns the Set
|
|
func (c *WriteValuesImpl) Set() []string {
|
|
return c.WriteValuesOptions.Set
|
|
}
|
|
|
|
// Values returns the Values
|
|
func (c *WriteValuesImpl) Values() []string {
|
|
return c.WriteValuesOptions.Values
|
|
}
|
|
|
|
// SkipCleanUp returns the skip clean up
|
|
func (c *WriteValuesImpl) SkipCleanup() bool {
|
|
return false
|
|
}
|
|
|
|
// IncludeNeeds returns the include needs
|
|
func (c *WriteValuesImpl) IncludeNeeds() bool {
|
|
return false
|
|
}
|
|
|
|
// IncludeTransitiveNeeds returns the include transitive needs
|
|
func (c *WriteValuesImpl) IncludeTransitiveNeeds() bool {
|
|
return false
|
|
}
|
|
|
|
// OutputFileTemplate returns the output file template
|
|
func (c *WriteValuesImpl) OutputFileTemplate() string {
|
|
return c.WriteValuesOptions.OutputFileTemplate
|
|
}
|
|
|