func addDefaultingFuncs(scheme *runtime.Scheme) error { … } // SetDefaults_Deployment sets additional defaults compared to its counterpart // in extensions. These addons are: // - MaxUnavailable during rolling update set to 25% (1 in extensions) // - MaxSurge value during rolling update set to 25% (1 in extensions) // - RevisionHistoryLimit set to 10 (not set in extensions) // - ProgressDeadlineSeconds set to 600s (not set in extensions) func SetDefaults_Deployment(obj *appsv1.Deployment) { … } func SetDefaults_DaemonSet(obj *appsv1.DaemonSet) { … } func SetDefaults_StatefulSet(obj *appsv1.StatefulSet) { … } func SetDefaults_ReplicaSet(obj *appsv1.ReplicaSet) { … }