Skip to content

Commit 4b483a3

Browse files
committed
Update to Kubernetes v1.28.0
1 parent 12ae90b commit 4b483a3

File tree

622 files changed

+5278
-1348
lines changed

Some content is hidden

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

622 files changed

+5278
-1348
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,22 @@
11
# Changelog
22

3+
## 0.12.0
4+
5+
- Update to Kubernetes v1.28.0
6+
7+
## 0.11.0
8+
9+
- Drop support for Swift 5.5
10+
11+
## 0.10.0
12+
13+
- Update to Kubernetes v1.26.4
14+
15+
## 0.9.0
16+
17+
- Update to Kubernetes v1.25.9
18+
- Add `CronJob/generateJob()` and `GenerateRandomHash`
19+
320
## 0.8.0
421

522
- Update to Kubernetes 1.24.10

README.md

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
<p align="center">
66
<img src="https://img.shields.io/badge/Swift-5.6-orange.svg" />
7-
<a href="https://v1-26.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.26/">
8-
<img src="https://img.shields.io/badge/Kubernetes-1.24.8-blue.svg" alt="Kubernetes 1.26.4"/>
7+
<a href="https://v1-28.docs.kubernetes.io/docs/reference/generated/kubernetes-api/v1.28/">
8+
<img src="https://img.shields.io/badge/Kubernetes-1.28.0-blue.svg" alt="Kubernetes 1.28.0"/>
99
</a>
1010
<a href="https://swift.org/package-manager">
1111
<img src="https://img.shields.io/badge/swiftpm-compatible-brightgreen.svg?style=flat" alt="Swift Package Manager" />
@@ -41,18 +41,19 @@
4141

4242
## Compatibility Matrix
4343

44-
| | <1.18.9 | 1.18.9 - 1.18.13 | 1.19.8 | 1.20.9 | 1.22.7 | 1.24.8 | 1.24.10 | 1.25.9 | 1.26.4 |
45-
|----------|---------|------------------|--------|--------|--------|--------|---------|--------|--------|
46-
| `0.2.x` | - || - | - | - | - | - | - | - |
47-
| `0.3.x` | - | - || - | - | - | - | - | - |
48-
| `0.4.x` | - | - | - || - | - | - | - | - |
49-
| `0.5.x` | - | - | - | - || - | - | - | - |
50-
| `0.6.x` | - | - | - | - | - || - | - | - |
51-
| `0.7.x` | - | - | - | - | - || - | - | - |
52-
| `0.8.x` | - | - | - | - | - | - || - | - |
53-
| `0.9.x` | - | - | - | - | - | - | - || - |
54-
| `0.10.x` | - | - | - | - | - | - | - | - ||
55-
| `0.11.x` | - | - | - | - | - | - | - | - ||
44+
| | <1.18.9 | 1.18.9 - 1.18.13 | 1.19.8 | 1.20.9 | 1.22.7 | 1.24.8 | 1.24.10 | 1.25.9 | 1.26.4 | 1.28.0 |
45+
|----------|---------|------------------|--------|--------|--------|--------|---------|--------|--------|--------|
46+
| `0.2.x` | - || - | - | - | - | - | - | - | - |
47+
| `0.3.x` | - | - || - | - | - | - | - | - | - |
48+
| `0.4.x` | - | - | - || - | - | - | - | - | - |
49+
| `0.5.x` | - | - | - | - || - | - | - | - | - |
50+
| `0.6.x` | - | - | - | - | - || - | - | - | - |
51+
| `0.7.x` | - | - | - | - | - || - | - | - | - |
52+
| `0.8.x` | - | - | - | - | - | - || - | - | - |
53+
| `0.9.x` | - | - | - | - | - | - | - || - | - |
54+
| `0.10.x` | - | - | - | - | - | - | - | - || - |
55+
| `0.11.x` | - | - | - | - | - | - | - | - || - |
56+
| `0.12.x` | - | - | - | - | - | - | - | - | - ||
5657

