Skip to content

Commit f18f739

Browse files
committed
Update auto-generated files.
1 parent 035f292 commit f18f739

File tree

6 files changed

+40
-2
lines changed

6 files changed

+40
-2
lines changed

api/swagger-spec/api-v1.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -22773,7 +22773,8 @@
2277322773
"allowHostPorts",
2277422774
"allowHostPID",
2277522775
"allowHostIPC",
22776-
"readOnlyRootFilesystem"
22776+
"readOnlyRootFilesystem",
22777+
"allowedFlexDrivers"
2277722778
],
2277822779
"properties": {
2277922780
"kind": {
@@ -22885,6 +22886,12 @@
2288522886
"type": "string"
2288622887
},
2288722888
"description": "SeccompProfiles lists the allowed profiles that may be set for the pod or container's seccomp annotations. An unset (nil) or empty value means that no profiles may be specifid by the pod or container.\tThe wildcard '*' may be used to allow all profiles. When used to generate a value for a pod the first non-wildcard profile will be used as the default."
22889+
},
22890+
"allowedFlexDrivers": {
22891+
"type": "array",
22892+
"items": {
22893+
"type": "string"
22894+
}
2288822895
}
2288922896
}
2289022897
},

pkg/openapi/zz_generated.openapi.go

+15-1
Original file line numberDiff line numberDiff line change
@@ -9329,8 +9329,22 @@ func GetOpenAPIDefinitions(ref openapi.ReferenceCallback) map[string]openapi.Ope
93299329
},
93309330
},
93319331
},
9332+
"allowedFlexDrivers": {
9333+
SchemaProps: spec.SchemaProps{
9334+
Description: "AllowedFlexDrivers is a whitelist of allowed Flexvolume drivers. Empty or nil indicates that all drivers may be used.",
9335+
Type: []string{"array"},
9336+
Items: &spec.SchemaOrArray{
9337+
Schema: &spec.Schema{
9338+
SchemaProps: spec.SchemaProps{
9339+
Type: []string{"string"},
9340+
Format: "",
9341+
},
9342+
},
9343+
},
9344+
},
9345+
},
93329346
},
9333-
Required: []string{"priority", "allowPrivilegedContainer", "defaultAddCapabilities", "requiredDropCapabilities", "allowedCapabilities", "allowHostDirVolumePlugin", "volumes", "allowHostNetwork", "allowHostPorts", "allowHostPID", "allowHostIPC", "readOnlyRootFilesystem"},
9347+
Required: []string{"priority", "allowPrivilegedContainer", "defaultAddCapabilities", "requiredDropCapabilities", "allowedCapabilities", "allowHostDirVolumePlugin", "volumes", "allowHostNetwork", "allowHostPorts", "allowHostPID", "allowHostIPC", "readOnlyRootFilesystem", "allowedFlexDrivers"},
93349348
},
93359349
},
93369350
Dependencies: []string{

pkg/security/apis/security/v1/swagger_doc.go

+1
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ var map_SecurityContextConstraints = map[string]string{
149149
"users": "The users who have permissions to use this security context constraints",
150150
"groups": "The groups that have permission to use this security context constraints",
151151
"seccompProfiles": "SeccompProfiles lists the allowed profiles that may be set for the pod or container's seccomp annotations. An unset (nil) or empty value means that no profiles may be specifid by the pod or container.\tThe wildcard '*' may be used to allow all profiles. When used to generate a value for a pod the first non-wildcard profile will be used as the default.",
152+
"allowedFlexDrivers": "AllowedFlexDrivers is a whitelist of allowed Flexvolume drivers. Empty or nil indicates that all drivers may be used.",
152153
}
153154

154155
func (SecurityContextConstraints) SwaggerDoc() map[string]string {

pkg/security/apis/security/v1/zz_generated.conversion.go

+6
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,7 @@ func autoConvert_v1_SecurityContextConstraints_To_security_SecurityContextConstr
445445
out.Users = *(*[]string)(unsafe.Pointer(&in.Users))
446446
out.Groups = *(*[]string)(unsafe.Pointer(&in.Groups))
447447
out.SeccompProfiles = *(*[]string)(unsafe.Pointer(&in.SeccompProfiles))
448+
out.AllowedFlexDrivers = *(*[]string)(unsafe.Pointer(&in.AllowedFlexDrivers))
448449
return nil
449450
}
450451

@@ -467,6 +468,11 @@ func autoConvert_security_SecurityContextConstraints_To_v1_SecurityContextConstr
467468
} else {
468469
out.AllowedCapabilities = *(*[]api_v1.Capability)(unsafe.Pointer(&in.AllowedCapabilities))
469470
}
471+
if in.AllowedFlexDrivers == nil {
472+
out.AllowedFlexDrivers = make([]string, 0)
473+
} else {
474+
out.AllowedFlexDrivers = *(*[]string)(unsafe.Pointer(&in.AllowedFlexDrivers))
475+
}
470476
if in.Volumes == nil {
471477
out.Volumes = make([]FSType, 0)
472478
} else {

pkg/security/apis/security/v1/zz_generated.deepcopy.go

+5
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,11 @@ func DeepCopy_v1_SecurityContextConstraints(in interface{}, out interface{}, c *
301301
*out = make([]string, len(*in))
302302
copy(*out, *in)
303303
}
304+
if in.AllowedFlexDrivers != nil {
305+
in, out := &in.AllowedFlexDrivers, &out.AllowedFlexDrivers
306+
*out = make([]string, len(*in))
307+
copy(*out, *in)
308+
}
304309
return nil
305310
}
306311
}

pkg/security/apis/security/zz_generated.deepcopy.go

+5
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,11 @@ func DeepCopy_security_SecurityContextConstraints(in interface{}, out interface{
269269
*out = make([]api.Capability, len(*in))
270270
copy(*out, *in)
271271
}
272+
if in.AllowedFlexDrivers != nil {
273+
in, out := &in.AllowedFlexDrivers, &out.AllowedFlexDrivers
274+
*out = make([]string, len(*in))
275+
copy(*out, *in)
276+
}
272277
if in.Volumes != nil {
273278
in, out := &in.Volumes, &out.Volumes
274279
*out = make([]FSType, len(*in))

0 commit comments

Comments
 (0)