Commit 57c3c2c0 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #51909 from sttts/sttts-51908

Automatic merge from submit-queue audit: fix fuzzer Fixes #51908.
parents 0a883230 58dd0879
...@@ -17,6 +17,8 @@ limitations under the License. ...@@ -17,6 +17,8 @@ limitations under the License.
package fuzzer package fuzzer
import ( import (
"strings"
fuzz "github.com/google/gofuzz" fuzz "github.com/google/gofuzz"
"k8s.io/apimachinery/pkg/runtime" "k8s.io/apimachinery/pkg/runtime"
...@@ -62,7 +64,9 @@ func Funcs(codecs runtimeserializer.CodecFactory) []interface{} { ...@@ -62,7 +64,9 @@ func Funcs(codecs runtimeserializer.CodecFactory) []interface{} {
o.APIGroup = "rbac.authorization.k8s.io" o.APIGroup = "rbac.authorization.k8s.io"
o.APIVersion = "v1beta1" o.APIVersion = "v1beta1"
default: default:
// use random value. // use random value, but without / as it is used as separator
o.APIGroup = strings.Replace(o.APIGroup, "/", "-", -1)
o.APIVersion = strings.Replace(o.APIVersion, "/", "-", -1)
} }
}, },
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment