Skip to content

Commit

Permalink
fix: set default podspec for staticpod podtemplate (#1404)
Browse files Browse the repository at this point in the history
Signed-off-by: ricky <[email protected]>
  • Loading branch information
y-ykcir authored Apr 22, 2023
1 parent 48f7c79 commit c08779f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/apis/apps/v1alpha1/default.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,11 @@ func SetDefaultsStaticPod(obj *StaticPod) {
obj.Spec.RevisionHistoryLimit = new(int32)
*obj.Spec.RevisionHistoryLimit = 10
}

podSpec := &obj.Spec.Template.Spec
if podSpec != nil {
SetDefaultPodSpec(podSpec)
}
}

// SetDefaultsYurtAppDaemon set default values for YurtAppDaemon.
Expand Down

0 comments on commit c08779f

Please sign in to comment.