diff --git a/cmd/kubeadm/app/apis/kubeadm/fuzzer/fuzzer.go b/cmd/kubeadm/app/apis/kubeadm/fuzzer/fuzzer.go index 70c1d37d6c047..bb432f1bfc046 100644 --- a/cmd/kubeadm/app/apis/kubeadm/fuzzer/fuzzer.go +++ b/cmd/kubeadm/app/apis/kubeadm/fuzzer/fuzzer.go @@ -122,7 +122,7 @@ func Funcs(codecs runtimeserializer.CodecFactory) []interface{} { LogDir: "/foo", LogMaxAge: utilpointer.Int32Ptr(0), WebhookConfigPath: "foo", - WebhookInitialBackoff: utilpointer.Int32Ptr(0), + WebhookInitialBackoff: "30s", } }, func(obj *kubeadm.NodeConfiguration, c fuzz.Continue) { diff --git a/cmd/kubeadm/app/phases/controlplane/manifests_test.go b/cmd/kubeadm/app/phases/controlplane/manifests_test.go index 390756abf5c7c..64bf5672913de 100644 --- a/cmd/kubeadm/app/phases/controlplane/manifests_test.go +++ b/cmd/kubeadm/app/phases/controlplane/manifests_test.go @@ -354,7 +354,7 @@ func TestGetAPIServerCommand(t *testing.T) { LogDir: "/foo/baz", LogMaxAge: utilpointer.Int32Ptr(10), WebhookConfigPath: "/foo/bar/baz", - WebhookInitialBackoff: utilpointer.Int32Ptr(30), + WebhookInitialBackoff: "30s", }, // ignored without the feature gate }, expected: []string{ @@ -586,7 +586,7 @@ func TestGetAPIServerCommand(t *testing.T) { AuditPolicyConfiguration: kubeadmapi.AuditPolicyConfiguration{ LogMaxAge: utilpointer.Int32Ptr(0), WebhookConfigPath: "/foo/bar/baz", - WebhookInitialBackoff: utilpointer.Int32Ptr(30), + WebhookInitialBackoff: "30s", }, }, expected: []string{ @@ -622,7 +622,7 @@ func TestGetAPIServerCommand(t *testing.T) { "--audit-log-path=/var/log/kubernetes/audit/audit.log", "--audit-log-maxage=0", "--audit-webhook-config-file=/etc/kubernetes/audit/webhook.yaml", - "--audit-webhook-initial-backoff=30", + "--audit-webhook-initial-backoff=30s", }, }, {