Skip to content

Commit a684e57

Browse files
committed
Update to Kubernetes v1.19.8
1 parent b35da79 commit a684e57

File tree

671 files changed

+2978
-1064
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

671 files changed

+2978
-1064
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,10 @@
3939

4040
## Compatibility Matrix
4141

42-
| | K8s <1.18.9 | K8s 1.18.9 - 1.18.13 |
43-
|---------------------------|-------------|----------------------|
44-
| SwiftkubeModel 0.2.x | - ||
42+
| | <1.18.9 | 1.18.9 - 1.18.13 | 1.19.8 |
43+
|---------------------------|---------|------------------|--------|
44+
| SwiftkubeModel 0.2.x | - ||- |
45+
| SwiftkubeModel 0.3.x | - | - ||
4546

4647
- `` Exact match of API objects in both model and the Kubernetes version.
4748
- `-` API objects mismatches either due to the removal of old API or the addition of new API. However, everything the model and Kubernetes have in common will work.

Sources/Model/AnyKubernetesAPIResource.swift

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
///
1818
/// Generated by Swiftkube:ModelGen
19-
/// Kubernetes v1.18.13
19+
/// Kubernetes v1.19.8
2020
///
2121

2222
import Foundation
@@ -139,8 +139,6 @@ public struct AnyKubernetesAPIResource: KubernetesAPIResource {
139139
decoded = try apps.v1.ReplicaSet(from: decoder)
140140
case .appsV1StatefulSet:
141141
decoded = try apps.v1.StatefulSet(from: decoder)
142-
case .auditregistrationV1Alpha1AuditSink:
143-
decoded = try auditregistration.v1alpha1.AuditSink(from: decoder)
144142
case .authenticationV1TokenRequest:
145143
decoded = try authentication.v1.TokenRequest(from: decoder)
146144
case .authenticationV1TokenReview:
@@ -175,6 +173,8 @@ public struct AnyKubernetesAPIResource: KubernetesAPIResource {
175173
decoded = try batch.v1beta1.CronJob(from: decoder)
176174
case .batchV2Alpha1CronJob:
177175
decoded = try batch.v2alpha1.CronJob(from: decoder)
176+
case .certificatesV1CertificateSigningRequest:
177+
decoded = try certificates.v1.CertificateSigningRequest(from: decoder)
178178
case .certificatesV1Beta1CertificateSigningRequest:
179179
decoded = try certificates.v1beta1.CertificateSigningRequest(from: decoder)
180180
case .coordinationV1Lease:
@@ -183,6 +183,8 @@ public struct AnyKubernetesAPIResource: KubernetesAPIResource {
183183
decoded = try coordination.v1beta1.Lease(from: decoder)
184184
case .discoveryV1Beta1EndpointSlice:
185185
decoded = try discovery.v1beta1.EndpointSlice(from: decoder)
186+
case .eventsV1Event:
187+
decoded = try events.v1.Event(from: decoder)
186188
case .eventsV1Beta1Event:
187189
decoded = try events.v1beta1.Event(from: decoder)
188190
case .extensionsV1Beta1Ingress:
@@ -191,6 +193,10 @@ public struct AnyKubernetesAPIResource: KubernetesAPIResource {
191193
decoded = try flowcontrol.v1alpha1.FlowSchema(from: decoder)
192194
case .flowcontrolV1Alpha1PriorityLevelConfiguration:
193195
decoded = try flowcontrol.v1alpha1.PriorityLevelConfiguration(from: decoder)
196+
case .networkingV1Ingress:
197+
decoded = try networking.v1.Ingress(from: decoder)
198+
case .networkingV1IngressClass:
199+
decoded = try networking.v1.IngressClass(from: decoder)
194200
case .networkingV1NetworkPolicy:
195201
decoded = try networking.v1.NetworkPolicy(from: decoder)
196202
case .networkingV1Beta1Ingress:

Sources/Model/GroupVersionKind+KubernetesAPIResource.swift

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
///
1818
/// Generated by Swiftkube:ModelGen
19-
/// Kubernetes v1.18.13
19+
/// Kubernetes v1.19.8
2020
///
2121

2222
import Foundation
@@ -100,8 +100,6 @@ public extension GroupVersionKind {
100100
self = .appsV1ReplicaSet
101101
case is apps.v1.StatefulSet.Type:
102102
self = .appsV1StatefulSet
103-
case is auditregistration.v1alpha1.AuditSink.Type:
104-
self = .auditregistrationV1Alpha1AuditSink
105103
case is authentication.v1.TokenRequest.Type:
106104
self = .authenticationV1TokenRequest
107105
case is authentication.v1.TokenReview.Type:
@@ -136,6 +134,8 @@ public extension GroupVersionKind {
136134
self = .batchV1Beta1CronJob
137135
case is batch.v2alpha1.CronJob.Type:
138136
self = .batchV2Alpha1CronJob
137+
case is certificates.v1.CertificateSigningRequest.Type:
138+
self = .certificatesV1CertificateSigningRequest
139139
case is certificates.v1beta1.CertificateSigningRequest.Type:
140140
self = .certificatesV1Beta1CertificateSigningRequest
141141
case is coordination.v1.Lease.Type:
@@ -144,6 +144,8 @@ public extension GroupVersionKind {
144144
self = .coordinationV1Beta1Lease
145145
case is discovery.v1beta1.EndpointSlice.Type:
146146
self = .discoveryV1Beta1EndpointSlice
147+
case is events.v1.Event.Type:
148+
self = .eventsV1Event
147149
case is events.v1beta1.Event.Type:
148150
self = .eventsV1Beta1Event
149151
case is extensions.v1beta1.Ingress.Type:
@@ -152,6 +154,10 @@ public extension GroupVersionKind {
152154
self = .flowcontrolV1Alpha1FlowSchema
153155
case is flowcontrol.v1alpha1.PriorityLevelConfiguration.Type:
154156
self = .flowcontrolV1Alpha1PriorityLevelConfiguration
157+
case is networking.v1.Ingress.Type:
158+
self = .networkingV1Ingress
159+
case is networking.v1.IngressClass.Type:
160+
self = .networkingV1IngressClass
155161
case is networking.v1.NetworkPolicy.Type:
156162
self = .networkingV1NetworkPolicy
157163
case is networking.v1beta1.Ingress.Type:

Sources/Model/GroupVersionKind.swift

Lines changed: 53 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
///
1818
/// Generated by Swiftkube:ModelGen
19-
/// Kubernetes v1.18.13
19+
/// Kubernetes v1.19.8
2020
///
2121

2222
import Foundation
@@ -56,7 +56,6 @@ public enum GroupVersionKind: String, CaseIterable {
5656
case appsV1Deployment = "apps/v1/Deployment"
5757
case appsV1ReplicaSet = "apps/v1/ReplicaSet"
5858
case appsV1StatefulSet = "apps/v1/StatefulSet"
59-
case auditregistrationV1Alpha1AuditSink = "auditregistration.k8s.io/v1alpha1/AuditSink"
6059
case authenticationV1TokenRequest = "authentication.k8s.io/v1/TokenRequest"
6160
case authenticationV1TokenReview = "authentication.k8s.io/v1/TokenReview"
6261
case authenticationV1Beta1TokenReview = "authentication.k8s.io/v1beta1/TokenReview"
@@ -74,14 +73,18 @@ public enum GroupVersionKind: String, CaseIterable {
7473
case batchV1Job = "batch/v1/Job"
7574
case batchV1Beta1CronJob = "batch/v1beta1/CronJob"
7675
case batchV2Alpha1CronJob = "batch/v2alpha1/CronJob"
76+
case certificatesV1CertificateSigningRequest = "certificates.k8s.io/v1/CertificateSigningRequest"
7777
case certificatesV1Beta1CertificateSigningRequest = "certificates.k8s.io/v1beta1/CertificateSigningRequest"
7878
case coordinationV1Lease = "coordination.k8s.io/v1/Lease"
7979
case coordinationV1Beta1Lease = "coordination.k8s.io/v1beta1/Lease"
8080
case discoveryV1Beta1EndpointSlice = "discovery.k8s.io/v1beta1/EndpointSlice"
81+
case eventsV1Event = "events.k8s.io/v1/Event"
8182
case eventsV1Beta1Event = "events.k8s.io/v1beta1/Event"
8283
case extensionsV1Beta1Ingress = "extensions/v1beta1/Ingress"
8384
case flowcontrolV1Alpha1FlowSchema = "flowcontrol.apiserver.k8s.io/v1alpha1/FlowSchema"
8485
case flowcontrolV1Alpha1PriorityLevelConfiguration = "flowcontrol.apiserver.k8s.io/v1alpha1/PriorityLevelConfiguration"
86+
case networkingV1Ingress = "networking.k8s.io/v1/Ingress"
87+
case networkingV1IngressClass = "networking.k8s.io/v1/IngressClass"
8588
case networkingV1NetworkPolicy = "networking.k8s.io/v1/NetworkPolicy"
8689
case networkingV1Beta1Ingress = "networking.k8s.io/v1beta1/Ingress"
8790
case networkingV1Beta1IngressClass = "networking.k8s.io/v1beta1/IngressClass"
@@ -179,8 +182,6 @@ public enum GroupVersionKind: String, CaseIterable {
179182
return "apps"
180183
case .appsV1StatefulSet:
181184
return "apps"
182-
case .auditregistrationV1Alpha1AuditSink:
183-
return "auditregistration.k8s.io"
184185
case .authenticationV1TokenRequest:
185186
return "authentication.k8s.io"
186187
case .authenticationV1TokenReview:
@@ -215,6 +216,8 @@ public enum GroupVersionKind: String, CaseIterable {
215216
return "batch"
216217
case .batchV2Alpha1CronJob:
217218
return "batch"
219+
case .certificatesV1CertificateSigningRequest:
220+
return "certificates.k8s.io"
218221
case .certificatesV1Beta1CertificateSigningRequest:
219222
return "certificates.k8s.io"
220223
case .coordinationV1Lease:
@@ -223,6 +226,8 @@ public enum GroupVersionKind: String, CaseIterable {
223226
return "coordination.k8s.io"
224227
case .discoveryV1Beta1EndpointSlice:
225228
return "discovery.k8s.io"
229+
case .eventsV1Event:
230+
return "events.k8s.io"
226231
case .eventsV1Beta1Event:
227232
return "events.k8s.io"
228233
case .extensionsV1Beta1Ingress:
@@ -231,6 +236,10 @@ public enum GroupVersionKind: String, CaseIterable {
231236
return "flowcontrol.apiserver.k8s.io"
232237
case .flowcontrolV1Alpha1PriorityLevelConfiguration:
233238
return "flowcontrol.apiserver.k8s.io"
239+
case .networkingV1Ingress:
240+
return "networking.k8s.io"
241+
case .networkingV1IngressClass:
242+
return "networking.k8s.io"
234243
case .networkingV1NetworkPolicy:
235244
return "networking.k8s.io"
236245
case .networkingV1Beta1Ingress:
@@ -362,8 +371,6 @@ public enum GroupVersionKind: String, CaseIterable {
362371
return "v1"
363372
case .appsV1StatefulSet:
364373
return "v1"
365-
case .auditregistrationV1Alpha1AuditSink:
366-
return "v1alpha1"
367374
case .authenticationV1TokenRequest:
368375
return "v1"
369376
case .authenticationV1TokenReview:
@@ -398,6 +405,8 @@ public enum GroupVersionKind: String, CaseIterable {
398405
return "v1beta1"
399406
case .batchV2Alpha1CronJob:
400407
return "v2alpha1"
408+
case .certificatesV1CertificateSigningRequest:
409+
return "v1"
401410
case .certificatesV1Beta1CertificateSigningRequest:
402411
return "v1beta1"
403412
case .coordinationV1Lease:
@@ -406,6 +415,8 @@ public enum GroupVersionKind: String, CaseIterable {
406415
return "v1beta1"
407416
case .discoveryV1Beta1EndpointSlice:
408417
return "v1beta1"
418+
case .eventsV1Event:
419+
return "v1"
409420
case .eventsV1Beta1Event:
410421
return "v1beta1"
411422
case .extensionsV1Beta1Ingress:
@@ -414,6 +425,10 @@ public enum GroupVersionKind: String, CaseIterable {
414425
return "v1alpha1"
415426
case .flowcontrolV1Alpha1PriorityLevelConfiguration:
416427
return "v1alpha1"
428+
case .networkingV1Ingress:
429+
return "v1"
430+
case .networkingV1IngressClass:
431+
return "v1"
417432
case .networkingV1NetworkPolicy:
418433
return "v1"
419434
case .networkingV1Beta1Ingress:
@@ -545,8 +560,6 @@ public enum GroupVersionKind: String, CaseIterable {
545560
return "ReplicaSet"
546561
case .appsV1StatefulSet:
547562
return "StatefulSet"
548-
case .auditregistrationV1Alpha1AuditSink:
549-
return "AuditSink"
550563
case .authenticationV1TokenRequest:
551564
return "TokenRequest"
552565
case .authenticationV1TokenReview:
@@ -581,6 +594,8 @@ public enum GroupVersionKind: String, CaseIterable {
581594
return "CronJob"
582595
case .batchV2Alpha1CronJob:
583596
return "CronJob"
597+
case .certificatesV1CertificateSigningRequest:
598+
return "CertificateSigningRequest"
584599
case .certificatesV1Beta1CertificateSigningRequest:
585600
return "CertificateSigningRequest"
586601
case .coordinationV1Lease:
@@ -589,6 +604,8 @@ public enum GroupVersionKind: String, CaseIterable {
589604
return "Lease"
590605
case .discoveryV1Beta1EndpointSlice:
591606
return "EndpointSlice"
607+
case .eventsV1Event:
608+
return "Event"
592609
case .eventsV1Beta1Event:
593610
return "Event"
594611
case .extensionsV1Beta1Ingress:
@@ -597,6 +614,10 @@ public enum GroupVersionKind: String, CaseIterable {
597614
return "FlowSchema"
598615
case .flowcontrolV1Alpha1PriorityLevelConfiguration:
599616
return "PriorityLevelConfiguration"
617+
case .networkingV1Ingress:
618+
return "Ingress"
619+
case .networkingV1IngressClass:
620+
return "IngressClass"
600621
case .networkingV1NetworkPolicy:
601622
return "NetworkPolicy"
602623
case .networkingV1Beta1Ingress:
@@ -737,8 +758,6 @@ public enum GroupVersionKind: String, CaseIterable {
737758
return "replicasets"
738759
case .appsV1StatefulSet:
739760
return "statefulsets"
740-
case .auditregistrationV1Alpha1AuditSink:
741-
return "auditsinks"
742761
case .authenticationV1TokenRequest:
743762
return "tokenrequests"
744763
case .authenticationV1TokenReview:
@@ -773,6 +792,8 @@ public enum GroupVersionKind: String, CaseIterable {
773792
return "cronjobs"
774793
case .batchV2Alpha1CronJob:
775794
return "cronjobs"
795+
case .certificatesV1CertificateSigningRequest:
796+
return "certificatesigningrequests"
776797
case .certificatesV1Beta1CertificateSigningRequest:
777798
return "certificatesigningrequests"
778799
case .coordinationV1Lease:
@@ -781,6 +802,8 @@ public enum GroupVersionKind: String, CaseIterable {
781802
return "leases"
782803
case .discoveryV1Beta1EndpointSlice:
783804
return "endpointslices"
805+
case .eventsV1Event:
806+
return "events"
784807
case .eventsV1Beta1Event:
785808
return "events"
786809
case .extensionsV1Beta1Ingress:
@@ -789,6 +812,10 @@ public enum GroupVersionKind: String, CaseIterable {
789812
return "flowschemas"
790813
case .flowcontrolV1Alpha1PriorityLevelConfiguration:
791814
return "prioritylevelconfigurations"
815+
case .networkingV1Ingress:
816+
return "ingresses"
817+
case .networkingV1IngressClass:
818+
return "ingressclasses"
792819
case .networkingV1NetworkPolicy:
793820
return "networkpolicies"
794821
case .networkingV1Beta1Ingress:
@@ -920,8 +947,6 @@ public enum GroupVersionKind: String, CaseIterable {
920947
return "rs"
921948
case .appsV1StatefulSet:
922949
return "sts"
923-
case .auditregistrationV1Alpha1AuditSink:
924-
return nil
925950
case .authenticationV1TokenRequest:
926951
return nil
927952
case .authenticationV1TokenReview:
@@ -956,6 +981,8 @@ public enum GroupVersionKind: String, CaseIterable {
956981
return "cj"
957982
case .batchV2Alpha1CronJob:
958983
return "cj"
984+
case .certificatesV1CertificateSigningRequest:
985+
return "csr"
959986
case .certificatesV1Beta1CertificateSigningRequest:
960987
return "csr"
961988
case .coordinationV1Lease:
@@ -964,6 +991,8 @@ public enum GroupVersionKind: String, CaseIterable {
964991
return nil
965992
case .discoveryV1Beta1EndpointSlice:
966993
return nil
994+
case .eventsV1Event:
995+
return "ev"
967996
case .eventsV1Beta1Event:
968997
return "ev"
969998
case .extensionsV1Beta1Ingress:
@@ -972,6 +1001,10 @@ public enum GroupVersionKind: String, CaseIterable {
9721001
return nil
9731002
case .flowcontrolV1Alpha1PriorityLevelConfiguration:
9741003
return nil
1004+
case .networkingV1Ingress:
1005+
return "ing"
1006+
case .networkingV1IngressClass:
1007+
return nil
9751008
case .networkingV1NetworkPolicy:
9761009
return "netpol"
9771010
case .networkingV1Beta1Ingress:
@@ -1103,8 +1136,6 @@ public enum GroupVersionKind: String, CaseIterable {
11031136
return true
11041137
case .appsV1StatefulSet:
11051138
return true
1106-
case .auditregistrationV1Alpha1AuditSink:
1107-
return false
11081139
case .authenticationV1TokenRequest:
11091140
return true
11101141
case .authenticationV1TokenReview:
@@ -1139,6 +1170,8 @@ public enum GroupVersionKind: String, CaseIterable {
11391170
return true
11401171
case .batchV2Alpha1CronJob:
11411172
return true
1173+
case .certificatesV1CertificateSigningRequest:
1174+
return false
11421175
case .certificatesV1Beta1CertificateSigningRequest:
11431176
return false
11441177
case .coordinationV1Lease:
@@ -1147,6 +1180,8 @@ public enum GroupVersionKind: String, CaseIterable {
11471180
return true
11481181
case .discoveryV1Beta1EndpointSlice:
11491182
return true
1183+
case .eventsV1Event:
1184+
return true
11501185
case .eventsV1Beta1Event:
11511186
return true
11521187
case .extensionsV1Beta1Ingress:
@@ -1155,6 +1190,10 @@ public enum GroupVersionKind: String, CaseIterable {
11551190
return false
11561191
case .flowcontrolV1Alpha1PriorityLevelConfiguration:
11571192
return false
1193+
case .networkingV1Ingress:
1194+
return true
1195+
case .networkingV1IngressClass:
1196+
return false
11581197
case .networkingV1NetworkPolicy:
11591198
return true
11601199
case .networkingV1Beta1Ingress:

Sources/Model/admissionregistration/admissionregistration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
///
1818
/// Generated by Swiftkube:ModelGen
19-
/// Kubernetes v1.18.13
19+
/// Kubernetes v1.19.8
2020
///
2121

2222
import Foundation

Sources/Model/admissionregistration/v1/MutatingWebhook+admissionregistration.v1.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
///
1818
/// Generated by Swiftkube:ModelGen
19-
/// Kubernetes v1.18.13
19+
/// Kubernetes v1.19.8
2020
/// admissionregistration.v1.MutatingWebhook
2121
///
2222

Sources/Model/admissionregistration/v1/MutatingWebhookConfiguration+admissionregistration.v1.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
///
1818
/// Generated by Swiftkube:ModelGen
19-
/// Kubernetes v1.18.13
19+
/// Kubernetes v1.19.8
2020
/// admissionregistration.v1.MutatingWebhookConfiguration
2121
///
2222

0 commit comments

Comments
 (0)