Skip to content

Commit da2d9b7

Browse files
committed
Update deepcopy
1 parent 6ab800b commit da2d9b7

File tree

2 files changed

+25
-3
lines changed

2 files changed

+25
-3
lines changed

pkg/apis/deployment/v1/plan.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ type Action struct {
100100
// Image used in can of a SetCurrentImage action.
101101
Image string `json:"image,omitempty"`
102102
// Params additional parameters used for action
103-
Params map[string]interface{} `json:"params,omitempty"`
103+
Params map[string]string `json:"params,omitempty"`
104104
}
105105

106106
// Equal compares two Actions
@@ -117,9 +117,9 @@ func (a Action) Equal(other Action) bool {
117117
}
118118

119119
// AddParam returns copy of action with set parameter
120-
func (a Action) AddParam(key string, value interface{}) Action {
120+
func (a Action) AddParam(key, value string) Action {
121121
if a.Params == nil {
122-
a.Params = map[string]interface{}{}
122+
a.Params = map[string]string{}
123123
}
124124

125125
a.Params[key] = value

pkg/apis/deployment/v1/zz_generated.deepcopy.go

Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)