Skip to content

Commit abbdffb

Browse files
author
Rohit Patil
committed
changefor-runAsGroup
1 parent 0fb7375 commit abbdffb

File tree

11 files changed

+857
-169
lines changed

11 files changed

+857
-169
lines changed

openapi/generated_openapi/zz_generated.openapi.go

Lines changed: 31 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

openapi/openapi.json

Lines changed: 62 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -37934,43 +37934,6 @@
3793437934
}
3793537935
}
3793637936
},
37937-
"com.github.openshift.api.security.v1.RunAsGroupStrategyOptions": {
37938-
"description": "RunAsGroupStrategyOptions defines the strategy type and options used to create the strategy.",
37939-
"type": "object",
37940-
"required": [
37941-
"type"
37942-
],
37943-
"properties": {
37944-
"gid": {
37945-
"description": "gid is the group id that containers must run as. Required for the MustRunAs strategy if not using namespace/service account allocated gids.",
37946-
"type": "integer",
37947-
"format": "int64"
37948-
},
37949-
"gidRangeMax": {
37950-
"description": "gidRangeMax defines the max value for a strategy that allocates by range.",
37951-
"type": "integer",
37952-
"format": "int64"
37953-
},
37954-
"gidRangeMin": {
37955-
"description": "gidRangeMin defines the min value for a strategy that allocates by range.",
37956-
"type": "integer",
37957-
"format": "int64"
37958-
},
37959-
"ranges": {
37960-
"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).",
37961-
"type": "array",
37962-
"items": {
37963-
"default": {},
37964-
"$ref": "#/definitions/com.github.openshift.api.security.v1.IDRange"
37965-
},
37966-
"x-kubernetes-list-type": "atomic"
37967-
},
37968-
"type": {
37969-
"description": "type is the strategy that will dictate what RunAsGroup is used in the SecurityContext. Valid values are \"MustRunAs\", \"MustRunAsRange\", and \"RunAsAny\".",
37970-
"type": "string"
37971-
}
37972-
}
37973-
},
3797437937
"com.github.openshift.api.security.v1.RunAsUserStrategyOptions": {
3797537938
"description": "RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy.",
3797637939
"type": "object",
@@ -38157,11 +38120,6 @@
3815738120
},
3815838121
"x-kubernetes-list-type": "atomic"
3815938122
},
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.",
38162-
"default": {},
38163-
"$ref": "#/definitions/com.github.openshift.api.security.v1.RunAsGroupStrategyOptions"
38164-
},
3816538123
"runAsUser": {
3816638124
"description": "runAsUser is the strategy that will dictate what RunAsUser is used in the SecurityContext.",
3816738125
"default": {},
@@ -38208,6 +38166,11 @@
3820838166
"default": ""
3820938167
},
3821038168
"x-kubernetes-list-type": "atomic"
38169+
},
38170+
"runAsGroup": {
38171+
"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.",
38172+
"default": {},
38173+
"$ref": "#/definitions/com.github.openshift.api.security.v1.RunAsGroupStrategyOptions"
3821138174
}
3821238175
}
3821338176
},
@@ -49875,6 +49838,63 @@
4987549838
"description": "IntOrString is a type that can hold an int32 or a string. When used in JSON or YAML marshalling and unmarshalling, it produces or consumes the inner type. This allows you to have, for example, a JSON field that can accept a name or number.",
4987649839
"type": "string",
4987749840
"format": "int-or-string"
49841+
},
49842+
"com.github.openshift.api.security.v1.RunAsGroupIDRange": {
49843+
"description": "RunAsGroupIDRange provides a min/max of an allowed range of group IDs for RunAsGroup strategy.",
49844+
"type": "object",
49845+
"required": [
49846+
"min",
49847+
"max"
49848+
],
49849+
"properties": {
49850+
"max": {
49851+
"description": "max is the end of the range, inclusive.",
49852+
"type": "integer",
49853+
"format": "int64"
49854+
},
49855+
"min": {
49856+
"description": "min is the start of the range, inclusive.",
49857+
"type": "integer",
49858+
"format": "int64"
49859+
}
49860+
}
49861+
},
49862+
"com.github.openshift.api.security.v1.RunAsGroupStrategyOptions": {
49863+
"description": "RunAsGroupStrategyOptions defines the strategy type and options used to create the strategy.",
49864+
"type": "object",
49865+
"required": [
49866+
"type"
49867+
],
49868+
"properties": {
49869+
"gid": {
49870+
"description": "gid is the group id that containers must run as. Required for the MustRunAs strategy if not using namespace/service account allocated gids.",
49871+
"type": "integer",
49872+
"format": "int64"
49873+
},
49874+
"gidRangeMax": {
49875+
"description": "gidRangeMax defines the max value for a strategy that allocates by range.",
49876+
"type": "integer",
49877+
"format": "int64"
49878+
},
49879+
"gidRangeMin": {
49880+
"description": "gidRangeMin defines the min value for a strategy that allocates by range.",
49881+
"type": "integer",
49882+
"format": "int64"
49883+
},
49884+
"ranges": {
49885+
"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).",
49886+
"type": "array",
49887+
"items": {
49888+
"default": {},
49889+
"$ref": "#/definitions/com.github.openshift.api.security.v1.RunAsGroupIDRange"
49890+
},
49891+
"x-kubernetes-list-type": "atomic"
49892+
},
49893+
"type": {
49894+
"description": "type is the strategy that will dictate what RunAsGroup is used in the SecurityContext. Valid values are \"MustRunAs\", \"MustRunAsRange\", and \"RunAsAny\".",
49895+
"type": "string"
49896+
}
49897+
}
4987849898
}
4987949899
}
4988049900
}

payload-manifests/crds/0000_03_config-operator_01_securitycontextconstraints.crd.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,8 @@ spec:
287287
gid then supply a single range with the same start and end.
288288
When omitted, any gid is allowed (equivalent to RunAsAny strategy).
289289
items:
290-
description: IDRange provides a min/max of an allowed range of IDs.
290+
description: RunAsGroupIDRange provides a min/max of an allowed
291+
range of group IDs for RunAsGroup strategy.
291292
properties:
292293
max:
293294
description: max is the end of the range, inclusive.
@@ -297,6 +298,9 @@ spec:
297298
description: min is the start of the range, inclusive.
298299
format: int64
299300
type: integer
301+
required:
302+
- max
303+
- min
300304
type: object
301305
maxItems: 256
302306
type: array

0 commit comments

Comments
 (0)