You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/openapi/definitions.yaml
+32-27Lines changed: 32 additions & 27 deletions
Original file line number
Diff line number
Diff line change
@@ -218,7 +218,9 @@ containerSpecNoSec:
218
218
- resources
219
219
containerSpec:
220
220
allOf:
221
-
- $ref: '#/securityContext'
221
+
- properties:
222
+
securityContext:
223
+
$ref: '#/securityContext'
222
224
- $ref: '#/containerSpecNoSec'
223
225
cpuQuantity:
224
226
title: CPU quantity
@@ -599,6 +601,32 @@ path:
599
601
description: An absolute path
600
602
type: string
601
603
pattern: '^[/].*$'
604
+
podSecurityContext:
605
+
properties:
606
+
runAsUser:
607
+
$ref: '#/runAsUser'
608
+
description: The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
609
+
runAsGroup:
610
+
$ref: '#/runAsGroup'
611
+
description: The GID to run the entrypoint of the container process. Defaults to group specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
612
+
runAsNonRoot:
613
+
$ref: '#/runAsNonRoot'
614
+
description: Will prevent any container from starting with UID 0.
615
+
fsGroup:
616
+
description: Supplementary group ID. Volumes that support ownership management are modified to be owned and writable by this ID.
617
+
type: string
618
+
fsGroupChangePolicy:
619
+
description:
620
+
'Defines behavior for changing ownership and permission of the volume before being exposed inside a Pod. This field only applies to volume types that support fsGroup controlled ownership and permissions.
621
+
This field has two possible values:
622
+
OnRootMismatch: Only change permissions and ownership if permission and ownership of root directory does not match with expected permissions of the volume. This could help shorten the time it takes to change ownership and permission of a volume.
623
+
Always: Always change permission and ownership of the volume when volume is mounted.'
624
+
enum:
625
+
# - null
626
+
- Always
627
+
- OnRootMismatch
628
+
description: Security context for the pod.
629
+
title: Pod security context
602
630
podSpec:
603
631
allOf:
604
632
- properties:
@@ -607,31 +635,7 @@ podSpec:
607
635
title: Pod annotations
608
636
- properties:
609
637
podSecurityContext:
610
-
properties:
611
-
runAsUser:
612
-
$ref: '#/runAsUser'
613
-
description: The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
614
-
runAsGroup:
615
-
$ref: '#/runAsGroup'
616
-
description: The GID to run the entrypoint of the container process. Defaults to group specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence.
617
-
runAsNonRoot:
618
-
$ref: '#/runAsNonRoot'
619
-
description: Will prevent any container from starting with UID 0.
620
-
fsGroup:
621
-
description: Supplementary group ID. Volumes that support ownership management are modified to be owned and writable by this ID.
622
-
type: string
623
-
fsGroupChangePolicy:
624
-
description:
625
-
'Defines behavior for changing ownership and permission of the volume before being exposed inside a Pod. This field only applies to volume types that support fsGroup controlled ownership and permissions.
626
-
This field has two possible values:
627
-
OnRootMismatch: Only change permissions and ownership if permission and ownership of root directory does not match with expected permissions of the volume. This could help shorten the time it takes to change ownership and permission of a volume.
628
-
Always: Always change permission and ownership of the volume when volume is mounted.'
629
-
enum:
630
-
- null
631
-
- Always
632
-
- OnRootMismatch
633
-
description: Security context for the pod.
634
-
title: Pod security context
638
+
$ref: '#/podSecurityContext'
635
639
- $ref: '#/containerSpec'
636
640
type: object
637
641
portNumber:
@@ -714,7 +718,8 @@ script:
714
718
description: May specify a non-empty string containing an executable script.
0 commit comments