package fuzzer
import "k8s.io/kubernetes/pkg/apis/rbac/fuzzer"
Index ¶
Variables ¶
var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} { return []interface{}{ func(r *rbac.RoleRef, c randfill.Continue) { c.FillNoCustom(r) if len(r.APIGroup) == 0 { r.APIGroup = rbac.GroupName } }, func(r *rbac.Subject, c randfill.Continue) { switch c.Int31n(3) { case 0: r.Kind = rbac.ServiceAccountKind r.APIGroup = "" c.FillNoCustom(&r.Name) c.FillNoCustom(&r.Namespace) case 1: r.Kind = rbac.UserKind r.APIGroup = rbac.GroupName c.FillNoCustom(&r.Name) for r.Name == "*" { c.FillNoCustom(&r.Name) } case 2: r.Kind = rbac.GroupKind r.APIGroup = rbac.GroupName c.FillNoCustom(&r.Name) } }, } }
Funcs returns the fuzzer functions for the rbac api group.
Source Files ¶
fuzzer.go
- Version
- v1.33.0 (latest)
- Published
- Apr 23, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 5 hours ago –
Tools for package owners.