Skip to content

Commit

Permalink
fix: set default podspec for staticpod podtemplate
Browse files Browse the repository at this point in the history
Signed-off-by: ricky <[email protected]>
  • Loading branch information
y-ykcir committed Apr 21, 2023
1 parent a65b31c commit a636707
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 a636707

Please sign in to comment.