Skip to content

Commit 0fb7375

Browse files
author
Rohit Patil
committed
remove required option
1 parent 61e6009 commit 0fb7375

File tree

6 files changed

+25
-63
lines changed

6 files changed

+25
-63
lines changed

openapi/openapi.json

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -37934,31 +37934,6 @@
3793437934
}
3793537935
}
3793637936
},
37937-
"com.github.openshift.api.security.v1.RunAsUserStrategyOptions": {
37938-
"description": "RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy.",
37939-
"type": "object",
37940-
"properties": {
37941-
"type": {
37942-
"description": "type is the strategy that will dictate what RunAsUser is used in the SecurityContext.",
37943-
"type": "string"
37944-
},
37945-
"uid": {
37946-
"description": "uid is the user id that containers must run as. Required for the MustRunAs strategy if not using namespace/service account allocated uids.",
37947-
"type": "integer",
37948-
"format": "int64"
37949-
},
37950-
"uidRangeMax": {
37951-
"description": "uidRangeMax defines the max value for a strategy that allocates by range.",
37952-
"type": "integer",
37953-
"format": "int64"
37954-
},
37955-
"uidRangeMin": {
37956-
"description": "uidRangeMin defines the min value for a strategy that allocates by range.",
37957-
"type": "integer",
37958-
"format": "int64"
37959-
}
37960-
}
37961-
},
3796237937
"com.github.openshift.api.security.v1.RunAsGroupStrategyOptions": {
3796337938
"description": "RunAsGroupStrategyOptions defines the strategy type and options used to create the strategy.",
3796437939
"type": "object",
@@ -37996,6 +37971,31 @@
3799637971
}
3799737972
}
3799837973
},
37974+
"com.github.openshift.api.security.v1.RunAsUserStrategyOptions": {
37975+
"description": "RunAsUserStrategyOptions defines the strategy type and any options used to create the strategy.",
37976+
"type": "object",
37977+
"properties": {
37978+
"type": {
37979+
"description": "type is the strategy that will dictate what RunAsUser is used in the SecurityContext.",
37980+
"type": "string"
37981+
},
37982+
"uid": {
37983+
"description": "uid is the user id that containers must run as. Required for the MustRunAs strategy if not using namespace/service account allocated uids.",
37984+
"type": "integer",
37985+
"format": "int64"
37986+
},
37987+
"uidRangeMax": {
37988+
"description": "uidRangeMax defines the max value for a strategy that allocates by range.",
37989+
"type": "integer",
37990+
"format": "int64"
37991+
},
37992+
"uidRangeMin": {
37993+
"description": "uidRangeMin defines the min value for a strategy that allocates by range.",
37994+
"type": "integer",
37995+
"format": "int64"
37996+
}
37997+
}
37998+
},
3799937999
"com.github.openshift.api.security.v1.SELinuxContextStrategyOptions": {
3800038000
"description": "SELinuxContextStrategyOptions defines the strategy type and any options used to create the strategy.",
3800138001
"type": "object",

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,6 @@ spec:
205205
description: min is the start of the range, inclusive.
206206
format: int64
207207
type: integer
208-
required:
209-
- max
210-
- min
211208
type: object
212209
type: array
213210
x-kubernetes-list-type: atomic
@@ -300,9 +297,6 @@ spec:
300297
description: min is the start of the range, inclusive.
301298
format: int64
302299
type: integer
303-
required:
304-
- max
305-
- min
306300
type: object
307301
maxItems: 256
308302
type: array
@@ -407,9 +401,6 @@ spec:
407401
description: min is the start of the range, inclusive.
408402
format: int64
409403
type: integer
410-
required:
411-
- max
412-
- min
413404
type: object
414405
type: array
415406
x-kubernetes-list-type: atomic

security/v1/types.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -303,10 +303,8 @@ type RunAsGroupStrategyOptions struct {
303303
// TODO: this could be reused for UIDs.
304304
type IDRange struct {
305305
// min is the start of the range, inclusive.
306-
// +kubebuilder:validation:Required
307306
Min int64 `json:"min,omitempty" protobuf:"varint,1,opt,name=min"`
308307
// max is the end of the range, inclusive.
309-
// +kubebuilder:validation:Required
310308
Max int64 `json:"max,omitempty" protobuf:"varint,2,opt,name=max"`
311309
}
312310

security/v1/zz_generated.crd-manifests/0000_03_config-operator_01_securitycontextconstraints.crd.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -205,9 +205,6 @@ spec:
205205
description: min is the start of the range, inclusive.
206206
format: int64
207207
type: integer
208-
required:
209-
- max
210-
- min
211208
type: object
212209
type: array
213210
x-kubernetes-list-type: atomic
@@ -300,9 +297,6 @@ spec:
300297
description: min is the start of the range, inclusive.
301298
format: int64
302299
type: integer
303-
required:
304-
- max
305-
- min
306300
type: object
307301
maxItems: 256
308302
type: array
@@ -407,9 +401,6 @@ spec:
407401
description: min is the start of the range, inclusive.
408402
format: int64
409403
type: integer
410-
required:
411-
- max
412-
- min
413404
type: object
414405
type: array
415406
x-kubernetes-list-type: atomic

security/v1/zz_generated.featuregated-crd-manifests/securitycontextconstraints.security.openshift.io/AAA_ungated.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,6 @@ spec:
206206
description: min is the start of the range, inclusive.
207207
format: int64
208208
type: integer
209-
required:
210-
- max
211-
- min
212209
type: object
213210
type: array
214211
x-kubernetes-list-type: atomic
@@ -301,9 +298,6 @@ spec:
301298
description: min is the start of the range, inclusive.
302299
format: int64
303300
type: integer
304-
required:
305-
- max
306-
- min
307301
type: object
308302
maxItems: 256
309303
type: array
@@ -408,9 +402,6 @@ spec:
408402
description: min is the start of the range, inclusive.
409403
format: int64
410404
type: integer
411-
required:
412-
- max
413-
- min
414405
type: object
415406
type: array
416407
x-kubernetes-list-type: atomic

security/v1/zz_generated.featuregated-crd-manifests/securitycontextconstraints.security.openshift.io/UserNamespacesPodSecurityStandards.yaml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -206,9 +206,6 @@ spec:
206206
description: min is the start of the range, inclusive.
207207
format: int64
208208
type: integer
209-
required:
210-
- max
211-
- min
212209
type: object
213210
type: array
214211
x-kubernetes-list-type: atomic
@@ -301,9 +298,6 @@ spec:
301298
description: min is the start of the range, inclusive.
302299
format: int64
303300
type: integer
304-
required:
305-
- max
306-
- min
307301
type: object
308302
maxItems: 256
309303
type: array
@@ -408,9 +402,6 @@ spec:
408402
description: min is the start of the range, inclusive.
409403
format: int64
410404
type: integer
411-
required:
412-
- max
413-
- min
414405
type: object
415406
type: array
416407
x-kubernetes-list-type: atomic

0 commit comments

Comments
 (0)