GenericEphemeralVolume: feature gate, API, documentation
As explained in https://github.com/kubernetes/enhancements/tree/master/keps/sig-storage/1698-generic-ephemeral-volumes, CSI inline volumes are not suitable for more "normal" kinds of storage systems. For those a new approach is needed: "generic ephemeral inline volumes".
This commit is contained in:
@@ -263,6 +263,14 @@ var Funcs = func(codecs runtimeserializer.CodecFactory) []interface{} {
|
||||
i.ISCSIInterface = "default"
|
||||
}
|
||||
},
|
||||
func(i *core.PersistentVolumeClaimSpec, c fuzz.Continue) {
|
||||
// Match defaulting in pkg/apis/core/v1/defaults.go.
|
||||
volumeMode := core.PersistentVolumeMode(c.RandString())
|
||||
if volumeMode == "" {
|
||||
volumeMode = core.PersistentVolumeFilesystem
|
||||
}
|
||||
i.VolumeMode = &volumeMode
|
||||
},
|
||||
func(d *core.DNSPolicy, c fuzz.Continue) {
|
||||
policies := []core.DNSPolicy{core.DNSClusterFirst, core.DNSDefault}
|
||||
*d = policies[c.Rand.Intn(len(policies))]
|
||||
|
Reference in New Issue
Block a user