mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-13 22:05:59 +00:00
kubeadm: fix fuzzing for ResetConfiguration
Signed-off-by: Dave Chen <dave.chen@arm.com>
This commit is contained in:
parent
2e6715bc77
commit
2a907e6004
@ -40,6 +40,7 @@ func Funcs(codecs runtimeserializer.CodecFactory) []interface{} {
|
|||||||
fuzzNetworking,
|
fuzzNetworking,
|
||||||
fuzzJoinConfiguration,
|
fuzzJoinConfiguration,
|
||||||
fuzzJoinControlPlane,
|
fuzzJoinControlPlane,
|
||||||
|
fuzzResetConfiguration,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -133,3 +134,10 @@ func fuzzJoinConfiguration(obj *kubeadm.JoinConfiguration, c fuzz.Continue) {
|
|||||||
func fuzzJoinControlPlane(obj *kubeadm.JoinControlPlane, c fuzz.Continue) {
|
func fuzzJoinControlPlane(obj *kubeadm.JoinControlPlane, c fuzz.Continue) {
|
||||||
c.FuzzNoCustom(obj)
|
c.FuzzNoCustom(obj)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func fuzzResetConfiguration(obj *kubeadm.ResetConfiguration, c fuzz.Continue) {
|
||||||
|
c.FuzzNoCustom(obj)
|
||||||
|
|
||||||
|
// Pinning values for fields that get defaults if fuzz value is empty string or nil (thus making the round trip test fail)
|
||||||
|
obj.CertificatesDir = "/tmp"
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user