@@ -2186,6 +2186,29 @@ spec:
2186
2186
description : ' Compute Resources required by this container.
2187
2187
Cannot be updated. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/'
2188
2188
properties :
2189
+ claims :
2190
+ description : " Claims lists the names of resources,
2191
+ defined in spec.resourceClaims, that are used
2192
+ by this container. \n This is an alpha field and
2193
+ requires enabling the DynamicResourceAllocation
2194
+ feature gate. \n This field is immutable."
2195
+ items :
2196
+ description : ResourceClaim references one entry
2197
+ in PodSpec.ResourceClaims.
2198
+ properties :
2199
+ name :
2200
+ description : Name must match the name of one
2201
+ entry in pod.spec.resourceClaims of the
2202
+ Pod where this field is used. It makes that
2203
+ resource available inside a container.
2204
+ type : string
2205
+ required :
2206
+ - name
2207
+ type : object
2208
+ type : array
2209
+ x-kubernetes-list-map-keys :
2210
+ - name
2211
+ x-kubernetes-list-type : map
2189
2212
limits :
2190
2213
additionalProperties :
2191
2214
anyOf :
@@ -3269,10 +3292,13 @@ spec:
3269
3292
can support the specified data source,
3270
3293
it will create a new volume based on the
3271
3294
contents of the specified data source.
3272
- If the AnyVolumeDataSource feature gate
3273
- is enabled, this field will always have
3274
- the same contents as the DataSourceRef
3275
- field.'
3295
+ When the AnyVolumeDataSource feature gate
3296
+ is enabled, dataSource contents will be
3297
+ copied to dataSourceRef, and dataSourceRef
3298
+ contents will be copied to dataSource
3299
+ when dataSourceRef.namespace is not specified.
3300
+ If the namespace is specified, then dataSourceRef
3301
+ will not be copied to dataSource.'
3276
3302
properties :
3277
3303
apiGroup :
3278
3304
description : APIGroup is the group for
@@ -3299,31 +3325,39 @@ spec:
3299
3325
description : ' dataSourceRef specifies the
3300
3326
object from which to populate the volume
3301
3327
with data, if a non-empty volume is desired.
3302
- This may be any local object from a non-empty
3328
+ This may be any object from a non-empty
3303
3329
API group (non core object) or a PersistentVolumeClaim
3304
3330
object. When this field is specified,
3305
3331
volume binding will only succeed if the
3306
3332
type of the specified object matches some
3307
3333
installed volume populator or dynamic
3308
3334
provisioner. This field will replace the
3309
- functionality of the DataSource field
3335
+ functionality of the dataSource field
3310
3336
and as such if both fields are non-empty,
3311
3337
they must have the same value. For backwards
3312
- compatibility, both fields (DataSource
3313
- and DataSourceRef) will be set to the
3338
+ compatibility, when namespace isn'' t specified
3339
+ in dataSourceRef, both fields (dataSource
3340
+ and dataSourceRef) will be set to the
3314
3341
same value automatically if one of them
3315
- is empty and the other is non-empty. There
3316
- are two important differences between
3317
- DataSource and DataSourceRef: * While
3318
- DataSource only allows two specific types
3319
- of objects, DataSourceRef allows any non-core
3320
- object, as well as PersistentVolumeClaim
3321
- objects. * While DataSource ignores disallowed
3322
- values (dropping them), DataSourceRef
3342
+ is empty and the other is non-empty. When
3343
+ namespace is specified in dataSourceRef,
3344
+ dataSource isn'' t set to the same value
3345
+ and must be empty. There are three important
3346
+ differences between dataSource and dataSourceRef:
3347
+ * While dataSource only allows two specific
3348
+ types of objects, dataSourceRef allows
3349
+ any non-core object, as well as PersistentVolumeClaim
3350
+ objects. * While dataSource ignores disallowed
3351
+ values (dropping them), dataSourceRef
3323
3352
preserves all values, and generates an
3324
3353
error if a disallowed value is specified.
3354
+ * While dataSource only allows local objects,
3355
+ dataSourceRef allows objects in any namespaces.
3325
3356
(Beta) Using this field requires the AnyVolumeDataSource
3326
- feature gate to be enabled.'
3357
+ feature gate to be enabled. (Alpha) Using
3358
+ the namespace field of dataSourceRef requires
3359
+ the CrossNamespaceVolumeDataSource feature
3360
+ gate to be enabled.'
3327
3361
properties :
3328
3362
apiGroup :
3329
3363
description : APIGroup is the group for
@@ -3341,6 +3375,19 @@ spec:
3341
3375
description : Name is the name of resource
3342
3376
being referenced
3343
3377
type : string
3378
+ namespace :
3379
+ description : Namespace is the namespace
3380
+ of resource being referenced Note
3381
+ that when a namespace is specified,
3382
+ a gateway.networking.k8s.io/ReferenceGrant
3383
+ object is required in the referent
3384
+ namespace to allow that namespace's
3385
+ owner to accept the reference. See
3386
+ the ReferenceGrant documentation for
3387
+ details. (Alpha) This field requires
3388
+ the CrossNamespaceVolumeDataSource
3389
+ feature gate to be enabled.
3390
+ type : string
3344
3391
required :
3345
3392
- kind
3346
3393
- name
@@ -3356,6 +3403,31 @@ spec:
3356
3403
status field of the claim. More info:
3357
3404
https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources'
3358
3405
properties :
3406
+ claims :
3407
+ description : " Claims lists the names
3408
+ of resources, defined in spec.resourceClaims,
3409
+ that are used by this container. \n
3410
+ This is an alpha field and requires
3411
+ enabling the DynamicResourceAllocation
3412
+ feature gate. \n This field is immutable."
3413
+ items :
3414
+ description : ResourceClaim references
3415
+ one entry in PodSpec.ResourceClaims.
3416
+ properties :
3417
+ name :
3418
+ description : Name must match the
3419
+ name of one entry in pod.spec.resourceClaims
3420
+ of the Pod where this field
3421
+ is used. It makes that resource
3422
+ available inside a container.
3423
+ type : string
3424
+ required :
3425
+ - name
3426
+ type : object
3427
+ type : array
3428
+ x-kubernetes-list-map-keys :
3429
+ - name
3430
+ x-kubernetes-list-type : map
3359
3431
limits :
3360
3432
additionalProperties :
3361
3433
anyOf :
0 commit comments