35 lines
545 B
Go
35 lines
545 B
Go
package app
|
|
|
|
import (
|
|
"github.com/helmfile/helmfile/pkg/state"
|
|
"github.com/helmfile/helmfile/pkg/yaml"
|
|
)
|
|
|
|
type LoadOpts struct {
|
|
Selectors []string
|
|
Environment state.SubhelmfileEnvironmentSpec
|
|
|
|
RetainValuesFiles bool
|
|
|
|
// CalleePath is the absolute path to the file being loaded
|
|
CalleePath string
|
|
|
|
Reverse bool
|
|
|
|
Filter bool
|
|
}
|
|
|
|
func (o LoadOpts) DeepCopy() LoadOpts {
|
|
bytes, err := yaml.Marshal(o)
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
new := LoadOpts{}
|
|
if err := yaml.Unmarshal(bytes, &new); err != nil {
|
|
panic(err)
|
|
}
|
|
|
|
return new
|
|
}
|