Comment out DaemonSet update type fields and remove the code that depends on it.

Leaving the type fields as comments for reference and reminder. But
deleting the conversion, defaulting and validation code. They can
always be brough back from the previous PR once the types are
introduced. Because builds break without them anyway that serves as a
reminder, so there is no need to leave them commented out.
This commit is contained in:
Madhusudan.C.S
2016-02-03 14:05:04 -08:00
parent c70c7fde4d
commit ad9ba23995
14 changed files with 11899 additions and 13567 deletions

View File

@@ -397,13 +397,6 @@ func FuzzerFor(t *testing.T, version unversioned.GroupVersion, src rand.Source)
s.MinReplicas = &minReplicas
s.CPUUtilization = &extensions.CPUTargetUtilization{TargetPercentage: int(int32(c.RandUint64()))}
},
func(s *extensions.DaemonSetUpdateStrategy, c fuzz.Continue) {
c.FuzzNoCustom(s)
s.Type = extensions.RollingUpdateDaemonSetStrategyType
s.RollingUpdate = &extensions.RollingUpdateDaemonSet{
MaxUnavailable: intstr.FromInt(10),
}
},
func(psp *extensions.PodSecurityPolicySpec, c fuzz.Continue) {
c.FuzzNoCustom(psp) // fuzz self without calling this function again
userTypes := []extensions.RunAsUserStrategy{extensions.RunAsUserStrategyMustRunAsNonRoot, extensions.RunAsUserStrategyMustRunAs, extensions.RunAsUserStrategyRunAsAny}