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
"description": "RunAsGroupStrategyOptions defines the strategy type and options used to create the strategy.",
37964
+
"type": "object",
37965
+
"required": [
37966
+
"type"
37967
+
],
37968
+
"properties": {
37969
+
"gid": {
37970
+
"description": "gid is the group id that containers must run as. Required for the MustRunAs strategy if not using namespace/service account allocated gids.",
37971
+
"type": "integer",
37972
+
"format": "int64"
37973
+
},
37974
+
"gidRangeMax": {
37975
+
"description": "gidRangeMax defines the max value for a strategy that allocates by range.",
37976
+
"type": "integer",
37977
+
"format": "int64"
37978
+
},
37979
+
"gidRangeMin": {
37980
+
"description": "gidRangeMin defines the min value for a strategy that allocates by range.",
37981
+
"type": "integer",
37982
+
"format": "int64"
37983
+
},
37984
+
"ranges": {
37985
+
"description": "ranges are the allowed ranges of gids. If you would like to force a single gid then supply a single range with the same start and end. When omitted, any gid is allowed (equivalent to RunAsAny strategy).",
"description": "type is the strategy that will dictate what RunAsGroup is used in the SecurityContext. Valid values are \"MustRunAs\", \"MustRunAsRange\", and \"RunAsAny\".",
"description": "SELinuxContextStrategyOptions defines the strategy type and any options used to create the strategy.",
37964
38001
"type": "object",
@@ -38120,6 +38157,11 @@
38120
38157
},
38121
38158
"x-kubernetes-list-type": "atomic"
38122
38159
},
38160
+
"runAsGroup": {
38161
+
"description": "runAsGroup is the strategy that will dictate what RunAsGroup is used in the SecurityContext. When omitted, the RunAsGroup strategy will not be enforced and containers may run with any group ID.",
Copy file name to clipboardExpand all lines: security/v1/types.go
+44Lines changed: 44 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ var AllowAllCapabilities corev1.Capability = "*"
31
31
// +kubebuilder:printcolumn:name="SELinux",type=string,JSONPath=.seLinuxContext.type,description="Strategy that will dictate what labels will be set in the SecurityContext"
32
32
// +kubebuilder:printcolumn:name="RunAsUser",type=string,JSONPath=.runAsUser.type,description="Strategy that will dictate what RunAsUser is used in the SecurityContext"
33
33
// +kubebuilder:printcolumn:name="FSGroup",type=string,JSONPath=.fsGroup.type,description="Strategy that will dictate what fs group is used by the SecurityContext"
34
+
// +kubebuilder:printcolumn:name="RunAsGroup",type=string,JSONPath=.runAsGroup.type,description="Strategy that will dictate what RunAsGroup is used by the SecurityContext"
34
35
// +kubebuilder:printcolumn:name="SupGroup",type=string,JSONPath=.supplementalGroups.type,description="Strategy that will dictate what supplemental groups are used by the SecurityContext"
35
36
// +kubebuilder:printcolumn:name="Priority",type=string,JSONPath=.priority,description="Sort order of SCCs"
36
37
// +kubebuilder:printcolumn:name="ReadOnlyRootFS",type=string,JSONPath=.readOnlyRootFilesystem,description="Force containers to run with a read only root file system"
@@ -131,6 +132,10 @@ type SecurityContextConstraints struct {
131
132
// fsGroup is the strategy that will dictate what fs group is used by the SecurityContext.
0 commit comments