Skip to content

Commit 4111b4f

Browse files
authored
fix: PDB GQL schema (#10013)
* fix pdb schema * make fix * fix details
1 parent 1e8572f commit 4111b4f

File tree

2 files changed

+52
-28
lines changed

2 files changed

+52
-28
lines changed

modules/web/.meshrc.yml

+24
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,30 @@ sources:
236236
to:
237237
type: StringWrapper
238238
field: string
239+
- from:
240+
type: poddisruptionbudget_PodDisruptionBudget
241+
field: minAvailable
242+
to:
243+
type: StringWrapper
244+
field: string
245+
- from:
246+
type: poddisruptionbudget_PodDisruptionBudget
247+
field: maxUnavailable
248+
to:
249+
type: StringWrapper
250+
field: string
251+
- from:
252+
type: poddisruptionbudget_PodDisruptionBudgetDetail
253+
field: minAvailable
254+
to:
255+
type: StringWrapper
256+
field: string
257+
- from:
258+
type: poddisruptionbudget_PodDisruptionBudgetDetail
259+
field: maxUnavailable
260+
to:
261+
type: StringWrapper
262+
field: string
239263
- from:
240264
type: v1_NetworkPolicyPort
241265
field: port

modules/web/schema/schema.graphql

+28-28
Original file line numberDiff line numberDiff line change
@@ -2699,7 +2699,7 @@ type v1_IngressRule {
26992699
Currently the port of an Ingress is implicitly :80 for http and
27002700
:443 for https.
27012701
Both these may change in the future. Incoming requests are matched against the host before the IngressRuleValue. If the host is unspecified, the Ingress routes all traffic based on the specified IngressRuleValue.
2702-
2702+
27032703
host can be "precise" which is a domain name without the terminating dot of a network host (e.g. "foo.bar.com") or "wildcard", which is a domain name prefixed with a single wildcard label (e.g. "*.foo.com"). The wildcard character '*' must appear by itself as the first DNS label and matches only a single label. You cannot have a wildcard label by itself (e.g. Host == "*"). Requests will be matched against the Host field in the following way: 1. If host is precise, the request matches this rule if the http host header is equal to Host. 2. If host is a wildcard, then the request matches this rule if the http host header is to equal to the suffix (removing the first label) of the wildcard rule.
27042704
"""
27052705
host: String
@@ -3962,7 +3962,7 @@ type v1_GRPCAction {
39623962
port: Int!
39633963
"""
39643964
Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md).
3965-
3965+
39663966
If this is not specified, the default behavior is defined by gRPC.
39673967
"""
39683968
service: String!
@@ -4004,9 +4004,9 @@ type v1_TCPSocketAction {
40044004
type v1_ResourceRequirements {
40054005
"""
40064006
Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container.
4007-
4007+
40084008
This is an alpha field and requires enabling the DynamicResourceAllocation feature gate.
4009-
4009+
40104010
This field is immutable. It can only be set for containers.
40114011
"""
40124012
claims: [v1_ResourceClaim]
@@ -4148,7 +4148,7 @@ type v1_SeccompProfile {
41484148
localhostProfile: String
41494149
"""
41504150
type indicates which kind of seccomp profile will be applied. Valid options are:
4151-
4151+
41524152
Localhost - a profile defined in a file on the node should be used. RuntimeDefault - the container runtime default profile should be used. Unconfined - no profile should be applied.
41534153
"""
41544154
type: String!
@@ -4202,7 +4202,7 @@ type v1_ContainerStatus {
42024202
name: String!
42034203
"""
42044204
Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field).
4205-
4205+
42064206
The value is typically used to determine whether a container is ready to accept traffic.
42074207
"""
42084208
ready: Boolean!
@@ -4266,7 +4266,7 @@ type v1_ResourceHealth {
42664266
temporary and permanent issues.
42674267
- Unknown: The status cannot be determined.
42684268
For example, Device Plugin got unregistered and hasn't been re-registered since.
4269-
4269+
42704270
In future we may want to introduce the PermanentlyUnhealthy Status.
42714271
"""
42724272
health: String
@@ -4604,9 +4604,9 @@ type v1_ObjectMeta {
46044604
finalizers: [String]
46054605
"""
46064606
GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.
4607-
4607+
46084608
If this field is specified and the generated name exists, the server will return a 409.
4609-
4609+
46104610
Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency
46114611
"""
46124612
generateName: String
@@ -4628,7 +4628,7 @@ type v1_ObjectMeta {
46284628
name: String
46294629
"""
46304630
Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the "default" namespace, but "default" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.
4631-
4631+
46324632
Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces
46334633
"""
46344634
namespace: String
@@ -4638,7 +4638,7 @@ type v1_ObjectMeta {
46384638
ownerReferences: [v1_OwnerReference]
46394639
"""
46404640
An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.
4641-
4641+
46424642
Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency
46434643
"""
46444644
resourceVersion: String
@@ -4648,7 +4648,7 @@ type v1_ObjectMeta {
46484648
selfLink: String
46494649
"""
46504650
UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.
4651-
4651+
46524652
Populated by the system. Read-only. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids
46534653
"""
46544654
uid: String
@@ -4668,9 +4668,9 @@ type v1_ManagedFieldsEntry {
46684668
fieldsType: String
46694669
"""
46704670
FieldsV1 stores a set of fields in a data structure like a Trie, in JSON format.
4671-
4671+
46724672
Each key is either a '.' representing the field itself, and will always map to an empty set, or a string representing a sub-field or item. The string will follow one of these four formats: 'f:<name>', where <name> is the name of a field in a struct, or key in a map 'v:<value>', where <value> is the exact json formatted value of a list item 'i:<index>', where <index> is position of a item in a list 'k:<keys>', where <keys> is a map of a list item's key fields to their unique values If a key maps to an empty Fields value, the field that key represents is part of the set.
4673-
4673+
46744674
The exact format is defined in sigs.k8s.io/structured-merge-diff
46754675
"""
46764676
fieldsV1: JSON
@@ -5165,7 +5165,7 @@ type v1_PodSecurityContext {
51655165
appArmorProfile: v1_AppArmorProfile
51665166
"""
51675167
A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod:
5168-
5168+
51695169
1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw
51705170
"""
51715171
fsGroup: BigInt
@@ -5187,15 +5187,15 @@ type v1_PodSecurityContext {
51875187
runAsUser: BigInt
51885188
"""
51895189
seLinuxChangePolicy defines how the container's SELinux label is applied to all volumes used by the Pod. It has no effect on nodes that do not support SELinux or to volumes does not support SELinux. Valid values are "MountOption" and "Recursive".
5190-
5190+
51915191
"Recursive" means relabeling of all files on all Pod volumes by the container runtime. This may be slow for large volumes, but allows mixing privileged and unprivileged Pods sharing the same volume on the same node.
5192-
5192+
51935193
"MountOption" mounts all eligible Pod volumes with `-o context` mount option. This requires all Pods that share the same volume to use the same SELinux label. It is not possible to share the same volume among privileged and unprivileged Pods. Eligible volumes are in-tree FibreChannel and iSCSI volumes, and all CSI volumes whose CSI driver announces SELinux support by setting spec.seLinuxMount: true in their CSIDriver instance. Other volumes are always re-labelled recursively. "MountOption" value is allowed only when SELinuxMount feature gate is enabled.
5194-
5194+
51955195
If not specified and SELinuxMount feature gate is enabled, "MountOption" is used. If not specified and SELinuxMount feature gate is disabled, "MountOption" is used for ReadWriteOncePod volumes and "Recursive" for all other volumes.
5196-
5196+
51975197
This field affects only Pods that have SELinux label set, either in PodSecurityContext or in SecurityContext of all containers.
5198-
5198+
51995199
All Pods that use the same volume should use the same seLinuxChangePolicy, otherwise some pods can get stuck in ContainerCreating state. Note that this field cannot be set when spec.os.name is windows.
52005200
"""
52015201
seLinuxChangePolicy: String
@@ -5240,8 +5240,8 @@ type poddisruptionbudget_PodDisruptionBudget {
52405240
disruptionsAllowed: Int!
52415241
expectedPods: Int!
52425242
labelSelector: v1_LabelSelector
5243-
maxUnavailable: intstr_IntOrString!
5244-
minAvailable: intstr_IntOrString!
5243+
maxUnavailable: String!
5244+
minAvailable: String!
52455245
objectMeta: types_ObjectMeta!
52465246
typeMeta: types_TypeMeta!
52475247
unhealthyPodEvictionPolicy: String!
@@ -5254,8 +5254,8 @@ type poddisruptionbudget_PodDisruptionBudgetDetail {
52545254
disruptionsAllowed: Int!
52555255
expectedPods: Int!
52565256
labelSelector: v1_LabelSelector
5257-
maxUnavailable: intstr_IntOrString!
5258-
minAvailable: intstr_IntOrString!
5257+
maxUnavailable: String!
5258+
minAvailable: String!
52595259
objectMeta: types_ObjectMeta!
52605260
typeMeta: types_TypeMeta!
52615261
unhealthyPodEvictionPolicy: String!
@@ -5390,14 +5390,14 @@ type endpoint_Endpoint {
53905390
type v1_EndpointPort {
53915391
"""
53925392
The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either:
5393-
5393+
53945394
* Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names).
5395-
5395+
53965396
* Kubernetes-defined prefixed names:
53975397
* 'kubernetes.io/h2c' - HTTP/2 prior knowledge over cleartext as described in https://www.rfc-editor.org/rfc/rfc9113.html#name-starting-http-2-with-prior-
53985398
* 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455
53995399
* 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455
5400-
5400+
54015401
* Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol.
54025402
"""
54035403
appProtocol: String
@@ -6067,4 +6067,4 @@ type StringWrapper {
60676067

60686068
type StateWrapper {
60696069
state: ContainerState!
6070-
}
6070+
}

0 commit comments

Comments
 (0)