5758
- `` Exact match of API objects in both model and the Kubernetes version.
5859
- `-` API objects mismatches either due to the removal of old API or the addition of new API. However, everything the
@@ -413,7 +414,7 @@ print(spec?["cronSpec"])
413414
To use the `SwiftkubeModel` in a SwiftPM project, add the following line to the dependencies in your `Package.swift` file:
414415

415416
```swift
416-
.package(name: "SwiftkubeModel", url: "https://github.com/swiftkube/model.git", from: "0.7.0")
417+
.package(name: "SwiftkubeModel", url: "https://github.com/swiftkube/model.git", from: "0.12.0")
417418
```
418419

419420
then include it as a dependency in your target:
@@ -424,7 +425,7 @@ import PackageDescription
424425
let package = Package(
425426
// ...
426427
dependencies: [
427-
.package(name: "SwiftkubeModel", url: "https://github.com/swiftkube/model.git", from: "0.7.0")
428+
.package(name: "SwiftkubeModel", url: "https://github.com/swiftkube/model.git", from: "0.12.0")
428429
],
429430
targets: [
430431
.target(name: "<your-target>", dependencies: [

Sources/Model/GroupVersionKind+DefaultResources.swift

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

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

2222
import Foundation
@@ -45,6 +45,8 @@ public extension GroupVersionKind {
4545
static let coreV1ServiceAccount = GroupVersionKind(group: "core", version: "v1", kind: "ServiceAccount")
4646
static let admissionregistrationV1MutatingWebhookConfiguration = GroupVersionKind(group: "admissionregistration.k8s.io", version: "v1", kind: "MutatingWebhookConfiguration")
4747
static let admissionregistrationV1ValidatingWebhookConfiguration = GroupVersionKind(group: "admissionregistration.k8s.io", version: "v1", kind: "ValidatingWebhookConfiguration")
48+
static let admissionregistrationV1Beta1ValidatingAdmissionPolicy = GroupVersionKind(group: "admissionregistration.k8s.io", version: "v1beta1", kind: "ValidatingAdmissionPolicy")
49+
static let admissionregistrationV1Beta1ValidatingAdmissionPolicyBinding = GroupVersionKind(group: "admissionregistration.k8s.io", version: "v1beta1", kind: "ValidatingAdmissionPolicyBinding")
4850
static let admissionregistrationV1Alpha1ValidatingAdmissionPolicy = GroupVersionKind(group: "admissionregistration.k8s.io", version: "v1alpha1", kind: "ValidatingAdmissionPolicy")
4951
static let admissionregistrationV1Alpha1ValidatingAdmissionPolicyBinding = GroupVersionKind(group: "admissionregistration.k8s.io", version: "v1alpha1", kind: "ValidatingAdmissionPolicyBinding")
5052
static let apiextensionsV1CustomResourceDefinition = GroupVersionKind(group: "apiextensions.k8s.io", version: "v1", kind: "CustomResourceDefinition")
@@ -54,8 +56,10 @@ public extension GroupVersionKind {
5456
static let appsV1Deployment = GroupVersionKind(group: "apps", version: "v1", kind: "Deployment")
5557
static let appsV1ReplicaSet = GroupVersionKind(group: "apps", version: "v1", kind: "ReplicaSet")
5658
static let appsV1StatefulSet = GroupVersionKind(group: "apps", version: "v1", kind: "StatefulSet")
59+
static let authenticationV1SelfSubjectReview = GroupVersionKind(group: "authentication.k8s.io", version: "v1", kind: "SelfSubjectReview")
5760
static let authenticationV1TokenRequest = GroupVersionKind(group: "authentication.k8s.io", version: "v1", kind: "TokenRequest")
5861
static let authenticationV1TokenReview = GroupVersionKind(group: "authentication.k8s.io", version: "v1", kind: "TokenReview")
62+
static let authenticationV1Beta1SelfSubjectReview = GroupVersionKind(group: "authentication.k8s.io", version: "v1beta1", kind: "SelfSubjectReview")
5963
static let authenticationV1Alpha1SelfSubjectReview = GroupVersionKind(group: "authentication.k8s.io", version: "v1alpha1", kind: "SelfSubjectReview")
6064
static let authorizationV1LocalSubjectAccessReview = GroupVersionKind(group: "authorization.k8s.io", version: "v1", kind: "LocalSubjectAccessReview")
6165
static let authorizationV1SelfSubjectAccessReview = GroupVersionKind(group: "authorization.k8s.io", version: "v1", kind: "SelfSubjectAccessReview")
@@ -66,6 +70,7 @@ public extension GroupVersionKind {
6670
static let batchV1CronJob = GroupVersionKind(group: "batch", version: "v1", kind: "CronJob")
6771
static let batchV1Job = GroupVersionKind(group: "batch", version: "v1", kind: "Job")
6872
static let certificatesV1CertificateSigningRequest = GroupVersionKind(group: "certificates.k8s.io", version: "v1", kind: "CertificateSigningRequest")
73+
static let certificatesV1Alpha1ClusterTrustBundle = GroupVersionKind(group: "certificates.k8s.io", version: "v1alpha1", kind: "ClusterTrustBundle")
6974
static let coordinationV1Lease = GroupVersionKind(group: "coordination.k8s.io", version: "v1", kind: "Lease")
7075
static let discoveryV1EndpointSlice = GroupVersionKind(group: "discovery.k8s.io", version: "v1", kind: "EndpointSlice")
7176
static let eventsV1Event = GroupVersionKind(group: "events.k8s.io", version: "v1", kind: "Event")
@@ -78,21 +83,21 @@ public extension GroupVersionKind {
7883
static let networkingV1IngressClass = GroupVersionKind(group: "networking.k8s.io", version: "v1", kind: "IngressClass")
7984
static let networkingV1NetworkPolicy = GroupVersionKind(group: "networking.k8s.io", version: "v1", kind: "NetworkPolicy")
8085
static let networkingV1Alpha1ClusterCIDR = GroupVersionKind(group: "networking.k8s.io", version: "v1alpha1", kind: "ClusterCIDR")
86+
static let networkingV1Alpha1IPAddress = GroupVersionKind(group: "networking.k8s.io", version: "v1alpha1", kind: "IPAddress")
8187
static let nodeV1RuntimeClass = GroupVersionKind(group: "node.k8s.io", version: "v1", kind: "RuntimeClass")
8288
static let policyV1PodDisruptionBudget = GroupVersionKind(group: "policy", version: "v1", kind: "PodDisruptionBudget")
8389
static let rbacV1ClusterRole = GroupVersionKind(group: "rbac.authorization.k8s.io", version: "v1", kind: "ClusterRole")
8490
static let rbacV1ClusterRoleBinding = GroupVersionKind(group: "rbac.authorization.k8s.io", version: "v1", kind: "ClusterRoleBinding")
8591
static let rbacV1Role = GroupVersionKind(group: "rbac.authorization.k8s.io", version: "v1", kind: "Role")
8692
static let rbacV1RoleBinding = GroupVersionKind(group: "rbac.authorization.k8s.io", version: "v1", kind: "RoleBinding")
87-
static let resourceV1Alpha1PodScheduling = GroupVersionKind(group: "resource.k8s.io", version: "v1alpha1", kind: "PodScheduling")
88-
static let resourceV1Alpha1ResourceClaim = GroupVersionKind(group: "resource.k8s.io", version: "v1alpha1", kind: "ResourceClaim")
89-
static let resourceV1Alpha1ResourceClaimTemplate = GroupVersionKind(group: "resource.k8s.io", version: "v1alpha1", kind: "ResourceClaimTemplate")
90-
static let resourceV1Alpha1ResourceClass = GroupVersionKind(group: "resource.k8s.io", version: "v1alpha1", kind: "ResourceClass")
93+
static let resourceV1Alpha2PodSchedulingContext = GroupVersionKind(group: "resource.k8s.io", version: "v1alpha2", kind: "PodSchedulingContext")
94+
static let resourceV1Alpha2ResourceClaim = GroupVersionKind(group: "resource.k8s.io", version: "v1alpha2", kind: "ResourceClaim")
95+
static let resourceV1Alpha2ResourceClaimTemplate = GroupVersionKind(group: "resource.k8s.io", version: "v1alpha2", kind: "ResourceClaimTemplate")
96+
static let resourceV1Alpha2ResourceClass = GroupVersionKind(group: "resource.k8s.io", version: "v1alpha2", kind: "ResourceClass")
9197
static let schedulingV1PriorityClass = GroupVersionKind(group: "scheduling.k8s.io", version: "v1", kind: "PriorityClass")
9298
static let storageV1CSIDriver = GroupVersionKind(group: "storage.k8s.io", version: "v1", kind: "CSIDriver")
9399
static let storageV1CSINode = GroupVersionKind(group: "storage.k8s.io", version: "v1", kind: "CSINode")
94100
static let storageV1CSIStorageCapacity = GroupVersionKind(group: "storage.k8s.io", version: "v1", kind: "CSIStorageCapacity")
95101
static let storageV1StorageClass = GroupVersionKind(group: "storage.k8s.io", version: "v1", kind: "StorageClass")
96102
static let storageV1VolumeAttachment = GroupVersionKind(group: "storage.k8s.io", version: "v1", kind: "VolumeAttachment")
97-
static let storageV1Beta1CSIStorageCapacity = GroupVersionKind(group: "storage.k8s.io", version: "v1beta1", kind: "CSIStorageCapacity")
98103
}

Sources/Model/GroupVersionKind+KubernetesAPIResource.swift

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

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

2222
import Foundation
@@ -78,6 +78,10 @@ public extension GroupVersionKind {
7878
self = .admissionregistrationV1MutatingWebhookConfiguration
7979
case is admissionregistration.v1.ValidatingWebhookConfiguration.Type:
8080
self = .admissionregistrationV1ValidatingWebhookConfiguration
81+
case is admissionregistration.v1beta1.ValidatingAdmissionPolicy.Type:
82+
self = .admissionregistrationV1Beta1ValidatingAdmissionPolicy
83+
case is admissionregistration.v1beta1.ValidatingAdmissionPolicyBinding.Type:
84+
self = .admissionregistrationV1Beta1ValidatingAdmissionPolicyBinding
8185
case is admissionregistration.v1alpha1.ValidatingAdmissionPolicy.Type:
8286
self = .admissionregistrationV1Alpha1ValidatingAdmissionPolicy
8387
case is admissionregistration.v1alpha1.ValidatingAdmissionPolicyBinding.Type:
@@ -96,10 +100,14 @@ public extension GroupVersionKind {
96100
self = .appsV1ReplicaSet
97101
case is apps.v1.StatefulSet.Type:
98102
self = .appsV1StatefulSet
103+
case is authentication.v1.SelfSubjectReview.Type:
104+
self = .authenticationV1SelfSubjectReview
99105
case is authentication.v1.TokenRequest.Type:
100106
self = .authenticationV1TokenRequest
101107
case is authentication.v1.TokenReview.Type:
102108
self = .authenticationV1TokenReview
109+
case is authentication.v1beta1.SelfSubjectReview.Type:
110+
self = .authenticationV1Beta1SelfSubjectReview
103111
case is authentication.v1alpha1.SelfSubjectReview.Type:
104112
self = .authenticationV1Alpha1SelfSubjectReview
105113
case is authorization.v1.LocalSubjectAccessReview.Type:
@@ -120,6 +128,8 @@ public extension GroupVersionKind {
120128
self = .batchV1Job
121129
case is certificates.v1.CertificateSigningRequest.Type:
122130
self = .certificatesV1CertificateSigningRequest
131+
case is certificates.v1alpha1.ClusterTrustBundle.Type:
132+
self = .certificatesV1Alpha1ClusterTrustBundle
123133
case is coordination.v1.Lease.Type:
124134
self = .coordinationV1Lease
125135
case is discovery.v1.EndpointSlice.Type:
@@ -144,6 +154,8 @@ public extension GroupVersionKind {
144154
self = .networkingV1NetworkPolicy
145155
case is networking.v1alpha1.ClusterCIDR.Type:
146156
self = .networkingV1Alpha1ClusterCIDR
157+
case is networking.v1alpha1.IPAddress.Type:
158+
self = .networkingV1Alpha1IPAddress
147159
case is node.v1.RuntimeClass.Type:
148160
self = .nodeV1RuntimeClass
149161
case is policy.v1.PodDisruptionBudget.Type:
@@ -156,14 +168,14 @@ public extension GroupVersionKind {
156168
self = .rbacV1Role
157169
case is rbac.v1.RoleBinding.Type:
158170
self = .rbacV1RoleBinding
159-
case is resource.v1alpha1.PodScheduling.Type:
160-
self = .resourceV1Alpha1PodScheduling
161-
case is resource.v1alpha1.ResourceClaim.Type:
162-
self = .resourceV1Alpha1ResourceClaim
163-
case is resource.v1alpha1.ResourceClaimTemplate.Type:
164-
self = .resourceV1Alpha1ResourceClaimTemplate
165-
case is resource.v1alpha1.ResourceClass.Type:
166-
self = .resourceV1Alpha1ResourceClass
171+
case is resource.v1alpha2.PodSchedulingContext.Type:
172+
self = .resourceV1Alpha2PodSchedulingContext
173+
case is resource.v1alpha2.ResourceClaim.Type:
174+
self = .resourceV1Alpha2ResourceClaim
175+
case is resource.v1alpha2.ResourceClaimTemplate.Type:
176+
self = .resourceV1Alpha2ResourceClaimTemplate
177+
case is resource.v1alpha2.ResourceClass.Type:
178+
self = .resourceV1Alpha2ResourceClass
167179
case is scheduling.v1.PriorityClass.Type:
168180
self = .schedulingV1PriorityClass
169181
case is storage.v1.CSIDriver.Type:
@@ -176,8 +188,6 @@ public extension GroupVersionKind {
176188
self = .storageV1StorageClass
177189
case is storage.v1.VolumeAttachment.Type:
178190
self = .storageV1VolumeAttachment
179-
case is storage.v1beta1.CSIStorageCapacity.Type:
180-
self = .storageV1Beta1CSIStorageCapacity
181191
default:
182192
return nil
183193
}

Sources/Model/GroupVersionKind+Meta.swift

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

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

2222
import Foundation
@@ -83,12 +83,12 @@ public extension GroupVersionKind {
8383
return true
8484
case "StatefulSet":
8585
return true
86+
case "SelfSubjectReview":
87+
return false
8688
case "TokenRequest":
8789
return true
8890
case "TokenReview":
8991
return false
90-
case "SelfSubjectReview":
91-
return false
9292
case "LocalSubjectAccessReview":
9393
return true
9494
case "SelfSubjectAccessReview":
@@ -105,6 +105,8 @@ public extension GroupVersionKind {
105105
return true
106106
case "CertificateSigningRequest":
107107
return false
108+
case "ClusterTrustBundle":
109+
return false
108110
case "Lease":
109111
return true
110112
case "EndpointSlice":
@@ -123,6 +125,8 @@ public extension GroupVersionKind {
123125
return true
124126
case "ClusterCIDR":
125127
return false
128+
case "IPAddress":
129+
return false
126130
case "RuntimeClass":
127131
return false
128132
case "PodDisruptionBudget":
@@ -135,7 +139,7 @@ public extension GroupVersionKind {
135139
return true
136140
case "RoleBinding":
137141
return true
138-
case "PodScheduling":
142+
case "PodSchedulingContext":
139143
return true
140144
case "ResourceClaim":
141145
return true

0 commit comments

Comments
 (0)