Skip to content

Commit

Permalink
Replace Daemonset if .spec.selector changes
Browse files Browse the repository at this point in the history
  • Loading branch information
James Forcier committed Feb 25, 2020
1 parent eb6da54 commit 5146158
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion pkg/provider/diff.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,14 @@ type properties []string

var forceNew = _groups{
"apps": _versions{
// NOTE: .spec.selector triggers a replacement in Deployment only AFTER v1beta1.
// NOTE: .spec.selector triggers a replacement in Deployment/Daemonset only AFTER v1beta1.
"v1beta1": _kinds{"StatefulSet": statefulSet},
"v1beta2": _kinds{
"Daemonset": daemonset,
"Deployment": deployment,
"StatefulSet": statefulSet},
"v1": _kinds{
"Daemonset": daemonset,
"Deployment": deployment,
"StatefulSet": statefulSet},
},
Expand Down Expand Up @@ -136,6 +138,10 @@ var core = _versions{
},
}

var daemonset = properties{
".spec.selector",
}

var deployment = properties{
".spec.selector",
}
Expand Down

0 comments on commit 5146158

Please sign in to comment.