Skip to content

Commit f3694bc

Browse files
authored
remove type field for objects with schema ref (#8299)
1 parent 59a5d4e commit f3694bc

File tree

1 file changed

+3
-56
lines changed

1 file changed

+3
-56
lines changed

charts/nginx-ingress/values.schema.json

Lines changed: 3 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,11 @@
4545
]
4646
},
4747
"selectorLabels": {
48-
"type": "object",
4948
"default": {},
5049
"title": "The selectorLabels Schema",
5150
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector/properties/matchLabels"
5251
},
5352
"annotations": {
54-
"type": "object",
5553
"default": {},
5654
"title": "The annotations Schema",
5755
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta/properties/annotations"
@@ -312,7 +310,6 @@
312310
],
313311
"title": "Volumes for App Protect WAF v5",
314312
"items": {
315-
"type": "object",
316313
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.Volume"
317314
}
318315
},
@@ -368,7 +365,6 @@
368365
]
369366
},
370367
"pullPolicy": {
371-
"type": "string",
372368
"default": "IfNotPresent",
373369
"title": "The pullPolicy for the App Protect WAF v5 Enforcer image",
374370
"allOf": [
@@ -399,7 +395,6 @@
399395
]
400396
},
401397
"securityContext": {
402-
"type": "object",
403398
"default": {},
404399
"title": "The securityContext Schema",
405400
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.SecurityContext"
@@ -442,7 +437,6 @@
442437
]
443438
},
444439
"pullPolicy": {
445-
"type": "string",
446440
"default": "IfNotPresent",
447441
"title": "The pullPolicy for the App Protect WAF v5 Config Manager image",
448442
"allOf": [
@@ -473,7 +467,6 @@
473467
]
474468
},
475469
"securityContext": {
476-
"type": "object",
477470
"default": {
478471
"allowPrivilegeEscalation": false,
479472
"runAsUser": 101,
@@ -597,7 +590,6 @@
597590
"additionalProperties": false
598591
},
599592
"dnsPolicy": {
600-
"type": "string",
601593
"allOf": [
602594
{
603595
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.PodSpec/properties/dnsPolicy"
@@ -724,7 +716,6 @@
724716
]
725717
},
726718
"pullPolicy": {
727-
"type": "string",
728719
"default": "IfNotPresent",
729720
"title": "The pullPolicy for the Ingress Controller image",
730721
"allOf": [
@@ -755,7 +746,6 @@
755746
]
756747
},
757748
"lifecycle": {
758-
"type": "object",
759749
"default": {},
760750
"title": "The lifecycle Schema",
761751
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.Lifecycle"
@@ -783,7 +773,6 @@
783773
]
784774
},
785775
"annotations": {
786-
"type": "object",
787776
"default": {},
788777
"title": "The annotations Schema",
789778
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta/properties/annotations"
@@ -870,31 +859,26 @@
870859
"examples": []
871860
},
872861
"nodeSelector": {
873-
"type": "object",
874862
"default": {},
875863
"title": "The nodeSelector Schema",
876864
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.PodSpec/properties/nodeSelector"
877865
},
878866
"terminationGracePeriodSeconds": {
879-
"type": "integer",
880867
"default": 30,
881868
"title": "The terminationGracePeriodSeconds Schema",
882869
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.PodSpec/properties/terminationGracePeriodSeconds"
883870
},
884871
"podSecurityContext": {
885-
"type": "object",
886872
"default": {},
887873
"title": "The podSecurityContext Schema",
888874
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.PodSecurityContext"
889875
},
890876
"securityContext": {
891-
"type": "object",
892877
"default": {},
893878
"title": "The securityContext Schema",
894879
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.SecurityContext"
895880
},
896881
"initContainerSecurityContext": {
897-
"type": "object",
898882
"default": {},
899883
"title": "The initContainerSecurityContext Schema",
900884
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.SecurityContext"
@@ -906,7 +890,6 @@
906890
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements"
907891
},
908892
"initContainerResources": {
909-
"type": "object",
910893
"default": {},
911894
"title": "The resources Schema",
912895
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.ResourceRequirements"
@@ -916,18 +899,15 @@
916899
"default": [],
917900
"title": "The tolerations Schema",
918901
"items": {
919-
"type": "object",
920902
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.Toleration"
921903
}
922904
},
923905
"affinity": {
924-
"type": "object",
925906
"default": {},
926907
"title": "The affinity Schema",
927908
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.Affinity"
928909
},
929910
"topologySpreadConstraints": {
930-
"type": "object",
931911
"default": {},
932912
"title": "The topologySpreadConstraints Schema",
933913
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.PodSpec/properties/topologySpreadConstraints"
@@ -937,7 +917,6 @@
937917
"default": [],
938918
"title": "The env Schema",
939919
"items": {
940-
"type": "object",
941920
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.EnvVar"
942921
}
943922
},
@@ -946,7 +925,6 @@
946925
"default": [],
947926
"title": "The volumes Schema",
948927
"items": {
949-
"type": "object",
950928
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.Volume"
951929
}
952930
},
@@ -955,7 +933,6 @@
955933
"default": [],
956934
"title": "The volumeMounts Schema",
957935
"items": {
958-
"type": "object",
959936
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.VolumeMount"
960937
}
961938
},
@@ -964,7 +941,6 @@
964941
"default": [],
965942
"title": "The initContainers Schema",
966943
"items": {
967-
"type": "object",
968944
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.Container"
969945
}
970946
},
@@ -1011,7 +987,6 @@
1011987
]
1012988
},
1013989
"persistentVolumeClaimRetentionPolicy": {
1014-
"type": "object",
1015990
"default": {},
1016991
"title": "The persistentVolumeClaimRetentionPolicy Schema",
1017992
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.apps.v1.StatefulSetPersistentVolumeClaimRetentionPolicy"
@@ -1022,19 +997,16 @@
1022997
"title": "The nginxCachePVC Schema",
1023998
"properties": {
1024999
"size": {
1025-
"type": "string",
10261000
"default": "256Mi",
10271001
"title": "The size Schema",
10281002
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.apimachinery.pkg.api.resource.Quantity"
10291003
},
10301004
"storageClass": {
1031-
"type": "string",
10321005
"title": "The storageClass Schema",
10331006
"default": "",
10341007
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.PersistentVolumeClaimSpec/properties/storageClassName"
10351008
},
10361009
"accessModes": {
1037-
"type": "array",
10381010
"default": [
10391011
"ReadWriteOnce"
10401012
],
@@ -1050,7 +1022,6 @@
10501022
"default": [],
10511023
"title": "The extraContainers Schema",
10521024
"items": {
1053-
"type": "object",
10541025
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.Container"
10551026
}
10561027
},
@@ -1332,19 +1303,16 @@
13321303
]
13331304
},
13341305
"type": {
1335-
"type": "string",
13361306
"default": "",
13371307
"title": "The type",
13381308
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.ServiceSpec/properties/type"
13391309
},
13401310
"externalTrafficPolicy": {
1341-
"type": "string",
13421311
"default": "",
13431312
"title": "The externalTrafficPolicy",
13441313
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.ServiceSpec/properties/externalTrafficPolicy"
13451314
},
13461315
"annotations": {
1347-
"type": "object",
13481316
"default": {},
13491317
"title": "The annotations",
13501318
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta/properties/annotations"
@@ -1360,13 +1328,11 @@
13601328
]
13611329
},
13621330
"loadBalancerIP": {
1363-
"type": "string",
13641331
"default": "",
13651332
"title": "The loadBalancerIP",
13661333
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.ServiceSpec/properties/loadBalancerIP"
13671334
},
13681335
"externalIPs": {
1369-
"type": "array",
13701336
"default": [],
13711337
"title": "The externalIPs",
13721338
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.ServiceSpec/properties/externalIPs"
@@ -1381,13 +1347,11 @@
13811347
]
13821348
},
13831349
"allocateLoadBalancerNodePorts": {
1384-
"type": "boolean",
13851350
"default": false,
13861351
"title": "The allocateLoadBalancerNodePorts Schema",
1387-
"ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.ServiceSpec/properties/allocateLoadBalancerNodePorts"
1352+
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.ServiceSpec/properties/allocateLoadBalancerNodePorts"
13881353
},
13891354
"ipFamilyPolicy": {
1390-
"type": "string",
13911355
"default": "",
13921356
"title": "The ipFamilyPolicy Schema",
13931357
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.ServiceSpec/properties/ipFamilyPolicy",
@@ -1396,10 +1360,9 @@
13961360
]
13971361
},
13981362
"ipFamilies": {
1399-
"type": "array",
14001363
"default": [],
14011364
"title": "The ipFamilies Schema",
1402-
"ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.ServiceSpec/properties/ipFamilies"
1365+
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.ServiceSpec/properties/ipFamilies"
14031366
},
14041367
"httpPort": {
14051368
"type": "object",
@@ -1520,8 +1483,7 @@
15201483
"default": [],
15211484
"title": "The customPorts",
15221485
"items": {
1523-
"type": "object",
1524-
"ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.ServicePort"
1486+
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.ServicePort"
15251487
}
15261488
},
15271489
"sessionAffinity": {
@@ -1611,7 +1573,6 @@
16111573
"required": [],
16121574
"properties": {
16131575
"annotations": {
1614-
"type": "object",
16151576
"default": {},
16161577
"title": "The annotations Schema",
16171578
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta/properties/annotations"
@@ -1756,7 +1717,6 @@
17561717
]
17571718
},
17581719
"annotations": {
1759-
"type": "object",
17601720
"default": {},
17611721
"title": "The annotations Schema",
17621722
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta/properties/annotations"
@@ -1780,13 +1740,11 @@
17801740
"required": [],
17811741
"properties": {
17821742
"annotations": {
1783-
"type": "object",
17841743
"default": {},
17851744
"title": "The annotations Schema",
17861745
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta/properties/annotations"
17871746
},
17881747
"extraLabels": {
1789-
"type": "object",
17901748
"default": {},
17911749
"title": "The extraLabels Schema",
17921750
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta/properties/labels"
@@ -1800,7 +1758,6 @@
18001758
]
18011759
},
18021760
"priorityClassName": {
1803-
"type": "string",
18041761
"default": "",
18051762
"title": "The priorityClassName",
18061763
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.PodSpec/properties/priorityClassName"
@@ -1817,7 +1774,6 @@
18171774
"type": "boolean"
18181775
},
18191776
"annotations": {
1820-
"type": "object",
18211777
"default": {},
18221778
"title": "The annotations Schema",
18231779
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta/properties/annotations"
@@ -1863,7 +1819,6 @@
18631819
]
18641820
},
18651821
"initialDelaySeconds": {
1866-
"type": "integer",
18671822
"default": 0,
18681823
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.Probe/properties/initialDelaySeconds"
18691824
}
@@ -1907,31 +1862,26 @@
19071862
]
19081863
},
19091864
"initialDelaySeconds": {
1910-
"type": "integer",
19111865
"default": 0,
19121866
"title": "Initial delay seconds for the startup probe",
19131867
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.Probe/properties/initialDelaySeconds"
19141868
},
19151869
"periodSeconds": {
1916-
"type": "integer",
19171870
"default": 0,
19181871
"title": "Period seconds for the startup probe",
19191872
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.Probe/properties/periodSeconds"
19201873
},
19211874
"timeoutSeconds": {
1922-
"type": "integer",
19231875
"default": 0,
19241876
"title": "Timeout seconds for the startup probe",
19251877
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.Probe/properties/timeoutSeconds"
19261878
},
19271879
"successThreshold": {
1928-
"type": "integer",
19291880
"default": 0,
19301881
"title": "Success threshold for the startup probe",
19311882
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.Probe/properties/successThreshold"
19321883
},
19331884
"failureThreshold": {
1934-
"type": "integer",
19351885
"default": 0,
19361886
"title": "Failure threshold for the startup probe",
19371887
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.api.core.v1.Probe/properties/failureThreshold"
@@ -2349,7 +2299,6 @@
23492299
]
23502300
},
23512301
"labels": {
2352-
"type": "object",
23532302
"default": {},
23542303
"title": "The labels Schema",
23552304
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta/properties/labels"
@@ -2371,13 +2320,11 @@
23712320
]
23722321
},
23732322
"labels": {
2374-
"type": "object",
23752323
"default": {},
23762324
"title": "The labels Schema",
23772325
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.ObjectMeta/properties/labels"
23782326
},
23792327
"selectorMatchLabels": {
2380-
"type": "object",
23812328
"default": {},
23822329
"title": "The selectorMatchLabels Schema",
23832330
"$ref": "https://raw.githubusercontent.com/nginxinc/kubernetes-json-schema/master/v1.33.1/_definitions.json#/definitions/io.k8s.apimachinery.pkg.apis.meta.v1.LabelSelector/properties/matchLabels"

0 commit comments

Comments
 (0)