Skip to content

Commit 57b580e

Browse files
committed
chore(apis): Regenerate API types for openapi3 specification
In kube 1.17, the openapi structural schema validation was updated to validate CRDs according to the documented API semantics of x-kubernetes-list-type and x-kubernetes-map-type atomic to reject non-atomic sub-types. This PR updates the API types to follow the specification.
1 parent 344f1a3 commit 57b580e

13 files changed

+245
-371
lines changed

deploy/chart/crds/0000_50_olm_03-clusterserviceversion.crd.yaml

Lines changed: 18 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1827,7 +1827,8 @@ spec:
18271827
metadata.namespace, metadata.labels,
18281828
metadata.annotations, spec.nodeName,
18291829
spec.serviceAccountName,
1830-
status.hostIP, status.podIP.'
1830+
status.hostIP, status.podIP,
1831+
status.podIPs.'
18311832
type: object
18321833
required:
18331834
- fieldPath
@@ -2781,10 +2782,9 @@ spec:
27812782
and PodSecurityContext, the
27822783
value specified in SecurityContext
27832784
takes precedence. This field
2784-
is alpha-level and it is only
2785-
honored by servers that enable
2786-
the WindowsRunAsUserName feature
2787-
flag.
2785+
is beta-level and may be disabled
2786+
with the WindowsRunAsUserName
2787+
feature flag.
27882788
type: string
27892789
startupProbe:
27902790
description: 'StartupProbe indicates
@@ -3084,7 +3084,6 @@ spec:
30843084
environment. Defaults to ""
30853085
(volume's root). SubPathExpr
30863086
and SubPath are mutually exclusive.
3087-
This field is beta in 1.15.
30883087
type: string
30893088
workingDir:
30903089
description: Container's working directory.
@@ -3291,7 +3290,8 @@ spec:
32913290
metadata.namespace, metadata.labels,
32923291
metadata.annotations, spec.nodeName,
32933292
spec.serviceAccountName,
3294-
status.hostIP, status.podIP.'
3293+
status.hostIP, status.podIP,
3294+
status.podIPs.'
32953295
type: object
32963296
required:
32973297
- fieldPath
@@ -4225,10 +4225,9 @@ spec:
42254225
and PodSecurityContext, the
42264226
value specified in SecurityContext
42274227
takes precedence. This field
4228-
is alpha-level and it is only
4229-
honored by servers that enable
4230-
the WindowsRunAsUserName feature
4231-
flag.
4228+
is beta-level and may be disabled
4229+
with the WindowsRunAsUserName
4230+
feature flag.
42324231
type: string
42334232
startupProbe:
42344233
description: Probes are not allowed
@@ -4526,7 +4525,6 @@ spec:
45264525
environment. Defaults to ""
45274526
(volume's root). SubPathExpr
45284527
and SubPath are mutually exclusive.
4529-
This field is beta in 1.15.
45304528
type: string
45314529
workingDir:
45324530
description: Container's working directory.
@@ -4732,7 +4730,8 @@ spec:
47324730
metadata.namespace, metadata.labels,
47334731
metadata.annotations, spec.nodeName,
47344732
spec.serviceAccountName,
4735-
status.hostIP, status.podIP.'
4733+
status.hostIP, status.podIP,
4734+
status.podIPs.'
47364735
type: object
47374736
required:
47384737
- fieldPath
@@ -5686,10 +5685,9 @@ spec:
56865685
and PodSecurityContext, the
56875686
value specified in SecurityContext
56885687
takes precedence. This field
5689-
is alpha-level and it is only
5690-
honored by servers that enable
5691-
the WindowsRunAsUserName feature
5692-
flag.
5688+
is beta-level and may be disabled
5689+
with the WindowsRunAsUserName
5690+
feature flag.
56935691
type: string
56945692
startupProbe:
56955693
description: 'StartupProbe indicates
@@ -5989,7 +5987,6 @@ spec:
59895987
environment. Defaults to ""
59905988
(volume's root). SubPathExpr
59915989
and SubPath are mutually exclusive.
5992-
This field is beta in 1.15.
59935990
type: string
59945991
workingDir:
59955992
description: Container's working directory.
@@ -6259,9 +6256,8 @@ spec:
62596256
If set in both SecurityContext and
62606257
PodSecurityContext, the value specified
62616258
in SecurityContext takes precedence.
6262-
This field is alpha-level and it
6263-
is only honored by servers that
6264-
enable the WindowsRunAsUserName
6259+
This field is beta-level and may
6260+
be disabled with the WindowsRunAsUserName
62656261
feature flag.
62666262
type: string
62676263
serviceAccount:
@@ -6283,9 +6279,7 @@ spec:
62836279
process in each container will not be assigned
62846280
PID 1. HostPID and ShareProcessNamespace
62856281
cannot both be set. Optional: Default to
6286-
false. This field is beta-level and may
6287-
be disabled with the PodShareProcessNamespace
6288-
feature.'
6282+
false.'
62896283
type: boolean
62906284
subdomain:
62916285
description: If specified, the fully qualified

deploy/chart/crds/0000_50_olm_05-subscription.crd.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ spec:
128128
description: 'Selects a field of the pod: supports metadata.name,
129129
metadata.namespace, metadata.labels, metadata.annotations,
130130
spec.nodeName, spec.serviceAccountName, status.hostIP,
131-
status.podIP.'
131+
status.podIP, status.podIPs.'
132132
type: object
133133
required:
134134
- fieldPath
@@ -370,7 +370,7 @@ spec:
370370
to SubPath but environment variable references $(VAR_NAME)
371371
are expanded using the container's environment. Defaults
372372
to "" (volume's root). SubPathExpr and SubPath are mutually
373-
exclusive. This field is beta in 1.15.
373+
exclusive.
374374
type: string
375375
volumes:
376376
description: List of Volumes to set in the podSpec.

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ require (
3939
k8s.io/klog v1.0.0
4040
k8s.io/kube-aggregator v0.17.3
4141
k8s.io/kube-openapi v0.0.0-20191107075043-30be4d16710a
42+
rsc.io/letsencrypt v0.0.3 // indirect
4243
sigs.k8s.io/controller-tools v0.2.4
4344
)
4445

0 commit comments

Comments
 (0)