Skip to content

Commit

Permalink
kubeadm: fix fuzzing for ExtraEnvs defined in the control plane compo…
Browse files Browse the repository at this point in the history
…nent

Signed-off-by: Dave Chen <dave.chen@arm.com>
  • Loading branch information
chendave committed Jul 4, 2023
1 parent 80b035a commit c68a6b0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/kubeadm/app/apis/kubeadm/fuzzer/fuzzer.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ func fuzzClusterConfiguration(obj *kubeadm.ClusterConfiguration, c fuzz.Continue
obj.APIServer.TimeoutForControlPlane = &metav1.Duration{
Duration: constants.DefaultControlPlaneTimeout,
}
obj.ControllerManager.ExtraEnvs = []corev1.EnvVar{}
obj.APIServer.ExtraEnvs = []corev1.EnvVar{}
obj.Scheduler.ExtraEnvs = []corev1.EnvVar{}
obj.Etcd.Local.ExtraEnvs = []corev1.EnvVar{}
}

func fuzzDNS(obj *kubeadm.DNS, c fuzz.Continue) {
Expand Down

0 comments on commit c68a6b0

Please sign in to comment.