We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7406ccd commit 37c41bcCopy full SHA for 37c41bc
1 file changed
pkg/wandb/spec/spec.go
@@ -98,16 +98,19 @@ func (s *Spec) mergeConfig(values Values) (err error) {
98
return nil
99
}
100
101
+// Merge merges the given spec into the current spec. The currently spec will
102
+// take precedence. This means, if the current spec has a value for a key, the
103
+// new spec will not override it. Likewise, charts & metadata cannot be merged,
104
+// so if a chart/metadata value is set, the one passed in will be ignored.
105
func (s *Spec) Merge(spec *Spec) {
106
if spec == nil {
107
return
108
109
- if spec.Metadata != nil {
110
+ if s.Metadata == nil {
111
s.Metadata = spec.Metadata
112
-
- if spec.Chart != nil {
113
+ if s.Chart == nil {
114
s.Chart = spec.Chart
115
116
if spec.Values != nil {
0 commit comments